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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] 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/72] --- .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/72] --- .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/72] --- .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/72] --- 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/72] --- .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/72] --- __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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- .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/72] --- 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/72] --- 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/72] --- 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/72] --- 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/72] --- 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/72] --- .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/72] --- .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/72] --- .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/72] --- __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/72] --- .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 a100b8f3a60391c67df1a4e8d54807c39ab49e6e Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 19 Nov 2024 18:47:20 +0200 Subject: [PATCH 67/72] --- .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 aab5a0cab86dc54d15bce705ebc9a68e4d3f31cc Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 20 Nov 2024 21:06:14 +0200 Subject: [PATCH 68/72] --- .github/workflows/GitHub.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml index 161ef34..0234884 100644 --- a/.github/workflows/GitHub.yml +++ b/.github/workflows/GitHub.yml @@ -25,13 +25,13 @@ jobs: AZURE_CORE_COLLECT_TELEMETRY: 0 CHOOSENIM_NO_ANALYTICS: 1 DIEZ_DO_NOT_TRACK: 1 + 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 + GATSBY_TELEMETRY_OPTOUT: 1 GRIT_TELEMETRY_DISABLED: 1 HASURA_GRAPHQL_ENABLE_TELEMETRY: false HINT_TELEMETRY: off From 39f5edd9a9b24232682294b4b1dbdee4c61fe077 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 21 Nov 2024 01:03:57 +0200 Subject: [PATCH 69/72] --- .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 0234884..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 - DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GATSBY_TELEMETRY_OPTOUT: 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 110252dc4d17275cdc634efec99aef4d9430e4e6 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 8 Dec 2024 18:00:43 +0200 Subject: [PATCH 70/72] --- DEPENDENTS.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 DEPENDENTS.md diff --git a/DEPENDENTS.md b/DEPENDENTS.md new file mode 100644 index 0000000..ad4a2ab --- /dev/null +++ b/DEPENDENTS.md @@ -0,0 +1,11 @@ +# Dependents stats for CodeEditorLand/PVSCBot + +[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by&message=0&color=informational&logo=slickpic)](https://github.com/CodeEditorLand/PVSCBot/network/dependents) +[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by%20(public)&message=0&color=informational&logo=slickpic)](https://github.com/CodeEditorLand/PVSCBot/network/dependents) +[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by%20(private)&message=0&color=informational&logo=slickpic)](https://github.com/CodeEditorLand/PVSCBot/network/dependents) +[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by%20(stars)&message=0&color=informational&logo=slickpic)](https://github.com/CodeEditorLand/PVSCBot/network/dependents) + +| Repository | Stars | +| :-------- | -----: | + +_Generated using [github-dependents-info](https://github.com/nvuillam/github-dependents-info), by [Nicolas Vuillamy](https://github.com/nvuillam)_ \ No newline at end of file From 91a15cc29b9de4bb16da9cec1c6482d42b093ffb Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 8 Dec 2024 18:16:39 +0200 Subject: [PATCH 71/72] --- DEPENDENTS.md | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 DEPENDENTS.md diff --git a/DEPENDENTS.md b/DEPENDENTS.md deleted file mode 100644 index ad4a2ab..0000000 --- a/DEPENDENTS.md +++ /dev/null @@ -1,11 +0,0 @@ -# Dependents stats for CodeEditorLand/PVSCBot - -[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by&message=0&color=informational&logo=slickpic)](https://github.com/CodeEditorLand/PVSCBot/network/dependents) -[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by%20(public)&message=0&color=informational&logo=slickpic)](https://github.com/CodeEditorLand/PVSCBot/network/dependents) -[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by%20(private)&message=0&color=informational&logo=slickpic)](https://github.com/CodeEditorLand/PVSCBot/network/dependents) -[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by%20(stars)&message=0&color=informational&logo=slickpic)](https://github.com/CodeEditorLand/PVSCBot/network/dependents) - -| Repository | Stars | -| :-------- | -----: | - -_Generated using [github-dependents-info](https://github.com/nvuillam/github-dependents-info), by [Nicolas Vuillamy](https://github.com/nvuillam)_ \ No newline at end of file From b6ae4e7922616827d3949a490fa2e62501f9e182 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 16:02:20 +0000 Subject: [PATCH 72/72] Bump aiohttp from 3.6.2 to 3.11.0b0 Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.6.2 to 3.11.0b0. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.11.0b0/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.6.2...v3.11.0b0) --- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- __app__/requirements.txt | 431 ++++++++++++++++++++++++++++---- dev-requirements.txt | 520 +++++++++++++++++++++++++++++++++------ 2 files changed, 820 insertions(+), 131 deletions(-) diff --git a/__app__/requirements.txt b/__app__/requirements.txt index 75b05ae..a955514 100644 --- a/__app__/requirements.txt +++ b/__app__/requirements.txt @@ -4,41 +4,204 @@ # # 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.6.1 \ + --hash=sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558 \ + --hash=sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8 + # via aiohttp +aiohttp==3.11.0b0 \ + --hash=sha256:0799d232ae388070610d03a1f6baf4c00d61014c560e96620645fceb3f90a033 \ + --hash=sha256:0e3c69ec0e130f2d10cb3a675c941ae8937137be50bc271d08db3433c6a38497 \ + --hash=sha256:12c7fc1f9c3585912eb5fa11b96940f78a48c0ddcb236659486f017b6f1c2131 \ + --hash=sha256:14f278c5cd92722c5626b45a62d3fc2fc4a0b0ecd9e205a7cf85b0384ea0e22b \ + --hash=sha256:1fba27b27cac4fcdb30b76104b33be1a581a7c6ccd70bb2a1b8a535a2373e6ec \ + --hash=sha256:210e2f211da6ae9b5f47b39d6e5952a31536c78a5dce580f80ec5640ded5102b \ + --hash=sha256:22a6a36b1f6950c4b559173157261abf8dfb6837887f3d3a866c142a55fd57e5 \ + --hash=sha256:2821c4c75162ed1ba3dc56f344c33e37e6bbe15d995362596820276b0cb7d03c \ + --hash=sha256:28c35f7c0de807dd8265c3b972143d7c148f40e0ffbf6b15d5c1a95be4be2551 \ + --hash=sha256:292308b184321e34c095437ee3a1251e7bd44c7ba43544540677a547f6492964 \ + --hash=sha256:29b25b030477dce59630af9891cddb87b5b09b07f240c20364cc7dd3f66b227a \ + --hash=sha256:2b553a9698007aaf6e698bb5ee0ad8803bcb67e201d36a2f5527820ee5d03ee6 \ + --hash=sha256:38bfd03fc060bd4640be3493b85a368ff897f5ef94a9e457140473db1fc6cec5 \ + --hash=sha256:39c347ecb59bc3a4d04922b45115e3fb3706fe3a5cd7470642618e30da5ea635 \ + --hash=sha256:3b2b0ca13d29008a8abc87d9a91d0748fe73f9a98885b5f80afdc7b1f326c0b5 \ + --hash=sha256:3bcfe6eedb2292bc9256c85420d7546fb378f9226cb82750087edc5cea1246e4 \ + --hash=sha256:3db7857dbb2eeb9f74c4b8df4177bbf5b5df3c7c2c5868d130c6e5d05871ea25 \ + --hash=sha256:3f01dae803f9e0d3bfd6158d8f9e54b022f1621ae2401482c4510377f199e6d1 \ + --hash=sha256:4196a811efb8fa11b50699fae58151046bb56404cf2e2d8613a03a174b5882c5 \ + --hash=sha256:46e966257a0b656f46bee0016db4815b51a577b11ce1363434ac1ed48cd1ebef \ + --hash=sha256:476d13691ebde61ffba87e30e5564409ca787244b034a702514597f0c6852ae8 \ + --hash=sha256:496071b235d2bc92613012d3c9024b2caf8aa1a9bbcc08ed5673c7fb103ddc21 \ + --hash=sha256:4a5231d4003e0efdb7bb00e914b13ee4f7c4caa300c6b5fab29c0e597132fec4 \ + --hash=sha256:4b304fd9ae156fdcb3a085589bcd0c551807d46843aacf30706e67176ca874e9 \ + --hash=sha256:4dcb957a52c9a490db5c1497a8271ecfa89e37382021c881c31494749d14a277 \ + --hash=sha256:4df9f6fa684e732777fff4e2c56d8390ca73317c01c1b3f19f5f70d24710c70f \ + --hash=sha256:5652f2a7679941f835b2b1cc3f6d9a32a48beff156b91d8ff534e3cccb5ff0f3 \ + --hash=sha256:56b6a440809f3c42d67266c9e18ee859895a93b7020d17f8dc8484000925feeb \ + --hash=sha256:5b117e16bea7d7f97e8bf9fe4210b29f342dbb7d1b1f43ba22027ea324e0740b \ + --hash=sha256:5d275478927272b414162e741812ac6db2667ffbdf52a20c525b096329de91f6 \ + --hash=sha256:5ef4081eee2a2e9a0fb674372829749d3e0f9429b24d922f06d1a2b08dad573f \ + --hash=sha256:5f2f0bee085d85e8e34edebd1fa64a13301a7f6f696628b04fcb1c8dc4a42592 \ + --hash=sha256:600b1aae1ea3e5028b879ad8421284e01fa7095ef17cc35f7af6145ccd8be436 \ + --hash=sha256:6123f727566875e17856a63800d7b163767ee5817019c89ecc660936d14c779a \ + --hash=sha256:616e9851deb7ededfbcfb3656e74c5a398fa68217432ab9cd9bd23e4f86ee999 \ + --hash=sha256:645855f33db63d6e8751b9560f04039f42695c05edaaa7bc411ad2b5d3970df7 \ + --hash=sha256:6bf9dcee30755d2462194ccc1bdc3b25093708d7820f2f0db7d79ff42f80bbf3 \ + --hash=sha256:6c2190fbe8d5c385d7f26098200d49e6ea53558f489010acb341ab4a430345cf \ + --hash=sha256:6e6b1413450dceb8102447bebaa1ab20185c9f2d48f741a00737feffed1d395e \ + --hash=sha256:71d3381b2a88b203a3fd6e22b52f840194145f096270c3fe03c981018b04eabe \ + --hash=sha256:71df9704012b073b2a4acef05112ab94d62d64e58fbf1649614165c27f057b45 \ + --hash=sha256:746f5bf9e0a40358b8f1037e9ed1bf14fba166fe4c72fef3353eb369d21918ba \ + --hash=sha256:79be795912dbca15134db4ca0639a5b68933850089dc159a5534b4a9c9087573 \ + --hash=sha256:7cba3a110d9a7f1bc3ab09063e85a7952ba77fb799433bc94d231a618eed4e86 \ + --hash=sha256:7d8070718567ed8651f96c96cdb9e61069e84c251fcda93d63ddb096e9db772d \ + --hash=sha256:80528481021e4ed96b713867eb902429ad818c42a3f34dfa8f6d570f4816cb2f \ + --hash=sha256:81829046af53ddc66e5bb908e80a7ca2c617983d70f682ae95c5ab4969f1996e \ + --hash=sha256:818ea09815f042b24be4bc6ed90b3520560f85190d89bbcecbd7231a27b571c2 \ + --hash=sha256:81a6035f9070ea1e0fae796f130b2ad3e7306e397cc0da686b9fc725745ddb8f \ + --hash=sha256:83bc0830ffb9c0a9f036e72c6ff79a9e86e5dcb8a93c4a82d59e54d3071f5a95 \ + --hash=sha256:83c06ee2d5193f79a0ac96b59f3b0a159479a1e8f3c56eafcac43d3a6c0dcd61 \ + --hash=sha256:8470354e9ac80deacba37f0ff8c608a7cad577717175fadaba0af26f0dfe2043 \ + --hash=sha256:8646b68aaed9d583b284d70bec4d6611e6b6e3876f78f58eb7c4d9b79a880698 \ + --hash=sha256:8d900aef5e52ce41d99ec346c35b0b0611bf131864aaaa4e7985ca1fca32eec7 \ + --hash=sha256:907283ecd7d25fbaa51798f5555a5f30ea82de18737aed0c706a0fce3797470b \ + --hash=sha256:91022d535531e1865e43e74b4b843d9a243d8cd4de67b7bc8471917856205b7f \ + --hash=sha256:975ddf5443cd1afeac66c7f6a998ed8a28ed8177d6262c96a4af2b6c384ad149 \ + --hash=sha256:9a0701f4d34c1cf5c1f56b9b0bfa8af7bbf4c0c0e05279b4a255936491e5e23f \ + --hash=sha256:a227376e1b872ef5bae328926aa1d3587cfc26a3ee83120b1c4abac63aa42af8 \ + --hash=sha256:a720fc8f51430590ef60ccc2d91b41bb3706cd136580e11ff65cf5ddf776c82f \ + --hash=sha256:b2c478ceb9c1fbfffdaca481a9dcbe3db9eca273f8e7e6662b16c9bb4308cb89 \ + --hash=sha256:b38f31546e0b0e95495b2ab98a7d607fa0c9812e760fa4ea84dce554083c51f6 \ + --hash=sha256:c74eadbd96c379b7193141edf5596004a616cf4252bfa8bae0a2f2608658470c \ + --hash=sha256:cba137225dbfdd3223bd8b7cfb1965ba8bc90fc3f5f04d22051eb0cae3282378 \ + --hash=sha256:d1fd61883ec0e2275028ab2bc0261e41910acbe34727867350ebdee97ee0e2e1 \ + --hash=sha256:d25816c118033708065b935d8a1f1e0dfa43142b98a261a06a26e484a9980328 \ + --hash=sha256:e7aa0cf10196b4ff80ff78e16ffa43fa0a201b5546f1cb8f1489ff57b48b803c \ + --hash=sha256:ebc4019a9148a87fd45d82d943882764d60d3cec6f0cd2717916eb88c7c618b1 \ + --hash=sha256:ef6a986393b7b845a1b9dac7da59fd89c6196a222d61f32c563d8b6111fb4245 \ + --hash=sha256:ef9332544586ff73bbbe6faf07013b7fb75990e6a5ae3bf9ed89bd93402c46aa \ + --hash=sha256:f102a1da8bbc7d60514af17d429f5fb1554837e6615ec149c5bc54b4674cba9b \ + --hash=sha256:f13f3c61c6591e04668c32b33987aa3956026a54d709b839e53ab852cd29701c \ + --hash=sha256:f53d81553b9f19e7b3f13d6c421a5643013c2d88e312239eb337c5b01aa87216 \ + --hash=sha256:f9cf82ba8a535076febdf7a383795789a4a920e7f48c3a5f5601c53b6f77e403 \ + --hash=sha256:fa71751995146fc33a82f8e08be328a2df10992d0a5da5bc83f4bb33c9ad3120 \ + --hash=sha256:fb11adf496bfe415a8f80528d628b8db4e80b65ad1e55102e483e046ccb690da + # via -r __app__/requirements.in +aiosignal==1.3.2 \ + --hash=sha256:45cde58e409a301715980c2b01d0c28bdde3770d8290b5eb2173759d9acb31a5 \ + --hash=sha256:a8c255c66fafb1e499c9351d0bf32ff2d8a0321595ebac3b93713656d2436f54 + # via aiohttp +async-timeout==4.0.3 \ + --hash=sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f \ + --hash=sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028 # 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 __app__/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 +219,197 @@ 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.3.1 \ + --hash=sha256:050b571b2e96ec942898f8eb46ea4bfbb19bd5502424747e83badc2d4a99a44e \ + --hash=sha256:05543250deac8e61084234d5fc54f8ebd254e8f2b39a16b1dce48904f45b744b \ + --hash=sha256:069e7212890b0bcf9b2be0a03afb0c2d5161d91e1bf51569a64f629acc7defbf \ + --hash=sha256:09400e98545c998d57d10035ff623266927cb784d13dd2b31fd33b8a5316b85b \ + --hash=sha256:0c3c3a203c375b08fd06a20da3cf7aac293b834b6f4f4db71190e8422750cca5 \ + --hash=sha256:0c86e7ceea56376216eba345aa1fc6a8a6b27ac236181f840d1d7e6a1ea9ba5c \ + --hash=sha256:0fbe94666e62ebe36cd652f5fc012abfbc2342de99b523f8267a678e4dfdee3c \ + --hash=sha256:17d1c688a443355234f3c031349da69444be052613483f3e4158eef751abcd8a \ + --hash=sha256:19a06db789a4bd896ee91ebc50d059e23b3639c25d58eb35be3ca1cbe967c3bf \ + --hash=sha256:1c5c7ab7f2bb3f573d1cb921993006ba2d39e8621019dffb1c5bc94cdbae81e8 \ + --hash=sha256:1eb34d90aac9bfbced9a58b266f8946cb5935869ff01b164573a7634d39fbcb5 \ + --hash=sha256:1f6cc0ad7b4560e5637eb2c994e97b4fa41ba8226069c9277eb5ea7101845b42 \ + --hash=sha256:27c6ac6aa9fc7bc662f594ef380707494cb42c22786a558d95fcdedb9aa5d035 \ + --hash=sha256:2d219b0dbabe75e15e581fc1ae796109b07c8ba7d25b9ae8d650da582bed01b0 \ + --hash=sha256:2fce1df66915909ff6c824bbb5eb403d2d15f98f1518e583074671a30fe0c21e \ + --hash=sha256:319fa8765bfd6a265e5fa661547556da381e53274bc05094fc9ea50da51bfd46 \ + --hash=sha256:359e81a949a7619802eb601d66d37072b79b79c2505e6d3fd8b945538411400d \ + --hash=sha256:3a02a28095b5e63128bcae98eb59025924f121f048a62393db682f049bf4ac24 \ + --hash=sha256:3e19ea4ea0bf46179f8a3652ac1426e6dcbaf577ce4b4f65be581e237340420d \ + --hash=sha256:3e584b6d388aeb0001d6d5c2bd86b26304adde6d9bb9bfa9c4889805021b96de \ + --hash=sha256:40d980c33765359098837527e18eddefc9a24cea5b45e078a7f3bb5b032c6ecf \ + --hash=sha256:4114c4ada8f3181af20808bedb250da6bae56660e4b8dfd9cd95d4549c0962f7 \ + --hash=sha256:43593c6772aa12abc3af7784bff4a41ffa921608dd38b77cf1dfd7f5c4e71371 \ + --hash=sha256:47ef24aa6511e388e9894ec16f0fbf3313a53ee68402bc428744a367ec55b833 \ + --hash=sha256:4cf9e93a81979f1424f1a3d155213dc928f1069d697e4353edb8a5eba67c6259 \ + --hash=sha256:4d0dfdd9a2ebc77b869a0b04423591ea8823f791293b527dc1bb896c1d6f1136 \ + --hash=sha256:563f9d8c03ad645597b8d010ef4e9eab359faeb11a0a2ac9f7b4bc8c28ebef25 \ + --hash=sha256:58aa11f4ca8b60113d4b8e32d37e7e78bd8af4d1a5b5cb4979ed856a45e62005 \ + --hash=sha256:5a0a9898fdb99bf11786265468571e628ba60af80dc3f6eb89a3545540c6b0ef \ + --hash=sha256:5aed8d8308215089c0734a2af4f2e95eeb360660184ad3912686c181e500b2e7 \ + --hash=sha256:5b9145c35cc87313b5fd480144f8078716007656093d23059e8993d3a8fa730f \ + --hash=sha256:5cb5918253912e088edbf023788de539219718d3b10aef334476b62d2b53de53 \ + --hash=sha256:5cdb0f3e1eb6dfc9965d19734d8f9c481b294b5274337a8cb5cb01b462dcb7e0 \ + --hash=sha256:5ced33d827625d0a589e831126ccb4f5c29dfdf6766cac441d23995a65825dcb \ + --hash=sha256:603f1fe4144420374f1a69b907494c3acbc867a581c2d49d4175b0de7cc64566 \ + --hash=sha256:61014615c1274df8da5991a1e5da85a3ccb00c2d4701ac6f3383afd3ca47ab0a \ + --hash=sha256:64a956dff37080b352c1c40b2966b09defb014347043e740d420ca1eb7c9b908 \ + --hash=sha256:668ddddc9f3075af019f784456267eb504cb77c2c4bd46cc8402d723b4d200bf \ + --hash=sha256:6d8e309ff9a0503ef70dc9a0ebd3e69cf7b3894c9ae2ae81fc10943c37762458 \ + --hash=sha256:6f173bbfe976105aaa890b712d1759de339d8a7cef2fc0a1714cc1a1e1c47f64 \ + --hash=sha256:71ebe3fe42656a2328ab08933d420df5f3ab121772eef78f2dc63624157f0ed9 \ + --hash=sha256:730178f476ef03d3d4d255f0c9fa186cb1d13fd33ffe89d39f2cda4da90ceb71 \ + --hash=sha256:7d2d5a0028d920738372630870e7d9644ce437142197f8c827194fca404bf03b \ + --hash=sha256:7f30241577d2fef2602113b70ef7231bf4c69a97e04693bde08ddab913ba0ce5 \ + --hash=sha256:813fbb8b6aea2fc9659815e585e548fe706d6f663fa73dff59a1677d4595a037 \ + --hash=sha256:82de5da8c8893056603ac2d6a89eb8b4df49abf1a7c19d536984c8dd63f481d5 \ + --hash=sha256:83be47aa4e35b87c106fc0c84c0fc069d3f9b9b06d3c494cd404ec6747544894 \ + --hash=sha256:8638f99dca15b9dff328fb6273e09f03d1c50d9b6512f3b65a4154588a7595fe \ + --hash=sha256:87380fb1f3089d2a0b8b00f006ed12bd41bd858fabfa7330c954c70f50ed8757 \ + --hash=sha256:88c423efef9d7a59dae0614eaed718449c09a5ac79a5f224a8b9664d603f04a3 \ + --hash=sha256:89498dd49c2f9a026ee057965cdf8192e5ae070ce7d7a7bd4b66a8e257d0c976 \ + --hash=sha256:8a17583515a04358b034e241f952f1715243482fc2c2945fd99a1b03a0bd77d6 \ + --hash=sha256:916cd229b0150129d645ec51614d38129ee74c03293a9f3f17537be0029a9641 \ + --hash=sha256:9532ea0b26a401264b1365146c440a6d78269ed41f83f23818d4b79497aeabe7 \ + --hash=sha256:967a8eec513dbe08330f10137eacb427b2ca52118769e82ebcfcab0fba92a649 \ + --hash=sha256:975af16f406ce48f1333ec5e912fe11064605d5c5b3f6746969077cc3adeb120 \ + --hash=sha256:9979643ffc69b799d50d3a7b72b5164a2e97e117009d7af6dfdd2ab906cb72cd \ + --hash=sha256:9a8ecf38de50a7f518c21568c80f985e776397b902f1ce0b01f799aba1608b40 \ + --hash=sha256:9cec3239c85ed15bfaded997773fdad9fb5662b0a7cbc854a43f291eb183179e \ + --hash=sha256:9e64e948ab41411958670f1093c0a57acfdc3bee5cf5b935671bbd5313bcf229 \ + --hash=sha256:9f64d91b751df77931336b5ff7bafbe8845c5770b06630e27acd5dbb71e1931c \ + --hash=sha256:a0ab8cf8cdd2194f8ff979a43ab43049b1df0b37aa64ab7eca04ac14429baeb7 \ + --hash=sha256:a110205022d077da24e60b3df8bcee73971be9575dec5573dd17ae5d81751111 \ + --hash=sha256:a34aa3a1abc50740be6ac0ab9d594e274f59960d3ad253cd318af76b996dd654 \ + --hash=sha256:a444192f20f5ce8a5e52761a031b90f5ea6288b1eef42ad4c7e64fef33540b8f \ + --hash=sha256:a461959ead5b38e2581998700b26346b78cd98540b5524796c175722f18b0294 \ + --hash=sha256:a75801768bbe65499495660b777e018cbe90c7980f07f8aa57d6be79ea6f71da \ + --hash=sha256:aa8efd8c5adc5a2c9d3b952815ff8f7710cefdcaf5f2c36d26aff51aeca2f12f \ + --hash=sha256:aca63103895c7d960a5b9b044a83f544b233c95e0dcff114389d64d762017af7 \ + --hash=sha256:b0313e8b923b3814d1c4a524c93dfecea5f39fa95601f6a9b1ac96cd66f89ea0 \ + --hash=sha256:b23c11c2c9e6d4e7300c92e022046ad09b91fd00e36e83c44483df4afa990073 \ + --hash=sha256:b303b194c2e6f171cfddf8b8ba30baefccf03d36a4d9cab7fd0bb68ba476a3d7 \ + --hash=sha256:b655032b202028a582d27aeedc2e813299f82cb232f969f87a4fde491a233f11 \ + --hash=sha256:bd39c92e4c8f6cbf5f08257d6360123af72af9f4da75a690bef50da77362d25f \ + --hash=sha256:bef100c88d8692864651b5f98e871fb090bd65c8a41a1cb0ff2322db39c96c27 \ + --hash=sha256:c2fe5c910f6007e716a06d269608d307b4f36e7babee5f36533722660e8c4a70 \ + --hash=sha256:c66d8ccbc902ad548312b96ed8d5d266d0d2c6d006fd0f66323e9d8f2dd49be7 \ + --hash=sha256:cd6a55f65241c551eb53f8cf4d2f4af33512c39da5d9777694e9d9c60872f519 \ + --hash=sha256:d249609e547c04d190e820d0d4c8ca03ed4582bcf8e4e160a6969ddfb57b62e5 \ + --hash=sha256:d4e89cde74154c7b5957f87a355bb9c8ec929c167b59c83d90654ea36aeb6180 \ + --hash=sha256:dc1915ec523b3b494933b5424980831b636fe483d7d543f7afb7b3bf00f0c10f \ + --hash=sha256:e1c4d24b804b3a87e9350f79e2371a705a188d292fd310e663483af6ee6718ee \ + --hash=sha256:e474fc718e73ba5ec5180358aa07f6aded0ff5f2abe700e3115c37d75c947e18 \ + --hash=sha256:e4fe2a6d5ce975c117a6bb1e8ccda772d1e7029c1cca1acd209f91d30fa72815 \ + --hash=sha256:e7fb9a84c9abbf2b2683fa3e7b0d7da4d8ecf139a1c635732a8bda29c5214b0e \ + --hash=sha256:e861ad82892408487be144906a368ddbe2dc6297074ade2d892341b35c59844a \ + --hash=sha256:ec314cde7314d2dd0510c6787326bbffcbdc317ecee6b7401ce218b3099075a7 \ + --hash=sha256:ed5f6d2edbf349bd8d630e81f474d33d6ae5d07760c44d33cd808e2f5c8f4ae6 \ + --hash=sha256:ef2e4e91fb3945769e14ce82ed53007195e616a63aa43b40fb7ebaaf907c8d4c \ + --hash=sha256:f011f104db880f4e2166bcdcf7f58250f7a465bc6b068dc84c824a3d4a5c94dc \ + --hash=sha256:f1528ec4374617a7a753f90f20e2f551121bb558fcb35926f99e3c42367164b8 \ + --hash=sha256:f27785888d2fdd918bc36de8b8739f2d6c791399552333721b58193f68ea3e98 \ + --hash=sha256:f35c7070eeec2cdaac6fd3fe245226ed2a6292d3ee8c938e5bb645b434c5f256 \ + --hash=sha256:f3bbecd2f34d0e6d3c543fdb3b15d6b60dd69970c2b4c822379e5ec8f6f621d5 \ + --hash=sha256:f6f1324db48f001c2ca26a25fa25af60711e09b9aaf4b28488602776f4f9a744 \ + --hash=sha256:f78eb8422acc93d7b69964012ad7048764bb45a54ba7a39bb9e146c72ea29723 \ + --hash=sha256:fb6e0faf8cb6b4beea5d6ed7b5a578254c6d7df54c36ccd3d8b3eb00d6770277 \ + --hash=sha256:feccd282de1f6322f56f6845bf1207a537227812f0a9bf5571df52bb418d79d5 + # 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 \ - --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.18.3 \ + --hash=sha256:00e5a1fea0fd4f5bfa7440a47eff01d9822a65b4488f7cff83155a0f31a2ecba \ + --hash=sha256:02ddb6756f8f4517a2d5e99d8b2f272488e18dd0bfbc802f31c16c6c20f22193 \ + --hash=sha256:045b8482ce9483ada4f3f23b3774f4e1bf4f23a2d5c912ed5170f68efb053318 \ + --hash=sha256:09c7907c8548bcd6ab860e5f513e727c53b4a714f459b084f6580b49fa1b9cee \ + --hash=sha256:0b0cad37311123211dc91eadcb322ef4d4a66008d3e1bdc404808992260e1a0e \ + --hash=sha256:0b3c92fa08759dbf12b3a59579a4096ba9af8dd344d9a813fc7f5070d86bbab1 \ + --hash=sha256:0fb2171a4486bb075316ee754c6d8382ea6eb8b399d4ec62fde2b591f879778a \ + --hash=sha256:1a74a13a4c857a84a845505fd2d68e54826a2cd01935a96efb1e9d86c728e186 \ + --hash=sha256:1d407181cfa6e70077df3377938c08012d18893f9f20e92f7d2f314a437c30b1 \ + --hash=sha256:1dd4bdd05407ced96fed3d7f25dbbf88d2ffb045a0db60dbc247f5b3c5c25d50 \ + --hash=sha256:25b411eddcfd56a2f0cd6a384e9f4f7aa3efee14b188de13048c25b5e91f1640 \ + --hash=sha256:2d06d3005e668744e11ed80812e61efd77d70bb7f03e33c1598c301eea20efbb \ + --hash=sha256:2ec9bbba33b2d00999af4631a3397d1fd78290c48e2a3e52d8dd72db3a067ac8 \ + --hash=sha256:3236da9272872443f81fedc389bace88408f64f89f75d1bdb2256069a8730ccc \ + --hash=sha256:35098b24e0327fc4ebdc8ffe336cee0a87a700c24ffed13161af80124b7dc8e5 \ + --hash=sha256:41f7ce59d6ee7741af71d82020346af364949314ed3d87553763a2df1829cc58 \ + --hash=sha256:436c4fc0a4d66b2badc6c5fc5ef4e47bb10e4fd9bf0c79524ac719a01f3607c2 \ + --hash=sha256:4891ed92157e5430874dad17b15eb1fda57627710756c27422200c52d8a4e393 \ + --hash=sha256:4ac515b860c36becb81bb84b667466885096b5fc85596948548b667da3bf9f24 \ + --hash=sha256:5094d9206c64181d0f6e76ebd8fb2f8fe274950a63890ee9e0ebfd58bf9d787b \ + --hash=sha256:54d6921f07555713b9300bee9c50fb46e57e2e639027089b1d795ecd9f7fa910 \ + --hash=sha256:578e281c393af575879990861823ef19d66e2b1d0098414855dd367e234f5b3c \ + --hash=sha256:5a3f356548e34a70b0172d8890006c37be92995f62d95a07b4a42e90fba54272 \ + --hash=sha256:602d98f2c2d929f8e697ed274fbadc09902c4025c5a9963bf4e9edfc3ab6f7ed \ + --hash=sha256:61b1a825a13bef4a5f10b1885245377d3cd0bf87cba068e1d9a88c2ae36880e1 \ + --hash=sha256:61e5e68cb65ac8f547f6b5ef933f510134a6bf31bb178be428994b0cb46c2a04 \ + --hash=sha256:61ee62ead9b68b9123ec24bc866cbef297dd266175d53296e2db5e7f797f902d \ + --hash=sha256:6333c5a377c8e2f5fae35e7b8f145c617b02c939d04110c76f29ee3676b5f9a5 \ + --hash=sha256:6748dbf9bfa5ba1afcc7556b71cda0d7ce5f24768043a02a58846e4a443d808d \ + --hash=sha256:67a283dd2882ac98cc6318384f565bffc751ab564605959df4752d42483ad889 \ + --hash=sha256:75674776d96d7b851b6498f17824ba17849d790a44d282929c42dbb77d4f17ae \ + --hash=sha256:757e81cae69244257d125ff31663249b3013b5dc0a8520d73694aed497fb195b \ + --hash=sha256:77a6e85b90a7641d2e07184df5557132a337f136250caafc9ccaa4a2a998ca2c \ + --hash=sha256:7c33dd1931a95e5d9a772d0ac5e44cac8957eaf58e3c8da8c1414de7dd27c576 \ + --hash=sha256:7df647e8edd71f000a5208fe6ff8c382a1de8edfbccdbbfe649d263de07d8c34 \ + --hash=sha256:7e2ee16578af3b52ac2f334c3b1f92262f47e02cc6193c598502bd46f5cd1477 \ + --hash=sha256:80316a8bd5109320d38eef8833ccf5f89608c9107d02d2a7f985f98ed6876990 \ + --hash=sha256:82123d0c954dc58db301f5021a01854a85bf1f3bb7d12ae0c01afc414a882ca2 \ + --hash=sha256:84b2deecba4a3f1a398df819151eb72d29bfeb3b69abb145a00ddc8d30094512 \ + --hash=sha256:8503ad47387b8ebd39cbbbdf0bf113e17330ffd339ba1144074da24c545f0069 \ + --hash=sha256:877d209b6aebeb5b16c42cbb377f5f94d9e556626b1bfff66d7b0d115be88d0a \ + --hash=sha256:8874027a53e3aea659a6d62751800cf6e63314c160fd607489ba5c2edd753cf6 \ + --hash=sha256:88a19f62ff30117e706ebc9090b8ecc79aeb77d0b1f5ec10d2d27a12bc9f66d0 \ + --hash=sha256:8d39d351e7faf01483cc7ff7c0213c412e38e5a340238826be7e0e4da450fdc8 \ + --hash=sha256:90adb47ad432332d4f0bc28f83a5963f426ce9a1a8809f5e584e704b82685dcb \ + --hash=sha256:913829534200eb0f789d45349e55203a091f45c37a2674678744ae52fae23efa \ + --hash=sha256:93b2e109287f93db79210f86deb6b9bbb81ac32fc97236b16f7433db7fc437d8 \ + --hash=sha256:9d41beda9dc97ca9ab0b9888cb71f7539124bc05df02c0cff6e5acc5a19dcc6e \ + --hash=sha256:a440a2a624683108a1b454705ecd7afc1c3438a08e890a1513d468671d90a04e \ + --hash=sha256:a4bb030cf46a434ec0225bddbebd4b89e6471814ca851abb8696170adb163985 \ + --hash=sha256:a9ca04806f3be0ac6d558fffc2fdf8fcef767e0489d2684a21912cc4ed0cd1b8 \ + --hash=sha256:ac1801c45cbf77b6c99242eeff4fffb5e4e73a800b5c4ad4fc0be5def634d2e1 \ + --hash=sha256:ac36703a585e0929b032fbaab0707b75dc12703766d0b53486eabd5139ebadd5 \ + --hash=sha256:b1771de9944d875f1b98a745bc547e684b863abf8f8287da8466cf470ef52690 \ + --hash=sha256:b464c4ab4bfcb41e3bfd3f1c26600d038376c2de3297760dfe064d2cb7ea8e10 \ + --hash=sha256:b4f6450109834af88cb4cc5ecddfc5380ebb9c228695afc11915a0bf82116789 \ + --hash=sha256:b57f4f58099328dfb26c6a771d09fb20dbbae81d20cfb66141251ea063bd101b \ + --hash=sha256:b643562c12680b01e17239be267bc306bbc6aac1f34f6444d1bded0c5ce438ca \ + --hash=sha256:b958ddd075ddba5b09bb0be8a6d9906d2ce933aee81100db289badbeb966f54e \ + --hash=sha256:b9d60031cf568c627d028239693fd718025719c02c9f55df0a53e587aab951b5 \ + --hash=sha256:ba23302c0c61a9999784e73809427c9dbedd79f66a13d84ad1b1943802eaaf59 \ + --hash=sha256:ba87babd629f8af77f557b61e49e7c7cac36f22f871156b91e10a6e9d4f829e9 \ + --hash=sha256:c017a3b6df3a1bd45b9fa49a0f54005e53fbcad16633870104b66fa1a30a29d8 \ + --hash=sha256:c1e1cc06da1491e6734f0ea1e6294ce00792193c463350626571c287c9a704db \ + --hash=sha256:c654d5207c78e0bd6d749f6dae1dcbbfde3403ad3a4b11f3c5544d9906969dde \ + --hash=sha256:c69697d3adff5aa4f874b19c0e4ed65180ceed6318ec856ebc423aa5850d84f7 \ + --hash=sha256:c7d79f7d9aabd6011004e33b22bc13056a3e3fb54794d138af57f5ee9d9032cb \ + --hash=sha256:ccaa3a4b521b780a7e771cc336a2dba389a0861592bbce09a476190bb0c8b4b3 \ + --hash=sha256:ccd17349166b1bee6e529b4add61727d3f55edb7babbe4069b5764c9587a8cc6 \ + --hash=sha256:ce1af883b94304f493698b00d0f006d56aea98aeb49d75ec7d98cd4a777e9285 \ + --hash=sha256:d0e883008013c0e4aef84dcfe2a0b172c4d23c2669412cf5b3371003941f72bb \ + --hash=sha256:d980e0325b6eddc81331d3f4551e2a333999fb176fd153e075c6d1c2530aa8a8 \ + --hash=sha256:e17c9361d46a4d5addf777c6dd5eab0715a7684c2f11b88c67ac37edfba6c482 \ + --hash=sha256:e2c08cc9b16f4f4bc522771d96734c7901e7ebef70c6c5c35dd0f10845270bcd \ + --hash=sha256:e35ef8683211db69ffe129a25d5634319a677570ab6b2eba4afa860f54eeaf75 \ + --hash=sha256:e3b9fd71836999aad54084906f8663dffcd2a7fb5cdafd6c37713b2e72be1760 \ + --hash=sha256:ef9f7768395923c3039055c14334ba4d926f3baf7b776c923c93d80195624782 \ + --hash=sha256:f52a265001d830bc425f82ca9eabda94a64a4d753b07d623a9f2863fde532b53 \ + --hash=sha256:f91c4803173928a25e1a55b943c81f55b8872f0018be83e3ad4938adffb77dd2 \ + --hash=sha256:fbd6748e8ab9b41171bb95c6142faf068f5ef1511935a0aa07025438dd9a9bc1 \ + --hash=sha256:fe57328fbc1bfd0bd0514470ac692630f3901c0ee39052ae47acd1d90a436719 \ + --hash=sha256:fea09ca13323376a2fdfb353a5fa2e59f90cd18d7ca4eaa1fd31f0a8b4f91e62 # via aiohttp diff --git a/dev-requirements.txt b/dev-requirements.txt index 232ea46..1c1259d 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -4,53 +4,132 @@ # # 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 +aiohappyeyeballs==2.6.1 \ + --hash=sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558 \ + --hash=sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8 + # via + # -r __app__/requirements.txt + # aiohttp +aiohttp==3.11.0b0 \ + --hash=sha256:0799d232ae388070610d03a1f6baf4c00d61014c560e96620645fceb3f90a033 \ + --hash=sha256:0e3c69ec0e130f2d10cb3a675c941ae8937137be50bc271d08db3433c6a38497 \ + --hash=sha256:12c7fc1f9c3585912eb5fa11b96940f78a48c0ddcb236659486f017b6f1c2131 \ + --hash=sha256:14f278c5cd92722c5626b45a62d3fc2fc4a0b0ecd9e205a7cf85b0384ea0e22b \ + --hash=sha256:1fba27b27cac4fcdb30b76104b33be1a581a7c6ccd70bb2a1b8a535a2373e6ec \ + --hash=sha256:210e2f211da6ae9b5f47b39d6e5952a31536c78a5dce580f80ec5640ded5102b \ + --hash=sha256:22a6a36b1f6950c4b559173157261abf8dfb6837887f3d3a866c142a55fd57e5 \ + --hash=sha256:2821c4c75162ed1ba3dc56f344c33e37e6bbe15d995362596820276b0cb7d03c \ + --hash=sha256:28c35f7c0de807dd8265c3b972143d7c148f40e0ffbf6b15d5c1a95be4be2551 \ + --hash=sha256:292308b184321e34c095437ee3a1251e7bd44c7ba43544540677a547f6492964 \ + --hash=sha256:29b25b030477dce59630af9891cddb87b5b09b07f240c20364cc7dd3f66b227a \ + --hash=sha256:2b553a9698007aaf6e698bb5ee0ad8803bcb67e201d36a2f5527820ee5d03ee6 \ + --hash=sha256:38bfd03fc060bd4640be3493b85a368ff897f5ef94a9e457140473db1fc6cec5 \ + --hash=sha256:39c347ecb59bc3a4d04922b45115e3fb3706fe3a5cd7470642618e30da5ea635 \ + --hash=sha256:3b2b0ca13d29008a8abc87d9a91d0748fe73f9a98885b5f80afdc7b1f326c0b5 \ + --hash=sha256:3bcfe6eedb2292bc9256c85420d7546fb378f9226cb82750087edc5cea1246e4 \ + --hash=sha256:3db7857dbb2eeb9f74c4b8df4177bbf5b5df3c7c2c5868d130c6e5d05871ea25 \ + --hash=sha256:3f01dae803f9e0d3bfd6158d8f9e54b022f1621ae2401482c4510377f199e6d1 \ + --hash=sha256:4196a811efb8fa11b50699fae58151046bb56404cf2e2d8613a03a174b5882c5 \ + --hash=sha256:46e966257a0b656f46bee0016db4815b51a577b11ce1363434ac1ed48cd1ebef \ + --hash=sha256:476d13691ebde61ffba87e30e5564409ca787244b034a702514597f0c6852ae8 \ + --hash=sha256:496071b235d2bc92613012d3c9024b2caf8aa1a9bbcc08ed5673c7fb103ddc21 \ + --hash=sha256:4a5231d4003e0efdb7bb00e914b13ee4f7c4caa300c6b5fab29c0e597132fec4 \ + --hash=sha256:4b304fd9ae156fdcb3a085589bcd0c551807d46843aacf30706e67176ca874e9 \ + --hash=sha256:4dcb957a52c9a490db5c1497a8271ecfa89e37382021c881c31494749d14a277 \ + --hash=sha256:4df9f6fa684e732777fff4e2c56d8390ca73317c01c1b3f19f5f70d24710c70f \ + --hash=sha256:5652f2a7679941f835b2b1cc3f6d9a32a48beff156b91d8ff534e3cccb5ff0f3 \ + --hash=sha256:56b6a440809f3c42d67266c9e18ee859895a93b7020d17f8dc8484000925feeb \ + --hash=sha256:5b117e16bea7d7f97e8bf9fe4210b29f342dbb7d1b1f43ba22027ea324e0740b \ + --hash=sha256:5d275478927272b414162e741812ac6db2667ffbdf52a20c525b096329de91f6 \ + --hash=sha256:5ef4081eee2a2e9a0fb674372829749d3e0f9429b24d922f06d1a2b08dad573f \ + --hash=sha256:5f2f0bee085d85e8e34edebd1fa64a13301a7f6f696628b04fcb1c8dc4a42592 \ + --hash=sha256:600b1aae1ea3e5028b879ad8421284e01fa7095ef17cc35f7af6145ccd8be436 \ + --hash=sha256:6123f727566875e17856a63800d7b163767ee5817019c89ecc660936d14c779a \ + --hash=sha256:616e9851deb7ededfbcfb3656e74c5a398fa68217432ab9cd9bd23e4f86ee999 \ + --hash=sha256:645855f33db63d6e8751b9560f04039f42695c05edaaa7bc411ad2b5d3970df7 \ + --hash=sha256:6bf9dcee30755d2462194ccc1bdc3b25093708d7820f2f0db7d79ff42f80bbf3 \ + --hash=sha256:6c2190fbe8d5c385d7f26098200d49e6ea53558f489010acb341ab4a430345cf \ + --hash=sha256:6e6b1413450dceb8102447bebaa1ab20185c9f2d48f741a00737feffed1d395e \ + --hash=sha256:71d3381b2a88b203a3fd6e22b52f840194145f096270c3fe03c981018b04eabe \ + --hash=sha256:71df9704012b073b2a4acef05112ab94d62d64e58fbf1649614165c27f057b45 \ + --hash=sha256:746f5bf9e0a40358b8f1037e9ed1bf14fba166fe4c72fef3353eb369d21918ba \ + --hash=sha256:79be795912dbca15134db4ca0639a5b68933850089dc159a5534b4a9c9087573 \ + --hash=sha256:7cba3a110d9a7f1bc3ab09063e85a7952ba77fb799433bc94d231a618eed4e86 \ + --hash=sha256:7d8070718567ed8651f96c96cdb9e61069e84c251fcda93d63ddb096e9db772d \ + --hash=sha256:80528481021e4ed96b713867eb902429ad818c42a3f34dfa8f6d570f4816cb2f \ + --hash=sha256:81829046af53ddc66e5bb908e80a7ca2c617983d70f682ae95c5ab4969f1996e \ + --hash=sha256:818ea09815f042b24be4bc6ed90b3520560f85190d89bbcecbd7231a27b571c2 \ + --hash=sha256:81a6035f9070ea1e0fae796f130b2ad3e7306e397cc0da686b9fc725745ddb8f \ + --hash=sha256:83bc0830ffb9c0a9f036e72c6ff79a9e86e5dcb8a93c4a82d59e54d3071f5a95 \ + --hash=sha256:83c06ee2d5193f79a0ac96b59f3b0a159479a1e8f3c56eafcac43d3a6c0dcd61 \ + --hash=sha256:8470354e9ac80deacba37f0ff8c608a7cad577717175fadaba0af26f0dfe2043 \ + --hash=sha256:8646b68aaed9d583b284d70bec4d6611e6b6e3876f78f58eb7c4d9b79a880698 \ + --hash=sha256:8d900aef5e52ce41d99ec346c35b0b0611bf131864aaaa4e7985ca1fca32eec7 \ + --hash=sha256:907283ecd7d25fbaa51798f5555a5f30ea82de18737aed0c706a0fce3797470b \ + --hash=sha256:91022d535531e1865e43e74b4b843d9a243d8cd4de67b7bc8471917856205b7f \ + --hash=sha256:975ddf5443cd1afeac66c7f6a998ed8a28ed8177d6262c96a4af2b6c384ad149 \ + --hash=sha256:9a0701f4d34c1cf5c1f56b9b0bfa8af7bbf4c0c0e05279b4a255936491e5e23f \ + --hash=sha256:a227376e1b872ef5bae328926aa1d3587cfc26a3ee83120b1c4abac63aa42af8 \ + --hash=sha256:a720fc8f51430590ef60ccc2d91b41bb3706cd136580e11ff65cf5ddf776c82f \ + --hash=sha256:b2c478ceb9c1fbfffdaca481a9dcbe3db9eca273f8e7e6662b16c9bb4308cb89 \ + --hash=sha256:b38f31546e0b0e95495b2ab98a7d607fa0c9812e760fa4ea84dce554083c51f6 \ + --hash=sha256:c74eadbd96c379b7193141edf5596004a616cf4252bfa8bae0a2f2608658470c \ + --hash=sha256:cba137225dbfdd3223bd8b7cfb1965ba8bc90fc3f5f04d22051eb0cae3282378 \ + --hash=sha256:d1fd61883ec0e2275028ab2bc0261e41910acbe34727867350ebdee97ee0e2e1 \ + --hash=sha256:d25816c118033708065b935d8a1f1e0dfa43142b98a261a06a26e484a9980328 \ + --hash=sha256:e7aa0cf10196b4ff80ff78e16ffa43fa0a201b5546f1cb8f1489ff57b48b803c \ + --hash=sha256:ebc4019a9148a87fd45d82d943882764d60d3cec6f0cd2717916eb88c7c618b1 \ + --hash=sha256:ef6a986393b7b845a1b9dac7da59fd89c6196a222d61f32c563d8b6111fb4245 \ + --hash=sha256:ef9332544586ff73bbbe6faf07013b7fb75990e6a5ae3bf9ed89bd93402c46aa \ + --hash=sha256:f102a1da8bbc7d60514af17d429f5fb1554837e6615ec149c5bc54b4674cba9b \ + --hash=sha256:f13f3c61c6591e04668c32b33987aa3956026a54d709b839e53ab852cd29701c \ + --hash=sha256:f53d81553b9f19e7b3f13d6c421a5643013c2d88e312239eb337c5b01aa87216 \ + --hash=sha256:f9cf82ba8a535076febdf7a383795789a4a920e7f48c3a5f5601c53b6f77e403 \ + --hash=sha256:fa71751995146fc33a82f8e08be328a2df10992d0a5da5bc83f4bb33c9ad3120 \ + --hash=sha256:fb11adf496bfe415a8f80528d628b8db4e80b65ad1e55102e483e046ccb690da + # via -r __app__/requirements.txt +aiosignal==1.3.2 \ + --hash=sha256:45cde58e409a301715980c2b01d0c28bdde3770d8290b5eb2173759d9acb31a5 \ + --hash=sha256:a8c255c66fafb1e499c9351d0bf32ff2d8a0321595ebac3b93713656d2436f54 + # 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 +async-timeout==4.0.3 \ + --hash=sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f \ + --hash=sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028 + # via + # -r __app__/requirements.txt + # aiohttp 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 +161,122 @@ coverage==5.0.3 \ --hash=sha256:da93027835164b8223e8e5af2cf902a4c80ed93cb0909417234f4a9df3bcd9af \ --hash=sha256:e69215621707119c6baf99bda014a45b999d37602cb7043d943c76a59b05bf52 \ --hash=sha256:ea9525e0fef2de9208250d6c5aeeee0138921057cd67fcef90fbed49c4d62d37 \ - --hash=sha256:fca1669d464f0c9831fd10be2eef6b86f5ebd76c724d1e0706ebdff86bb4adf0 \ + --hash=sha256:fca1669d464f0c9831fd10be2eef6b86f5ebd76c724d1e0706ebdff86bb4adf0 # via pytest-cov +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 + # -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 +296,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 +315,153 @@ 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 +propcache==0.3.1 \ + --hash=sha256:050b571b2e96ec942898f8eb46ea4bfbb19bd5502424747e83badc2d4a99a44e \ + --hash=sha256:05543250deac8e61084234d5fc54f8ebd254e8f2b39a16b1dce48904f45b744b \ + --hash=sha256:069e7212890b0bcf9b2be0a03afb0c2d5161d91e1bf51569a64f629acc7defbf \ + --hash=sha256:09400e98545c998d57d10035ff623266927cb784d13dd2b31fd33b8a5316b85b \ + --hash=sha256:0c3c3a203c375b08fd06a20da3cf7aac293b834b6f4f4db71190e8422750cca5 \ + --hash=sha256:0c86e7ceea56376216eba345aa1fc6a8a6b27ac236181f840d1d7e6a1ea9ba5c \ + --hash=sha256:0fbe94666e62ebe36cd652f5fc012abfbc2342de99b523f8267a678e4dfdee3c \ + --hash=sha256:17d1c688a443355234f3c031349da69444be052613483f3e4158eef751abcd8a \ + --hash=sha256:19a06db789a4bd896ee91ebc50d059e23b3639c25d58eb35be3ca1cbe967c3bf \ + --hash=sha256:1c5c7ab7f2bb3f573d1cb921993006ba2d39e8621019dffb1c5bc94cdbae81e8 \ + --hash=sha256:1eb34d90aac9bfbced9a58b266f8946cb5935869ff01b164573a7634d39fbcb5 \ + --hash=sha256:1f6cc0ad7b4560e5637eb2c994e97b4fa41ba8226069c9277eb5ea7101845b42 \ + --hash=sha256:27c6ac6aa9fc7bc662f594ef380707494cb42c22786a558d95fcdedb9aa5d035 \ + --hash=sha256:2d219b0dbabe75e15e581fc1ae796109b07c8ba7d25b9ae8d650da582bed01b0 \ + --hash=sha256:2fce1df66915909ff6c824bbb5eb403d2d15f98f1518e583074671a30fe0c21e \ + --hash=sha256:319fa8765bfd6a265e5fa661547556da381e53274bc05094fc9ea50da51bfd46 \ + --hash=sha256:359e81a949a7619802eb601d66d37072b79b79c2505e6d3fd8b945538411400d \ + --hash=sha256:3a02a28095b5e63128bcae98eb59025924f121f048a62393db682f049bf4ac24 \ + --hash=sha256:3e19ea4ea0bf46179f8a3652ac1426e6dcbaf577ce4b4f65be581e237340420d \ + --hash=sha256:3e584b6d388aeb0001d6d5c2bd86b26304adde6d9bb9bfa9c4889805021b96de \ + --hash=sha256:40d980c33765359098837527e18eddefc9a24cea5b45e078a7f3bb5b032c6ecf \ + --hash=sha256:4114c4ada8f3181af20808bedb250da6bae56660e4b8dfd9cd95d4549c0962f7 \ + --hash=sha256:43593c6772aa12abc3af7784bff4a41ffa921608dd38b77cf1dfd7f5c4e71371 \ + --hash=sha256:47ef24aa6511e388e9894ec16f0fbf3313a53ee68402bc428744a367ec55b833 \ + --hash=sha256:4cf9e93a81979f1424f1a3d155213dc928f1069d697e4353edb8a5eba67c6259 \ + --hash=sha256:4d0dfdd9a2ebc77b869a0b04423591ea8823f791293b527dc1bb896c1d6f1136 \ + --hash=sha256:563f9d8c03ad645597b8d010ef4e9eab359faeb11a0a2ac9f7b4bc8c28ebef25 \ + --hash=sha256:58aa11f4ca8b60113d4b8e32d37e7e78bd8af4d1a5b5cb4979ed856a45e62005 \ + --hash=sha256:5a0a9898fdb99bf11786265468571e628ba60af80dc3f6eb89a3545540c6b0ef \ + --hash=sha256:5aed8d8308215089c0734a2af4f2e95eeb360660184ad3912686c181e500b2e7 \ + --hash=sha256:5b9145c35cc87313b5fd480144f8078716007656093d23059e8993d3a8fa730f \ + --hash=sha256:5cb5918253912e088edbf023788de539219718d3b10aef334476b62d2b53de53 \ + --hash=sha256:5cdb0f3e1eb6dfc9965d19734d8f9c481b294b5274337a8cb5cb01b462dcb7e0 \ + --hash=sha256:5ced33d827625d0a589e831126ccb4f5c29dfdf6766cac441d23995a65825dcb \ + --hash=sha256:603f1fe4144420374f1a69b907494c3acbc867a581c2d49d4175b0de7cc64566 \ + --hash=sha256:61014615c1274df8da5991a1e5da85a3ccb00c2d4701ac6f3383afd3ca47ab0a \ + --hash=sha256:64a956dff37080b352c1c40b2966b09defb014347043e740d420ca1eb7c9b908 \ + --hash=sha256:668ddddc9f3075af019f784456267eb504cb77c2c4bd46cc8402d723b4d200bf \ + --hash=sha256:6d8e309ff9a0503ef70dc9a0ebd3e69cf7b3894c9ae2ae81fc10943c37762458 \ + --hash=sha256:6f173bbfe976105aaa890b712d1759de339d8a7cef2fc0a1714cc1a1e1c47f64 \ + --hash=sha256:71ebe3fe42656a2328ab08933d420df5f3ab121772eef78f2dc63624157f0ed9 \ + --hash=sha256:730178f476ef03d3d4d255f0c9fa186cb1d13fd33ffe89d39f2cda4da90ceb71 \ + --hash=sha256:7d2d5a0028d920738372630870e7d9644ce437142197f8c827194fca404bf03b \ + --hash=sha256:7f30241577d2fef2602113b70ef7231bf4c69a97e04693bde08ddab913ba0ce5 \ + --hash=sha256:813fbb8b6aea2fc9659815e585e548fe706d6f663fa73dff59a1677d4595a037 \ + --hash=sha256:82de5da8c8893056603ac2d6a89eb8b4df49abf1a7c19d536984c8dd63f481d5 \ + --hash=sha256:83be47aa4e35b87c106fc0c84c0fc069d3f9b9b06d3c494cd404ec6747544894 \ + --hash=sha256:8638f99dca15b9dff328fb6273e09f03d1c50d9b6512f3b65a4154588a7595fe \ + --hash=sha256:87380fb1f3089d2a0b8b00f006ed12bd41bd858fabfa7330c954c70f50ed8757 \ + --hash=sha256:88c423efef9d7a59dae0614eaed718449c09a5ac79a5f224a8b9664d603f04a3 \ + --hash=sha256:89498dd49c2f9a026ee057965cdf8192e5ae070ce7d7a7bd4b66a8e257d0c976 \ + --hash=sha256:8a17583515a04358b034e241f952f1715243482fc2c2945fd99a1b03a0bd77d6 \ + --hash=sha256:916cd229b0150129d645ec51614d38129ee74c03293a9f3f17537be0029a9641 \ + --hash=sha256:9532ea0b26a401264b1365146c440a6d78269ed41f83f23818d4b79497aeabe7 \ + --hash=sha256:967a8eec513dbe08330f10137eacb427b2ca52118769e82ebcfcab0fba92a649 \ + --hash=sha256:975af16f406ce48f1333ec5e912fe11064605d5c5b3f6746969077cc3adeb120 \ + --hash=sha256:9979643ffc69b799d50d3a7b72b5164a2e97e117009d7af6dfdd2ab906cb72cd \ + --hash=sha256:9a8ecf38de50a7f518c21568c80f985e776397b902f1ce0b01f799aba1608b40 \ + --hash=sha256:9cec3239c85ed15bfaded997773fdad9fb5662b0a7cbc854a43f291eb183179e \ + --hash=sha256:9e64e948ab41411958670f1093c0a57acfdc3bee5cf5b935671bbd5313bcf229 \ + --hash=sha256:9f64d91b751df77931336b5ff7bafbe8845c5770b06630e27acd5dbb71e1931c \ + --hash=sha256:a0ab8cf8cdd2194f8ff979a43ab43049b1df0b37aa64ab7eca04ac14429baeb7 \ + --hash=sha256:a110205022d077da24e60b3df8bcee73971be9575dec5573dd17ae5d81751111 \ + --hash=sha256:a34aa3a1abc50740be6ac0ab9d594e274f59960d3ad253cd318af76b996dd654 \ + --hash=sha256:a444192f20f5ce8a5e52761a031b90f5ea6288b1eef42ad4c7e64fef33540b8f \ + --hash=sha256:a461959ead5b38e2581998700b26346b78cd98540b5524796c175722f18b0294 \ + --hash=sha256:a75801768bbe65499495660b777e018cbe90c7980f07f8aa57d6be79ea6f71da \ + --hash=sha256:aa8efd8c5adc5a2c9d3b952815ff8f7710cefdcaf5f2c36d26aff51aeca2f12f \ + --hash=sha256:aca63103895c7d960a5b9b044a83f544b233c95e0dcff114389d64d762017af7 \ + --hash=sha256:b0313e8b923b3814d1c4a524c93dfecea5f39fa95601f6a9b1ac96cd66f89ea0 \ + --hash=sha256:b23c11c2c9e6d4e7300c92e022046ad09b91fd00e36e83c44483df4afa990073 \ + --hash=sha256:b303b194c2e6f171cfddf8b8ba30baefccf03d36a4d9cab7fd0bb68ba476a3d7 \ + --hash=sha256:b655032b202028a582d27aeedc2e813299f82cb232f969f87a4fde491a233f11 \ + --hash=sha256:bd39c92e4c8f6cbf5f08257d6360123af72af9f4da75a690bef50da77362d25f \ + --hash=sha256:bef100c88d8692864651b5f98e871fb090bd65c8a41a1cb0ff2322db39c96c27 \ + --hash=sha256:c2fe5c910f6007e716a06d269608d307b4f36e7babee5f36533722660e8c4a70 \ + --hash=sha256:c66d8ccbc902ad548312b96ed8d5d266d0d2c6d006fd0f66323e9d8f2dd49be7 \ + --hash=sha256:cd6a55f65241c551eb53f8cf4d2f4af33512c39da5d9777694e9d9c60872f519 \ + --hash=sha256:d249609e547c04d190e820d0d4c8ca03ed4582bcf8e4e160a6969ddfb57b62e5 \ + --hash=sha256:d4e89cde74154c7b5957f87a355bb9c8ec929c167b59c83d90654ea36aeb6180 \ + --hash=sha256:dc1915ec523b3b494933b5424980831b636fe483d7d543f7afb7b3bf00f0c10f \ + --hash=sha256:e1c4d24b804b3a87e9350f79e2371a705a188d292fd310e663483af6ee6718ee \ + --hash=sha256:e474fc718e73ba5ec5180358aa07f6aded0ff5f2abe700e3115c37d75c947e18 \ + --hash=sha256:e4fe2a6d5ce975c117a6bb1e8ccda772d1e7029c1cca1acd209f91d30fa72815 \ + --hash=sha256:e7fb9a84c9abbf2b2683fa3e7b0d7da4d8ecf139a1c635732a8bda29c5214b0e \ + --hash=sha256:e861ad82892408487be144906a368ddbe2dc6297074ade2d892341b35c59844a \ + --hash=sha256:ec314cde7314d2dd0510c6787326bbffcbdc317ecee6b7401ce218b3099075a7 \ + --hash=sha256:ed5f6d2edbf349bd8d630e81f474d33d6ae5d07760c44d33cd808e2f5c8f4ae6 \ + --hash=sha256:ef2e4e91fb3945769e14ce82ed53007195e616a63aa43b40fb7ebaaf907c8d4c \ + --hash=sha256:f011f104db880f4e2166bcdcf7f58250f7a465bc6b068dc84c824a3d4a5c94dc \ + --hash=sha256:f1528ec4374617a7a753f90f20e2f551121bb558fcb35926f99e3c42367164b8 \ + --hash=sha256:f27785888d2fdd918bc36de8b8739f2d6c791399552333721b58193f68ea3e98 \ + --hash=sha256:f35c7070eeec2cdaac6fd3fe245226ed2a6292d3ee8c938e5bb645b434c5f256 \ + --hash=sha256:f3bbecd2f34d0e6d3c543fdb3b15d6b60dd69970c2b4c822379e5ec8f6f621d5 \ + --hash=sha256:f6f1324db48f001c2ca26a25fa25af60711e09b9aaf4b28488602776f4f9a744 \ + --hash=sha256:f78eb8422acc93d7b69964012ad7048764bb45a54ba7a39bb9e146c72ea29723 \ + --hash=sha256:fb6e0faf8cb6b4beea5d6ed7b5a578254c6d7df54c36ccd3d8b3eb00d6770277 \ + --hash=sha256:feccd282de1f6322f56f6845bf1207a537227812f0a9bf5571df52bb418d79d5 + # via + # -r __app__/requirements.txt + # aiohttp + # yarl 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 +483,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,38 +516,108 @@ 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 \ - --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 +yarl==1.18.3 \ + --hash=sha256:00e5a1fea0fd4f5bfa7440a47eff01d9822a65b4488f7cff83155a0f31a2ecba \ + --hash=sha256:02ddb6756f8f4517a2d5e99d8b2f272488e18dd0bfbc802f31c16c6c20f22193 \ + --hash=sha256:045b8482ce9483ada4f3f23b3774f4e1bf4f23a2d5c912ed5170f68efb053318 \ + --hash=sha256:09c7907c8548bcd6ab860e5f513e727c53b4a714f459b084f6580b49fa1b9cee \ + --hash=sha256:0b0cad37311123211dc91eadcb322ef4d4a66008d3e1bdc404808992260e1a0e \ + --hash=sha256:0b3c92fa08759dbf12b3a59579a4096ba9af8dd344d9a813fc7f5070d86bbab1 \ + --hash=sha256:0fb2171a4486bb075316ee754c6d8382ea6eb8b399d4ec62fde2b591f879778a \ + --hash=sha256:1a74a13a4c857a84a845505fd2d68e54826a2cd01935a96efb1e9d86c728e186 \ + --hash=sha256:1d407181cfa6e70077df3377938c08012d18893f9f20e92f7d2f314a437c30b1 \ + --hash=sha256:1dd4bdd05407ced96fed3d7f25dbbf88d2ffb045a0db60dbc247f5b3c5c25d50 \ + --hash=sha256:25b411eddcfd56a2f0cd6a384e9f4f7aa3efee14b188de13048c25b5e91f1640 \ + --hash=sha256:2d06d3005e668744e11ed80812e61efd77d70bb7f03e33c1598c301eea20efbb \ + --hash=sha256:2ec9bbba33b2d00999af4631a3397d1fd78290c48e2a3e52d8dd72db3a067ac8 \ + --hash=sha256:3236da9272872443f81fedc389bace88408f64f89f75d1bdb2256069a8730ccc \ + --hash=sha256:35098b24e0327fc4ebdc8ffe336cee0a87a700c24ffed13161af80124b7dc8e5 \ + --hash=sha256:41f7ce59d6ee7741af71d82020346af364949314ed3d87553763a2df1829cc58 \ + --hash=sha256:436c4fc0a4d66b2badc6c5fc5ef4e47bb10e4fd9bf0c79524ac719a01f3607c2 \ + --hash=sha256:4891ed92157e5430874dad17b15eb1fda57627710756c27422200c52d8a4e393 \ + --hash=sha256:4ac515b860c36becb81bb84b667466885096b5fc85596948548b667da3bf9f24 \ + --hash=sha256:5094d9206c64181d0f6e76ebd8fb2f8fe274950a63890ee9e0ebfd58bf9d787b \ + --hash=sha256:54d6921f07555713b9300bee9c50fb46e57e2e639027089b1d795ecd9f7fa910 \ + --hash=sha256:578e281c393af575879990861823ef19d66e2b1d0098414855dd367e234f5b3c \ + --hash=sha256:5a3f356548e34a70b0172d8890006c37be92995f62d95a07b4a42e90fba54272 \ + --hash=sha256:602d98f2c2d929f8e697ed274fbadc09902c4025c5a9963bf4e9edfc3ab6f7ed \ + --hash=sha256:61b1a825a13bef4a5f10b1885245377d3cd0bf87cba068e1d9a88c2ae36880e1 \ + --hash=sha256:61e5e68cb65ac8f547f6b5ef933f510134a6bf31bb178be428994b0cb46c2a04 \ + --hash=sha256:61ee62ead9b68b9123ec24bc866cbef297dd266175d53296e2db5e7f797f902d \ + --hash=sha256:6333c5a377c8e2f5fae35e7b8f145c617b02c939d04110c76f29ee3676b5f9a5 \ + --hash=sha256:6748dbf9bfa5ba1afcc7556b71cda0d7ce5f24768043a02a58846e4a443d808d \ + --hash=sha256:67a283dd2882ac98cc6318384f565bffc751ab564605959df4752d42483ad889 \ + --hash=sha256:75674776d96d7b851b6498f17824ba17849d790a44d282929c42dbb77d4f17ae \ + --hash=sha256:757e81cae69244257d125ff31663249b3013b5dc0a8520d73694aed497fb195b \ + --hash=sha256:77a6e85b90a7641d2e07184df5557132a337f136250caafc9ccaa4a2a998ca2c \ + --hash=sha256:7c33dd1931a95e5d9a772d0ac5e44cac8957eaf58e3c8da8c1414de7dd27c576 \ + --hash=sha256:7df647e8edd71f000a5208fe6ff8c382a1de8edfbccdbbfe649d263de07d8c34 \ + --hash=sha256:7e2ee16578af3b52ac2f334c3b1f92262f47e02cc6193c598502bd46f5cd1477 \ + --hash=sha256:80316a8bd5109320d38eef8833ccf5f89608c9107d02d2a7f985f98ed6876990 \ + --hash=sha256:82123d0c954dc58db301f5021a01854a85bf1f3bb7d12ae0c01afc414a882ca2 \ + --hash=sha256:84b2deecba4a3f1a398df819151eb72d29bfeb3b69abb145a00ddc8d30094512 \ + --hash=sha256:8503ad47387b8ebd39cbbbdf0bf113e17330ffd339ba1144074da24c545f0069 \ + --hash=sha256:877d209b6aebeb5b16c42cbb377f5f94d9e556626b1bfff66d7b0d115be88d0a \ + --hash=sha256:8874027a53e3aea659a6d62751800cf6e63314c160fd607489ba5c2edd753cf6 \ + --hash=sha256:88a19f62ff30117e706ebc9090b8ecc79aeb77d0b1f5ec10d2d27a12bc9f66d0 \ + --hash=sha256:8d39d351e7faf01483cc7ff7c0213c412e38e5a340238826be7e0e4da450fdc8 \ + --hash=sha256:90adb47ad432332d4f0bc28f83a5963f426ce9a1a8809f5e584e704b82685dcb \ + --hash=sha256:913829534200eb0f789d45349e55203a091f45c37a2674678744ae52fae23efa \ + --hash=sha256:93b2e109287f93db79210f86deb6b9bbb81ac32fc97236b16f7433db7fc437d8 \ + --hash=sha256:9d41beda9dc97ca9ab0b9888cb71f7539124bc05df02c0cff6e5acc5a19dcc6e \ + --hash=sha256:a440a2a624683108a1b454705ecd7afc1c3438a08e890a1513d468671d90a04e \ + --hash=sha256:a4bb030cf46a434ec0225bddbebd4b89e6471814ca851abb8696170adb163985 \ + --hash=sha256:a9ca04806f3be0ac6d558fffc2fdf8fcef767e0489d2684a21912cc4ed0cd1b8 \ + --hash=sha256:ac1801c45cbf77b6c99242eeff4fffb5e4e73a800b5c4ad4fc0be5def634d2e1 \ + --hash=sha256:ac36703a585e0929b032fbaab0707b75dc12703766d0b53486eabd5139ebadd5 \ + --hash=sha256:b1771de9944d875f1b98a745bc547e684b863abf8f8287da8466cf470ef52690 \ + --hash=sha256:b464c4ab4bfcb41e3bfd3f1c26600d038376c2de3297760dfe064d2cb7ea8e10 \ + --hash=sha256:b4f6450109834af88cb4cc5ecddfc5380ebb9c228695afc11915a0bf82116789 \ + --hash=sha256:b57f4f58099328dfb26c6a771d09fb20dbbae81d20cfb66141251ea063bd101b \ + --hash=sha256:b643562c12680b01e17239be267bc306bbc6aac1f34f6444d1bded0c5ce438ca \ + --hash=sha256:b958ddd075ddba5b09bb0be8a6d9906d2ce933aee81100db289badbeb966f54e \ + --hash=sha256:b9d60031cf568c627d028239693fd718025719c02c9f55df0a53e587aab951b5 \ + --hash=sha256:ba23302c0c61a9999784e73809427c9dbedd79f66a13d84ad1b1943802eaaf59 \ + --hash=sha256:ba87babd629f8af77f557b61e49e7c7cac36f22f871156b91e10a6e9d4f829e9 \ + --hash=sha256:c017a3b6df3a1bd45b9fa49a0f54005e53fbcad16633870104b66fa1a30a29d8 \ + --hash=sha256:c1e1cc06da1491e6734f0ea1e6294ce00792193c463350626571c287c9a704db \ + --hash=sha256:c654d5207c78e0bd6d749f6dae1dcbbfde3403ad3a4b11f3c5544d9906969dde \ + --hash=sha256:c69697d3adff5aa4f874b19c0e4ed65180ceed6318ec856ebc423aa5850d84f7 \ + --hash=sha256:c7d79f7d9aabd6011004e33b22bc13056a3e3fb54794d138af57f5ee9d9032cb \ + --hash=sha256:ccaa3a4b521b780a7e771cc336a2dba389a0861592bbce09a476190bb0c8b4b3 \ + --hash=sha256:ccd17349166b1bee6e529b4add61727d3f55edb7babbe4069b5764c9587a8cc6 \ + --hash=sha256:ce1af883b94304f493698b00d0f006d56aea98aeb49d75ec7d98cd4a777e9285 \ + --hash=sha256:d0e883008013c0e4aef84dcfe2a0b172c4d23c2669412cf5b3371003941f72bb \ + --hash=sha256:d980e0325b6eddc81331d3f4551e2a333999fb176fd153e075c6d1c2530aa8a8 \ + --hash=sha256:e17c9361d46a4d5addf777c6dd5eab0715a7684c2f11b88c67ac37edfba6c482 \ + --hash=sha256:e2c08cc9b16f4f4bc522771d96734c7901e7ebef70c6c5c35dd0f10845270bcd \ + --hash=sha256:e35ef8683211db69ffe129a25d5634319a677570ab6b2eba4afa860f54eeaf75 \ + --hash=sha256:e3b9fd71836999aad54084906f8663dffcd2a7fb5cdafd6c37713b2e72be1760 \ + --hash=sha256:ef9f7768395923c3039055c14334ba4d926f3baf7b776c923c93d80195624782 \ + --hash=sha256:f52a265001d830bc425f82ca9eabda94a64a4d753b07d623a9f2863fde532b53 \ + --hash=sha256:f91c4803173928a25e1a55b943c81f55b8872f0018be83e3ad4938adffb77dd2 \ + --hash=sha256:fbd6748e8ab9b41171bb95c6142faf068f5ef1511935a0aa07025438dd9a9bc1 \ + --hash=sha256:fe57328fbc1bfd0bd0514470ac692630f3901c0ee39052ae47acd1d90a436719 \ + --hash=sha256:fea09ca13323376a2fdfb353a5fa2e59f90cd18d7ca4eaa1fd31f0a8b4f91e62 + # via + # -r __app__/requirements.txt + # aiohttp