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/LICENSE b/LICENSE index 2107107..c7cb0ea 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 their 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 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__/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)" + } } diff --git a/__app__/requirements.txt b/__app__/requirements.txt index 75b05ae..d6818c6 100644 --- a/__app__/requirements.txt +++ b/__app__/requirements.txt @@ -4,41 +4,215 @@ # # pip-compile --generate-hashes # -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 \ +aiohappyeyeballs==2.4.3 \ + --hash=sha256:75cf88a15106a5002a8eb1dab212525c00d1f4c0fa96e551c9fbe6f09a621586 \ + --hash=sha256:8a7a83727b2756f394ab2895ea0765a0a8c475e3c71e98d43d76f22b4b435572 + # via aiohttp +aiohttp==3.10.11 \ + --hash=sha256:0316e624b754dbbf8c872b62fe6dcb395ef20c70e59890dfa0de9eafccd2849d \ + --hash=sha256:099fd126bf960f96d34a760e747a629c27fb3634da5d05c7ef4d35ef4ea519fc \ + --hash=sha256:0acafb350cfb2eba70eb5d271f55e08bd4502ec35e964e18ad3e7d34d71f7261 \ + --hash=sha256:0c5580f3c51eea91559db3facd45d72e7ec970b04528b4709b1f9c2555bd6d0b \ + --hash=sha256:0f449a50cc33f0384f633894d8d3cd020e3ccef81879c6e6245c3c375c448625 \ + --hash=sha256:14cdc8c1810bbd4b4b9f142eeee23cda528ae4e57ea0923551a9af4820980e39 \ + --hash=sha256:1dc0f4ca54842173d03322793ebcf2c8cc2d34ae91cc762478e295d8e361e03f \ + --hash=sha256:1e7b825da878464a252ccff2958838f9caa82f32a8dbc334eb9b34a026e2c636 \ + --hash=sha256:20063c7acf1eec550c8eb098deb5ed9e1bb0521613b03bb93644b810986027ac \ + --hash=sha256:20b3d9e416774d41813bc02fdc0663379c01817b0874b932b81c7f777f67b217 \ + --hash=sha256:22b7c540c55909140f63ab4f54ec2c20d2635c0289cdd8006da46f3327f971b9 \ + --hash=sha256:236b28ceb79532da85d59aa9b9bf873b364e27a0acb2ceaba475dc61cffb6f3f \ + --hash=sha256:249c8ff8d26a8b41a0f12f9df804e7c685ca35a207e2410adbd3e924217b9006 \ + --hash=sha256:25fd5470922091b5a9aeeb7e75be609e16b4fba81cdeaf12981393fb240dd10e \ + --hash=sha256:29103f9099b6068bbdf44d6a3d090e0a0b2be6d3c9f16a070dd9d0d910ec08f9 \ + --hash=sha256:2b943011b45ee6bf74b22245c6faab736363678e910504dd7531a58c76c9015a \ + --hash=sha256:2c8f96e9ee19f04c4914e4e7a42a60861066d3e1abf05c726f38d9d0a466e695 \ + --hash=sha256:2dfb612dcbe70fb7cdcf3499e8d483079b89749c857a8f6e80263b021745c730 \ + --hash=sha256:2e4e18a0a2d03531edbc06c366954e40a3f8d2a88d2b936bbe78a0c75a3aab3e \ + --hash=sha256:2ea224cf7bc2d8856d6971cea73b1d50c9c51d36971faf1abc169a0d5f85a382 \ + --hash=sha256:30283f9d0ce420363c24c5c2421e71a738a2155f10adbb1a11a4d4d6d2715cfc \ + --hash=sha256:38e3c4f80196b4f6c3a85d134a534a56f52da9cb8d8e7af1b79a32eefee73a00 \ + --hash=sha256:3bf6d027d9d1d34e1c2e1645f18a6498c98d634f8e373395221121f1c258ace8 \ + --hash=sha256:459f0f32c8356e8125f45eeff0ecf2b1cb6db1551304972702f34cd9e6c44658 \ + --hash=sha256:473aebc3b871646e1940c05268d451f2543a1d209f47035b594b9d4e91ce8339 \ + --hash=sha256:489cced07a4c11488f47aab1f00d0c572506883f877af100a38f1fedaa884c3a \ + --hash=sha256:48bc1d924490f0d0b3658fe5c4b081a4d56ebb58af80a6729d4bd13ea569797a \ + --hash=sha256:4996ff1345704ffdd6d75fb06ed175938c133425af616142e7187f28dc75f14e \ + --hash=sha256:4e8d8aad9402d3aa02fdc5ca2fe68bcb9fdfe1f77b40b10410a94c7f408b664d \ + --hash=sha256:5077b1a5f40ffa3ba1f40d537d3bec4383988ee51fbba6b74aa8fb1bc466599e \ + --hash=sha256:5a5f7ab8baf13314e6b2485965cbacb94afff1e93466ac4d06a47a81c50f9cca \ + --hash=sha256:5ab2328a61fdc86424ee540d0aeb8b73bbcad7351fb7cf7a6546fc0bcffa0038 \ + --hash=sha256:5f0463bf8b0754bc744e1feb61590706823795041e63edf30118a6f0bf577461 \ + --hash=sha256:686b03196976e327412a1b094f4120778c7c4b9cff9bce8d2fdfeca386b89829 \ + --hash=sha256:6cd3f10b01f0c31481fba8d302b61603a2acb37b9d30e1d14e0f5a58b7b18a31 \ + --hash=sha256:6ce66780fa1a20e45bc753cda2a149daa6dbf1561fc1289fa0c308391c7bc0a4 \ + --hash=sha256:703938e22434d7d14ec22f9f310559331f455018389222eed132808cd8f44127 \ + --hash=sha256:72b191cdf35a518bfc7ca87d770d30941decc5aaf897ec8b484eb5cc8c7706f3 \ + --hash=sha256:7400a93d629a0608dc1d6c55f1e3d6e07f7375745aaa8bd7f085571e4d1cee97 \ + --hash=sha256:7480519f70e32bfb101d71fb9a1f330fbd291655a4c1c922232a48c458c52710 \ + --hash=sha256:74baf1a7d948b3d640badeac333af581a367ab916b37e44cf90a0334157cdfd2 \ + --hash=sha256:778cbd01f18ff78b5dd23c77eb82987ee4ba23408cbed233009fd570dda7e674 \ + --hash=sha256:7b26b1551e481012575dab8e3727b16fe7dd27eb2711d2e63ced7368756268fb \ + --hash=sha256:7ce6a51469bfaacff146e59e7fb61c9c23006495d11cc24c514a455032bcfa03 \ + --hash=sha256:80ff08556c7f59a7972b1e8919f62e9c069c33566a6d28586771711e0eea4f07 \ + --hash=sha256:82052be3e6d9e0c123499127782a01a2b224b8af8c62ab46b3f6197035ad94e9 \ + --hash=sha256:8663f7777ce775f0413324be0d96d9730959b2ca73d9b7e2c2c90539139cbdd6 \ + --hash=sha256:878ca6a931ee8c486a8f7b432b65431d095c522cbeb34892bee5be97b3481d0f \ + --hash=sha256:8d6a14a4d93b5b3c2891fca94fa9d41b2322a68194422bef0dd5ec1e57d7d298 \ + --hash=sha256:9208299251370ee815473270c52cd3f7069ee9ed348d941d574d1457d2c73e8b \ + --hash=sha256:968b8fb2a5eee2770eda9c7b5581587ef9b96fbdf8dcabc6b446d35ccc69df01 \ + --hash=sha256:971aa438a29701d4b34e4943e91b5e984c3ae6ccbf80dd9efaffb01bd0b243a9 \ + --hash=sha256:9a309c5de392dfe0f32ee57fa43ed8fc6ddf9985425e84bd51ed66bb16bce3a7 \ + --hash=sha256:9bc50b63648840854e00084c2b43035a62e033cb9b06d8c22b409d56eb098413 \ + --hash=sha256:9c6e0ffd52c929f985c7258f83185d17c76d4275ad22e90aa29f38e211aacbec \ + --hash=sha256:9dc2b8f3dcab2e39e0fa309c8da50c3b55e6f34ab25f1a71d3288f24924d33a7 \ + --hash=sha256:9ec1628180241d906a0840b38f162a3215114b14541f1a8711c368a8739a9be4 \ + --hash=sha256:a919c8957695ea4c0e7a3e8d16494e3477b86f33067478f43106921c2fef15bb \ + --hash=sha256:aa93063d4af05c49276cf14e419550a3f45258b6b9d1f16403e777f1addf4519 \ + --hash=sha256:aad3cd91d484d065ede16f3cf15408254e2469e3f613b241a1db552c5eb7ab7d \ + --hash=sha256:b3e70f24e7d0405be2348da9d5a7836936bf3a9b4fd210f8c37e8d48bc32eca6 \ + --hash=sha256:b5e29706e6389a2283a91611c91bf24f218962717c8f3b4e528ef529d112ee27 \ + --hash=sha256:bbde2ca67230923a42161b1f408c3992ae6e0be782dca0c44cb3206bf330dee1 \ + --hash=sha256:bc6f1ab987a27b83c5268a17218463c2ec08dbb754195113867a27b166cd6087 \ + --hash=sha256:bcaf2d79104d53d4dcf934f7ce76d3d155302d07dae24dff6c9fffd217568067 \ + --hash=sha256:c13ed0c779911c7998a58e7848954bd4d63df3e3575f591e321b19a2aec8df9f \ + --hash=sha256:c2f746a6968c54ab2186574e15c3f14f3e7f67aef12b761e043b33b89c5b5f95 \ + --hash=sha256:c73c4d3dae0b4644bc21e3de546530531d6cdc88659cdeb6579cd627d3c206aa \ + --hash=sha256:c891011e76041e6508cbfc469dd1a8ea09bc24e87e4c204e05f150c4c455a5fa \ + --hash=sha256:ca117819d8ad113413016cb29774b3f6d99ad23c220069789fc050267b786c16 \ + --hash=sha256:cdc493a2e5d8dc79b2df5bec9558425bcd39aff59fc949810cbd0832e294b106 \ + --hash=sha256:d110cabad8360ffa0dec8f6ec60e43286e9d251e77db4763a87dcfe55b4adb92 \ + --hash=sha256:d97187de3c276263db3564bb9d9fad9e15b51ea10a371ffa5947a5ba93ad6777 \ + --hash=sha256:db9503f79e12d5d80b3efd4d01312853565c05367493379df76d2674af881caa \ + --hash=sha256:deef4362af9493d1382ef86732ee2e4cbc0d7c005947bd54ad1a9a16dd59298e \ + --hash=sha256:e0099c7d5d7afff4202a0c670e5b723f7718810000b4abcbc96b064129e64bc7 \ + --hash=sha256:e12eb3f4b1f72aaaf6acd27d045753b18101524f72ae071ae1c91c1cd44ef115 \ + --hash=sha256:e1ffa713d3ea7cdcd4aea9cddccab41edf6882fa9552940344c44e59652e1120 \ + --hash=sha256:e5358addc8044ee49143c546d2182c15b4ac3a60be01c3209374ace05af5733d \ + --hash=sha256:ea9b3bab329aeaa603ed3bf605f1e2a6f36496ad7e0e1aa42025f368ee2dc07b \ + --hash=sha256:f14ebc419a568c2eff3c1ed35f634435c24ead2fe19c07426af41e7adb68713a \ + --hash=sha256:f34b97e4b11b8d4eb2c3a4f975be626cc8af99ff479da7de49ac2c6d02d35725 \ + --hash=sha256:f4df4b8ca97f658c880fb4b90b1d1ec528315d4030af1ec763247ebfd33d8b9a \ + --hash=sha256:f65267266c9aeb2287a6622ee2bb39490292552f9fbf851baabc04c9f84e048d \ + --hash=sha256:f6c6dec398ac5a87cb3a407b068e1106b20ef001c344e34154616183fe684288 \ + --hash=sha256:f9b615d3da0d60e7d53c62e22b4fd1c70f4ae5993a44687b011ea3a2e49051b8 \ + --hash=sha256:f9f92a344c50b9667827da308473005f34767b6a2a60d9acff56ae94f895f385 \ + --hash=sha256:fb8601394d537da9221947b5d6e62b064c9a43e88a1ecd7414d21a1a6fba9c24 \ + --hash=sha256:fc31820cfc3b2863c6e95e14fcf815dc7afe52480b4dc03393c4873bb5599f71 \ + --hash=sha256:fdf6429f0caabfd8a30c4e2eaecb547b3c340e4730ebfe25139779b9815ba138 \ + --hash=sha256:ffbfde2443696345e23a3c597049b1dd43049bb65337837574205e7368472177 + # via -r requirements.in +aiosignal==1.3.1 \ + --hash=sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc \ + --hash=sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17 # via aiohttp attrs==19.3.0 \ --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ - --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 \ - # via aiohttp -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 \ + --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 # via aiohttp +frozenlist==1.5.0 \ + --hash=sha256:000a77d6034fbad9b6bb880f7ec073027908f1b40254b5d6f26210d2dab1240e \ + --hash=sha256:03d33c2ddbc1816237a67f66336616416e2bbb6beb306e5f890f2eb22b959cdf \ + --hash=sha256:04a5c6babd5e8fb7d3c871dc8b321166b80e41b637c31a995ed844a6139942b6 \ + --hash=sha256:0996c66760924da6e88922756d99b47512a71cfd45215f3570bf1e0b694c206a \ + --hash=sha256:0cc974cc93d32c42e7b0f6cf242a6bd941c57c61b618e78b6c0a96cb72788c1d \ + --hash=sha256:0f253985bb515ecd89629db13cb58d702035ecd8cfbca7d7a7e29a0e6d39af5f \ + --hash=sha256:11aabdd62b8b9c4b84081a3c246506d1cddd2dd93ff0ad53ede5defec7886b28 \ + --hash=sha256:12f78f98c2f1c2429d42e6a485f433722b0061d5c0b0139efa64f396efb5886b \ + --hash=sha256:140228863501b44b809fb39ec56b5d4071f4d0aa6d216c19cbb08b8c5a7eadb9 \ + --hash=sha256:1431d60b36d15cda188ea222033eec8e0eab488f39a272461f2e6d9e1a8e63c2 \ + --hash=sha256:15538c0cbf0e4fa11d1e3a71f823524b0c46299aed6e10ebb4c2089abd8c3bec \ + --hash=sha256:15b731db116ab3aedec558573c1a5eec78822b32292fe4f2f0345b7f697745c2 \ + --hash=sha256:17dcc32fc7bda7ce5875435003220a457bcfa34ab7924a49a1c19f55b6ee185c \ + --hash=sha256:1893f948bf6681733aaccf36c5232c231e3b5166d607c5fa77773611df6dc336 \ + --hash=sha256:189f03b53e64144f90990d29a27ec4f7997d91ed3d01b51fa39d2dbe77540fd4 \ + --hash=sha256:1a8ea951bbb6cacd492e3948b8da8c502a3f814f5d20935aae74b5df2b19cf3d \ + --hash=sha256:1b96af8c582b94d381a1c1f51ffaedeb77c821c690ea5f01da3d70a487dd0a9b \ + --hash=sha256:1e76bfbc72353269c44e0bc2cfe171900fbf7f722ad74c9a7b638052afe6a00c \ + --hash=sha256:2150cc6305a2c2ab33299453e2968611dacb970d2283a14955923062c8d00b10 \ + --hash=sha256:226d72559fa19babe2ccd920273e767c96a49b9d3d38badd7c91a0fdeda8ea08 \ + --hash=sha256:237f6b23ee0f44066219dae14c70ae38a63f0440ce6750f868ee08775073f942 \ + --hash=sha256:29d94c256679247b33a3dc96cce0f93cbc69c23bf75ff715919332fdbb6a32b8 \ + --hash=sha256:2b5e23253bb709ef57a8e95e6ae48daa9ac5f265637529e4ce6b003a37b2621f \ + --hash=sha256:2d0da8bbec082bf6bf18345b180958775363588678f64998c2b7609e34719b10 \ + --hash=sha256:2f3f7a0fbc219fb4455264cae4d9f01ad41ae6ee8524500f381de64ffaa077d5 \ + --hash=sha256:30c72000fbcc35b129cb09956836c7d7abf78ab5416595e4857d1cae8d6251a6 \ + --hash=sha256:31115ba75889723431aa9a4e77d5f398f5cf976eea3bdf61749731f62d4a4a21 \ + --hash=sha256:31a9ac2b38ab9b5a8933b693db4939764ad3f299fcaa931a3e605bc3460e693c \ + --hash=sha256:366d8f93e3edfe5a918c874702f78faac300209a4d5bf38352b2c1bdc07a766d \ + --hash=sha256:374ca2dabdccad8e2a76d40b1d037f5bd16824933bf7bcea3e59c891fd4a0923 \ + --hash=sha256:44c49271a937625619e862baacbd037a7ef86dd1ee215afc298a417ff3270608 \ + --hash=sha256:45e0896250900b5aa25180f9aec243e84e92ac84bd4a74d9ad4138ef3f5c97de \ + --hash=sha256:498524025a5b8ba81695761d78c8dd7382ac0b052f34e66939c42df860b8ff17 \ + --hash=sha256:50cf5e7ee9b98f22bdecbabf3800ae78ddcc26e4a435515fc72d97903e8488e0 \ + --hash=sha256:52ef692a4bc60a6dd57f507429636c2af8b6046db8b31b18dac02cbc8f507f7f \ + --hash=sha256:561eb1c9579d495fddb6da8959fd2a1fca2c6d060d4113f5844b433fc02f2641 \ + --hash=sha256:5a3ba5f9a0dfed20337d3e966dc359784c9f96503674c2faf015f7fe8e96798c \ + --hash=sha256:5b6a66c18b5b9dd261ca98dffcb826a525334b2f29e7caa54e182255c5f6a65a \ + --hash=sha256:5c28f4b5dbef8a0d8aad0d4de24d1e9e981728628afaf4ea0792f5d0939372f0 \ + --hash=sha256:5d7f5a50342475962eb18b740f3beecc685a15b52c91f7d975257e13e029eca9 \ + --hash=sha256:6321899477db90bdeb9299ac3627a6a53c7399c8cd58d25da094007402b039ab \ + --hash=sha256:6482a5851f5d72767fbd0e507e80737f9c8646ae7fd303def99bfe813f76cf7f \ + --hash=sha256:666534d15ba8f0fda3f53969117383d5dc021266b3c1a42c9ec4855e4b58b9d3 \ + --hash=sha256:683173d371daad49cffb8309779e886e59c2f369430ad28fe715f66d08d4ab1a \ + --hash=sha256:6e9080bb2fb195a046e5177f10d9d82b8a204c0736a97a153c2466127de87784 \ + --hash=sha256:73f2e31ea8dd7df61a359b731716018c2be196e5bb3b74ddba107f694fbd7604 \ + --hash=sha256:7437601c4d89d070eac8323f121fcf25f88674627505334654fd027b091db09d \ + --hash=sha256:76e4753701248476e6286f2ef492af900ea67d9706a0155335a40ea21bf3b2f5 \ + --hash=sha256:7707a25d6a77f5d27ea7dc7d1fc608aa0a478193823f88511ef5e6b8a48f9d03 \ + --hash=sha256:7948140d9f8ece1745be806f2bfdf390127cf1a763b925c4a805c603df5e697e \ + --hash=sha256:7a1a048f9215c90973402e26c01d1cff8a209e1f1b53f72b95c13db61b00f953 \ + --hash=sha256:7d57d8f702221405a9d9b40f9da8ac2e4a1a8b5285aac6100f3393675f0a85ee \ + --hash=sha256:7f3c8c1dacd037df16e85227bac13cca58c30da836c6f936ba1df0c05d046d8d \ + --hash=sha256:81d5af29e61b9c8348e876d442253723928dce6433e0e76cd925cd83f1b4b817 \ + --hash=sha256:828afae9f17e6de596825cf4228ff28fbdf6065974e5ac1410cecc22f699d2b3 \ + --hash=sha256:87f724d055eb4785d9be84e9ebf0f24e392ddfad00b3fe036e43f489fafc9039 \ + --hash=sha256:8969190d709e7c48ea386db202d708eb94bdb29207a1f269bab1196ce0dcca1f \ + --hash=sha256:90646abbc7a5d5c7c19461d2e3eeb76eb0b204919e6ece342feb6032c9325ae9 \ + --hash=sha256:91d6c171862df0a6c61479d9724f22efb6109111017c87567cfeb7b5d1449fdf \ + --hash=sha256:9272fa73ca71266702c4c3e2d4a28553ea03418e591e377a03b8e3659d94fa76 \ + --hash=sha256:92b5278ed9d50fe610185ecd23c55d8b307d75ca18e94c0e7de328089ac5dcba \ + --hash=sha256:97160e245ea33d8609cd2b8fd997c850b56db147a304a262abc2b3be021a9171 \ + --hash=sha256:977701c081c0241d0955c9586ffdd9ce44f7a7795df39b9151cd9a6fd0ce4cfb \ + --hash=sha256:9b7dc0c4338e6b8b091e8faf0db3168a37101943e687f373dce00959583f7439 \ + --hash=sha256:9b93d7aaa36c966fa42efcaf716e6b3900438632a626fb09c049f6a2f09fc631 \ + --hash=sha256:9bbcdfaf4af7ce002694a4e10a0159d5a8d20056a12b05b45cea944a4953f972 \ + --hash=sha256:9c2623347b933fcb9095841f1cc5d4ff0b278addd743e0e966cb3d460278840d \ + --hash=sha256:a2fe128eb4edeabe11896cb6af88fca5346059f6c8d807e3b910069f39157869 \ + --hash=sha256:a72b7a6e3cd2725eff67cd64c8f13335ee18fc3c7befc05aed043d24c7b9ccb9 \ + --hash=sha256:a9fe0f1c29ba24ba6ff6abf688cb0b7cf1efab6b6aa6adc55441773c252f7411 \ + --hash=sha256:b97f7b575ab4a8af9b7bc1d2ef7f29d3afee2226bd03ca3875c16451ad5a7723 \ + --hash=sha256:bdac3c7d9b705d253b2ce370fde941836a5f8b3c5c2b8fd70940a3ea3af7f4f2 \ + --hash=sha256:c03eff4a41bd4e38415cbed054bbaff4a075b093e2394b6915dca34a40d1e38b \ + --hash=sha256:c16d2fa63e0800723139137d667e1056bee1a1cf7965153d2d104b62855e9b99 \ + --hash=sha256:c1fac3e2ace2eb1052e9f7c7db480818371134410e1f5c55d65e8f3ac6d1407e \ + --hash=sha256:ce3aa154c452d2467487765e3adc730a8c153af77ad84096bc19ce19a2400840 \ + --hash=sha256:cee6798eaf8b1416ef6909b06f7dc04b60755206bddc599f52232606e18179d3 \ + --hash=sha256:d1b3eb7b05ea246510b43a7e53ed1653e55c2121019a97e60cad7efb881a97bb \ + --hash=sha256:d994863bba198a4a518b467bb971c56e1db3f180a25c6cf7bb1949c267f748c3 \ + --hash=sha256:dd47a5181ce5fcb463b5d9e17ecfdb02b678cca31280639255ce9d0e5aa67af0 \ + --hash=sha256:dd94994fc91a6177bfaafd7d9fd951bc8689b0a98168aa26b5f543868548d3ca \ + --hash=sha256:de537c11e4aa01d37db0d403b57bd6f0546e71a82347a97c6a9f0dcc532b3a45 \ + --hash=sha256:df6e2f325bfee1f49f81aaac97d2aa757c7646534a06f8f577ce184afe2f0a9e \ + --hash=sha256:e66cc454f97053b79c2ab09c17fbe3c825ea6b4de20baf1be28919460dd7877f \ + --hash=sha256:e79225373c317ff1e35f210dd5f1344ff31066ba8067c307ab60254cd3a78ad5 \ + --hash=sha256:f1577515d35ed5649d52ab4319db757bb881ce3b2b796d7283e6634d99ace307 \ + --hash=sha256:f1e6540b7fa044eee0bb5111ada694cf3dc15f2b0347ca125ee9ca984d5e9e6e \ + --hash=sha256:f2ac49a9bedb996086057b75bf93538240538c6d9b38e57c82d51f75a73409d2 \ + --hash=sha256:f47c9c9028f55a04ac254346e92977bf0f166c483c74b4232bee19a6697e4778 \ + --hash=sha256:f5f9da7f5dbc00a604fe74aa02ae7c98bcede8a3b8b9666f9f86fc13993bc71a \ + --hash=sha256:fd74520371c3c4175142d02a976aee0b4cb4a7cc912a60586ffd8d5929979b30 \ + --hash=sha256:feeb64bc9bcc6b45c6311c9e9b99406660a9c05ca8a5b30d14a78555088b0b3a + # via + # aiohttp + # aiosignal gidgethub==3.3.0 \ --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c \ - # via aiohttp + # via -r requirements.in idna==2.8 \ --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ - --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c \ - # via idna-ssl, yarl + --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c + # via yarl multidict==4.7.4 \ --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ --hash=sha256:26502cefa86d79b86752e96639352c7247846515c864d7c2eb85d036752b643c \ @@ -56,33 +230,195 @@ multidict==4.7.4 \ --hash=sha256:a8ed33e8f9b67e3b592c56567135bb42e7e0e97417a4b6a771e60898dfd5182b \ --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ - --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 \ - # via aiohttp, yarl -typing-extensions==3.7.4.1 \ - --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ - --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ - --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 \ - # via aiohttp + --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 + # via + # aiohttp + # yarl +propcache==0.2.0 \ + --hash=sha256:00181262b17e517df2cd85656fcd6b4e70946fe62cd625b9d74ac9977b64d8d9 \ + --hash=sha256:0e53cb83fdd61cbd67202735e6a6687a7b491c8742dfc39c9e01e80354956763 \ + --hash=sha256:1235c01ddaa80da8235741e80815ce381c5267f96cc49b1477fdcf8c047ef325 \ + --hash=sha256:140fbf08ab3588b3468932974a9331aff43c0ab8a2ec2c608b6d7d1756dbb6cb \ + --hash=sha256:191db28dc6dcd29d1a3e063c3be0b40688ed76434622c53a284e5427565bbd9b \ + --hash=sha256:1e41d67757ff4fbc8ef2af99b338bfb955010444b92929e9e55a6d4dcc3c4f09 \ + --hash=sha256:1ec43d76b9677637a89d6ab86e1fef70d739217fefa208c65352ecf0282be957 \ + --hash=sha256:20a617c776f520c3875cf4511e0d1db847a076d720714ae35ffe0df3e440be68 \ + --hash=sha256:218db2a3c297a3768c11a34812e63b3ac1c3234c3a086def9c0fee50d35add1f \ + --hash=sha256:22aa8f2272d81d9317ff5756bb108021a056805ce63dd3630e27d042c8092798 \ + --hash=sha256:25a1f88b471b3bc911d18b935ecb7115dff3a192b6fef46f0bfaf71ff4f12418 \ + --hash=sha256:25c8d773a62ce0451b020c7b29a35cfbc05de8b291163a7a0f3b7904f27253e6 \ + --hash=sha256:2a60ad3e2553a74168d275a0ef35e8c0a965448ffbc3b300ab3a5bb9956c2162 \ + --hash=sha256:2a66df3d4992bc1d725b9aa803e8c5a66c010c65c741ad901e260ece77f58d2f \ + --hash=sha256:2ccc28197af5313706511fab3a8b66dcd6da067a1331372c82ea1cb74285e036 \ + --hash=sha256:2e900bad2a8456d00a113cad8c13343f3b1f327534e3589acc2219729237a2e8 \ + --hash=sha256:2ee7606193fb267be4b2e3b32714f2d58cad27217638db98a60f9efb5efeccc2 \ + --hash=sha256:33ac8f098df0585c0b53009f039dfd913b38c1d2edafed0cedcc0c32a05aa110 \ + --hash=sha256:3444cdba6628accf384e349014084b1cacd866fbb88433cd9d279d90a54e0b23 \ + --hash=sha256:363ea8cd3c5cb6679f1c2f5f1f9669587361c062e4899fce56758efa928728f8 \ + --hash=sha256:375a12d7556d462dc64d70475a9ee5982465fbb3d2b364f16b86ba9135793638 \ + --hash=sha256:388f3217649d6d59292b722d940d4d2e1e6a7003259eb835724092a1cca0203a \ + --hash=sha256:3947483a381259c06921612550867b37d22e1df6d6d7e8361264b6d037595f44 \ + --hash=sha256:39e104da444a34830751715f45ef9fc537475ba21b7f1f5b0f4d71a3b60d7fe2 \ + --hash=sha256:3c997f8c44ec9b9b0bcbf2d422cc00a1d9b9c681f56efa6ca149a941e5560da2 \ + --hash=sha256:3dfafb44f7bb35c0c06eda6b2ab4bfd58f02729e7c4045e179f9a861b07c9850 \ + --hash=sha256:3ebbcf2a07621f29638799828b8d8668c421bfb94c6cb04269130d8de4fb7136 \ + --hash=sha256:3f88a4095e913f98988f5b338c1d4d5d07dbb0b6bad19892fd447484e483ba6b \ + --hash=sha256:439e76255daa0f8151d3cb325f6dd4a3e93043e6403e6491813bcaaaa8733887 \ + --hash=sha256:4569158070180c3855e9c0791c56be3ceeb192defa2cdf6a3f39e54319e56b89 \ + --hash=sha256:466c219deee4536fbc83c08d09115249db301550625c7fef1c5563a584c9bc87 \ + --hash=sha256:4a9d9b4d0a9b38d1c391bb4ad24aa65f306c6f01b512e10a8a34a2dc5675d348 \ + --hash=sha256:4c7dde9e533c0a49d802b4f3f218fa9ad0a1ce21f2c2eb80d5216565202acab4 \ + --hash=sha256:53d1bd3f979ed529f0805dd35ddaca330f80a9a6d90bc0121d2ff398f8ed8861 \ + --hash=sha256:55346705687dbd7ef0d77883ab4f6fabc48232f587925bdaf95219bae072491e \ + --hash=sha256:56295eb1e5f3aecd516d91b00cfd8bf3a13991de5a479df9e27dd569ea23959c \ + --hash=sha256:56bb5c98f058a41bb58eead194b4db8c05b088c93d94d5161728515bd52b052b \ + --hash=sha256:5a5b3bb545ead161be780ee85a2b54fdf7092815995661947812dde94a40f6fb \ + --hash=sha256:5f2564ec89058ee7c7989a7b719115bdfe2a2fb8e7a4543b8d1c0cc4cf6478c1 \ + --hash=sha256:608cce1da6f2672a56b24a015b42db4ac612ee709f3d29f27a00c943d9e851de \ + --hash=sha256:63f13bf09cc3336eb04a837490b8f332e0db41da66995c9fd1ba04552e516354 \ + --hash=sha256:662dd62358bdeaca0aee5761de8727cfd6861432e3bb828dc2a693aa0471a563 \ + --hash=sha256:676135dcf3262c9c5081cc8f19ad55c8a64e3f7282a21266d05544450bffc3a5 \ + --hash=sha256:67aeb72e0f482709991aa91345a831d0b707d16b0257e8ef88a2ad246a7280bf \ + --hash=sha256:67b69535c870670c9f9b14a75d28baa32221d06f6b6fa6f77a0a13c5a7b0a5b9 \ + --hash=sha256:682a7c79a2fbf40f5dbb1eb6bfe2cd865376deeac65acf9beb607505dced9e12 \ + --hash=sha256:6994984550eaf25dd7fc7bd1b700ff45c894149341725bb4edc67f0ffa94efa4 \ + --hash=sha256:69d3a98eebae99a420d4b28756c8ce6ea5a29291baf2dc9ff9414b42676f61d5 \ + --hash=sha256:6e2e54267980349b723cff366d1e29b138b9a60fa376664a157a342689553f71 \ + --hash=sha256:73e4b40ea0eda421b115248d7e79b59214411109a5bc47d0d48e4c73e3b8fcf9 \ + --hash=sha256:74acd6e291f885678631b7ebc85d2d4aec458dd849b8c841b57ef04047833bed \ + --hash=sha256:7665f04d0c7f26ff8bb534e1c65068409bf4687aa2534faf7104d7182debb336 \ + --hash=sha256:7735e82e3498c27bcb2d17cb65d62c14f1100b71723b68362872bca7d0913d90 \ + --hash=sha256:77a86c261679ea5f3896ec060be9dc8e365788248cc1e049632a1be682442063 \ + --hash=sha256:7cf18abf9764746b9c8704774d8b06714bcb0a63641518a3a89c7f85cc02c2ad \ + --hash=sha256:83928404adf8fb3d26793665633ea79b7361efa0287dfbd372a7e74311d51ee6 \ + --hash=sha256:8e40876731f99b6f3c897b66b803c9e1c07a989b366c6b5b475fafd1f7ba3fb8 \ + --hash=sha256:8f188cfcc64fb1266f4684206c9de0e80f54622c3f22a910cbd200478aeae61e \ + --hash=sha256:91997d9cb4a325b60d4e3f20967f8eb08dfcb32b22554d5ef78e6fd1dda743a2 \ + --hash=sha256:91ee8fc02ca52e24bcb77b234f22afc03288e1dafbb1f88fe24db308910c4ac7 \ + --hash=sha256:92fe151145a990c22cbccf9ae15cae8ae9eddabfc949a219c9f667877e40853d \ + --hash=sha256:945db8ee295d3af9dbdbb698cce9bbc5c59b5c3fe328bbc4387f59a8a35f998d \ + --hash=sha256:9517d5e9e0731957468c29dbfd0f976736a0e55afaea843726e887f36fe017df \ + --hash=sha256:952e0d9d07609d9c5be361f33b0d6d650cd2bae393aabb11d9b719364521984b \ + --hash=sha256:97a58a28bcf63284e8b4d7b460cbee1edaab24634e82059c7b8c09e65284f178 \ + --hash=sha256:97e48e8875e6c13909c800fa344cd54cc4b2b0db1d5f911f840458a500fde2c2 \ + --hash=sha256:9e0f07b42d2a50c7dd2d8675d50f7343d998c64008f1da5fef888396b7f84630 \ + --hash=sha256:a3dc1a4b165283bd865e8f8cb5f0c64c05001e0718ed06250d8cac9bec115b48 \ + --hash=sha256:a3ebe9a75be7ab0b7da2464a77bb27febcb4fab46a34f9288f39d74833db7f61 \ + --hash=sha256:a64e32f8bd94c105cc27f42d3b658902b5bcc947ece3c8fe7bc1b05982f60e89 \ + --hash=sha256:a6ed8db0a556343d566a5c124ee483ae113acc9a557a807d439bcecc44e7dfbb \ + --hash=sha256:ad9c9b99b05f163109466638bd30ada1722abb01bbb85c739c50b6dc11f92dc3 \ + --hash=sha256:b33d7a286c0dc1a15f5fc864cc48ae92a846df287ceac2dd499926c3801054a6 \ + --hash=sha256:bc092ba439d91df90aea38168e11f75c655880c12782facf5cf9c00f3d42b562 \ + --hash=sha256:c436130cc779806bdf5d5fae0d848713105472b8566b75ff70048c47d3961c5b \ + --hash=sha256:c5869b8fd70b81835a6f187c5fdbe67917a04d7e52b6e7cc4e5fe39d55c39d58 \ + --hash=sha256:c5ecca8f9bab618340c8e848d340baf68bcd8ad90a8ecd7a4524a81c1764b3db \ + --hash=sha256:cfac69017ef97db2438efb854edf24f5a29fd09a536ff3a992b75990720cdc99 \ + --hash=sha256:d2f0d0f976985f85dfb5f3d685697ef769faa6b71993b46b295cdbbd6be8cc37 \ + --hash=sha256:d5bed7f9805cc29c780f3aee05de3262ee7ce1f47083cfe9f77471e9d6777e83 \ + --hash=sha256:d6a21ef516d36909931a2967621eecb256018aeb11fc48656e3257e73e2e247a \ + --hash=sha256:d9b6ddac6408194e934002a69bcaadbc88c10b5f38fb9307779d1c629181815d \ + --hash=sha256:db47514ffdbd91ccdc7e6f8407aac4ee94cc871b15b577c1c324236b013ddd04 \ + --hash=sha256:df81779732feb9d01e5d513fad0122efb3d53bbc75f61b2a4f29a020bc985e70 \ + --hash=sha256:e4a91d44379f45f5e540971d41e4626dacd7f01004826a18cb048e7da7e96544 \ + --hash=sha256:e63e3e1e0271f374ed489ff5ee73d4b6e7c60710e1f76af5f0e1a6117cd26394 \ + --hash=sha256:e70fac33e8b4ac63dfc4c956fd7d85a0b1139adcfc0d964ce288b7c527537fea \ + --hash=sha256:ecddc221a077a8132cf7c747d5352a15ed763b674c0448d811f408bf803d9ad7 \ + --hash=sha256:f45eec587dafd4b2d41ac189c2156461ebd0c1082d2fe7013571598abb8505d1 \ + --hash=sha256:f52a68c21363c45297aca15561812d542f8fc683c85201df0bebe209e349f793 \ + --hash=sha256:f571aea50ba5623c308aa146eb650eebf7dbe0fd8c5d946e28343cb3b5aad577 \ + --hash=sha256:f60f0ac7005b9f5a6091009b09a419ace1610e163fa5deaba5ce3484341840e7 \ + --hash=sha256:f6475a1b2ecb310c98c28d271a30df74f9dd436ee46d09236a6b750a7599ce57 \ + --hash=sha256:f6d5749fdd33d90e34c2efb174c7e236829147a2713334d708746e94c4bde40d \ + --hash=sha256:f902804113e032e2cdf8c71015651c97af6418363bea8d78dc0911d56c335032 \ + --hash=sha256:fa1076244f54bb76e65e22cb6910365779d5c3d71d1f18b275f1dfc7b0d71b4d \ + --hash=sha256:fc2db02409338bf36590aa985a461b2c96fce91f8e7e0f14c50c5fcc4f229016 \ + --hash=sha256:ffcad6c564fe6b9b8916c1aefbb37a362deebf9394bd2974e9d84232e3e08504 + # via yarl uritemplate==3.0.1 \ --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ - --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae \ + --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae # via gidgethub -yarl==1.4.2 \ - --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ - --hash=sha256:0ca2f395591bbd85ddd50a82eb1fde9c1066fafe888c5c7cc1d810cf03fd3cc6 \ - --hash=sha256:2098a4b4b9d75ee352807a95cdf5f10180db903bc5b7270715c6bbe2551f64ce \ - --hash=sha256:25e66e5e2007c7a39541ca13b559cd8ebc2ad8fe00ea94a2aad28a9b1e44e5ae \ - --hash=sha256:26d7c90cb04dee1665282a5d1a998defc1a9e012fdca0f33396f81508f49696d \ - --hash=sha256:308b98b0c8cd1dfef1a0311dc5e38ae8f9b58349226aa0533f15a16717ad702f \ - --hash=sha256:3ce3d4f7c6b69c4e4f0704b32eca8123b9c58ae91af740481aa57d7857b5e41b \ - --hash=sha256:58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b \ - --hash=sha256:5b10eb0e7f044cf0b035112446b26a3a2946bca9d7d7edb5e54a2ad2f6652abb \ - --hash=sha256:6faa19d3824c21bcbfdfce5171e193c8b4ddafdf0ac3f129ccf0cdfcb083e462 \ - --hash=sha256:944494be42fa630134bf907714d40207e646fd5a94423c90d5b514f7b0713fea \ - --hash=sha256:a161de7e50224e8e3de6e184707476b5a989037dcb24292b391a3d66ff158e70 \ - --hash=sha256:a4844ebb2be14768f7994f2017f70aca39d658a96c786211be5ddbe1c68794c1 \ - --hash=sha256:c2b509ac3d4b988ae8769901c66345425e361d518aecbe4acbfc2567e416626a \ - --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ - --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ - --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 \ +yarl==1.17.2 \ + --hash=sha256:0c8e589379ef0407b10bed16cc26e7392ef8f86961a706ade0a22309a45414d7 \ + --hash=sha256:0d41c684f286ce41fa05ab6af70f32d6da1b6f0457459a56cf9e393c1c0b2217 \ + --hash=sha256:1056cadd5e850a1c026f28e0704ab0a94daaa8f887ece8dfed30f88befb87bb0 \ + --hash=sha256:11d86c6145ac5c706c53d484784cf504d7d10fa407cb73b9d20f09ff986059ef \ + --hash=sha256:170ed4971bf9058582b01a8338605f4d8c849bd88834061e60e83b52d0c76870 \ + --hash=sha256:17791acaa0c0f89323c57da7b9a79f2174e26d5debbc8c02d84ebd80c2b7bff8 \ + --hash=sha256:17931dfbb84ae18b287279c1f92b76a3abcd9a49cd69b92e946035cff06bcd20 \ + --hash=sha256:18662443c6c3707e2fc7fad184b4dc32dd428710bbe72e1bce7fe1988d4aa654 \ + --hash=sha256:187df91395c11e9f9dc69b38d12406df85aa5865f1766a47907b1cc9855b6303 \ + --hash=sha256:1fee66b32e79264f428dc8da18396ad59cc48eef3c9c13844adec890cd339db5 \ + --hash=sha256:2270d590997445a0dc29afa92e5534bfea76ba3aea026289e811bf9ed4b65a7f \ + --hash=sha256:2654caaf5584449d49c94a6b382b3cb4a246c090e72453493ea168b931206a4d \ + --hash=sha256:26bfb6226e0c157af5da16d2d62258f1ac578d2899130a50433ffee4a5dfa673 \ + --hash=sha256:2941756754a10e799e5b87e2319bbec481ed0957421fba0e7b9fb1c11e40509f \ + --hash=sha256:3294f787a437cb5d81846de3a6697f0c35ecff37a932d73b1fe62490bef69211 \ + --hash=sha256:358dc7ddf25e79e1cc8ee16d970c23faee84d532b873519c5036dbb858965795 \ + --hash=sha256:38bc4ed5cae853409cb193c87c86cd0bc8d3a70fd2268a9807217b9176093ac6 \ + --hash=sha256:3a0baff7827a632204060f48dca9e63fbd6a5a0b8790c1a2adfb25dc2c9c0d50 \ + --hash=sha256:3a3ede8c248f36b60227eb777eac1dbc2f1022dc4d741b177c4379ca8e75571a \ + --hash=sha256:3a58a2f2ca7aaf22b265388d40232f453f67a6def7355a840b98c2d547bd037f \ + --hash=sha256:4434b739a8a101a837caeaa0137e0e38cb4ea561f39cb8960f3b1e7f4967a3fc \ + --hash=sha256:460024cacfc3246cc4d9f47a7fc860e4fcea7d1dc651e1256510d8c3c9c7cde0 \ + --hash=sha256:46c465ad06971abcf46dd532f77560181387b4eea59084434bdff97524444032 \ + --hash=sha256:48e424347a45568413deec6f6ee2d720de2cc0385019bedf44cd93e8638aa0ed \ + --hash=sha256:4a8c83f6fcdc327783bdc737e8e45b2e909b7bd108c4da1892d3bc59c04a6d84 \ + --hash=sha256:4c840cc11163d3c01a9d8aad227683c48cd3e5be5a785921bcc2a8b4b758c4f3 \ + --hash=sha256:4d486ddcaca8c68455aa01cf53d28d413fb41a35afc9f6594a730c9779545876 \ + --hash=sha256:4e76381be3d8ff96a4e6c77815653063e87555981329cf8f85e5be5abf449021 \ + --hash=sha256:50d866f7b1a3f16f98603e095f24c0eeba25eb508c85a2c5939c8b3870ba2df8 \ + --hash=sha256:52492b87d5877ec405542f43cd3da80bdcb2d0c2fbc73236526e5f2c28e6db28 \ + --hash=sha256:56afb44a12b0864d17b597210d63a5b88915d680f6484d8d202ed68ade38673d \ + --hash=sha256:585ce7cd97be8f538345de47b279b879e091c8b86d9dbc6d98a96a7ad78876a3 \ + --hash=sha256:5870d620b23b956f72bafed6a0ba9a62edb5f2ef78a8849b7615bd9433384171 \ + --hash=sha256:5c6ea72fe619fee5e6b5d4040a451d45d8175f560b11b3d3e044cd24b2720526 \ + --hash=sha256:688058e89f512fb7541cb85c2f149c292d3fa22f981d5a5453b40c5da49eb9e8 \ + --hash=sha256:6a3f47930fbbed0f6377639503848134c4aa25426b08778d641491131351c2c8 \ + --hash=sha256:6b981316fcd940f085f646b822c2ff2b8b813cbd61281acad229ea3cbaabeb6b \ + --hash=sha256:734144cd2bd633a1516948e477ff6c835041c0536cef1d5b9a823ae29899665b \ + --hash=sha256:736bb076f7299c5c55dfef3eb9e96071a795cb08052822c2bb349b06f4cb2e0a \ + --hash=sha256:752485cbbb50c1e20908450ff4f94217acba9358ebdce0d8106510859d6eb19a \ + --hash=sha256:753eaaa0c7195244c84b5cc159dc8204b7fd99f716f11198f999f2332a86b178 \ + --hash=sha256:75ac158560dec3ed72f6d604c81090ec44529cfb8169b05ae6fcb3e986b325d9 \ + --hash=sha256:76499469dcc24759399accd85ec27f237d52dec300daaca46a5352fcbebb1071 \ + --hash=sha256:782ca9c58f5c491c7afa55518542b2b005caedaf4685ec814fadfcee51f02493 \ + --hash=sha256:792155279dc093839e43f85ff7b9b6493a8eaa0af1f94f1f9c6e8f4de8c63500 \ + --hash=sha256:7a1606ba68e311576bcb1672b2a1543417e7e0aa4c85e9e718ba6466952476c0 \ + --hash=sha256:8281db240a1616af2f9c5f71d355057e73a1409c4648c8949901396dc0a3c151 \ + --hash=sha256:871e1b47eec7b6df76b23c642a81db5dd6536cbef26b7e80e7c56c2fd371382e \ + --hash=sha256:8b9c4643e7d843a0dca9cd9d610a0876e90a1b2cbc4c5ba7930a0d90baf6903f \ + --hash=sha256:8c6d5fed96f0646bfdf698b0a1cebf32b8aae6892d1bec0c5d2d6e2df44e1e2d \ + --hash=sha256:8e1bf59e035534ba4077f5361d8d5d9194149f9ed4f823d1ee29ef3e8964ace3 \ + --hash=sha256:8fd51299e21da709eabcd5b2dd60e39090804431292daacbee8d3dabe39a6bc0 \ + --hash=sha256:91c012dceadc695ccf69301bfdccd1fc4472ad714fe2dd3c5ab4d2046afddf29 \ + --hash=sha256:93771146ef048b34201bfa382c2bf74c524980870bb278e6df515efaf93699ff \ + --hash=sha256:93d1c8cc5bf5df401015c5e2a3ce75a5254a9839e5039c881365d2a9dcfc6dc2 \ + --hash=sha256:9611b83810a74a46be88847e0ea616794c406dbcb4e25405e52bff8f4bee2d0a \ + --hash=sha256:9bc27dd5cfdbe3dc7f381b05e6260ca6da41931a6e582267d5ca540270afeeb2 \ + --hash=sha256:ac8eda86cc75859093e9ce390d423aba968f50cf0e481e6c7d7d63f90bae5c9c \ + --hash=sha256:bc3003710e335e3f842ae3fd78efa55f11a863a89a72e9a07da214db3bf7e1f8 \ + --hash=sha256:bc61b005f6521fcc00ca0d1243559a5850b9dd1e1fe07b891410ee8fe192d0c0 \ + --hash=sha256:be4c7b1c49d9917c6e95258d3d07f43cfba2c69a6929816e77daf322aaba6628 \ + --hash=sha256:c019abc2eca67dfa4d8fb72ba924871d764ec3c92b86d5b53b405ad3d6aa56b0 \ + --hash=sha256:c42774d1d1508ec48c3ed29e7b110e33f5e74a20957ea16197dbcce8be6b52ba \ + --hash=sha256:c556fbc6820b6e2cda1ca675c5fa5589cf188f8da6b33e9fc05b002e603e44fa \ + --hash=sha256:c6e659b9a24d145e271c2faf3fa6dd1fcb3e5d3f4e17273d9e0350b6ab0fe6e2 \ + --hash=sha256:c74f0b0472ac40b04e6d28532f55cac8090e34c3e81f118d12843e6df14d0909 \ + --hash=sha256:cd7e35818d2328b679a13268d9ea505c85cd773572ebb7a0da7ccbca77b6a52e \ + --hash=sha256:d17832ba39374134c10e82d137e372b5f7478c4cceeb19d02ae3e3d1daed8721 \ + --hash=sha256:d1fa68a3c921365c5745b4bd3af6221ae1f0ea1bf04b69e94eda60e57958907f \ + --hash=sha256:d63123bfd0dce5f91101e77c8a5427c3872501acece8c90df457b486bc1acd47 \ + --hash=sha256:da9d3061e61e5ae3f753654813bc1cd1c70e02fb72cf871bd6daf78443e9e2b1 \ + --hash=sha256:db5ac3871ed76340210fe028f535392f097fb31b875354bcb69162bba2632ef4 \ + --hash=sha256:dd7abf4f717e33b7487121faf23560b3a50924f80e4bef62b22dab441ded8f3b \ + --hash=sha256:dd90238d3a77a0e07d4d6ffdebc0c21a9787c5953a508a2231b5f191455f31e9 \ + --hash=sha256:ef6eee1a61638d29cd7c85f7fd3ac7b22b4c0fabc8fd00a712b727a3e73b0685 \ + --hash=sha256:f11fd61d72d93ac23718d393d2a64469af40be2116b24da0a4ca6922df26807e \ + --hash=sha256:f1e7fedb09c059efee2533119666ca7e1a2610072076926fa028c2ba5dfeb78c \ + --hash=sha256:f25b7e93f5414b9a983e1a6c1820142c13e1782cc9ed354c25e933aebe97fcf2 \ + --hash=sha256:f2f44a4247461965fed18b2573f3a9eb5e2c3cad225201ee858726cde610daca \ + --hash=sha256:f5ffc6b7ace5b22d9e73b2a4c7305740a339fbd55301d52735f73e21d9eb3130 \ + --hash=sha256:ff6af03cac0d1a4c3c19e5dcc4c05252411bf44ccaa2485e20d0a7c77892ab6e \ + --hash=sha256:ff8d95e06546c3a8c188f68040e9d0360feb67ba8498baf018918f669f7bc39b # via aiohttp 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