From 637a31763c4aeb102834f049204881f0ee6e2554 Mon Sep 17 00:00:00 2001 From: user2589 Date: Sat, 25 Jul 2020 02:06:58 -0400 Subject: [PATCH 1/5] ci: fix release.yml --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e8d740..027f86c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,12 +22,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: GitHub pages + uses: actions/checkout@v2 with: ref: gh-pages path: docs/build/html - - name: GitHub pages - - run: | + run: | python -m pip install --upgrade pip pip install sphinx sphinx-autobuild sphinx-build -M html "docs" "docs/build" From 1b0cec1cd5c31cdaa063a1a18115c90845232e68 Mon Sep 17 00:00:00 2001 From: user2589 Date: Sat, 25 Jul 2020 02:10:50 -0400 Subject: [PATCH 2/5] ci: fix Python2 test dependencies --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5802f18..6c4bbf7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,6 +30,7 @@ jobs: - name: Install dependencies (Python ${{ matrix.python-version }}) run: | python -m pip install --upgrade pip + pip install typing if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Run tests on Python ${{ matrix.python-version }} From c2a34d57ce07a626c5fe2e80187ac5aa50fd82c9 Mon Sep 17 00:00:00 2001 From: user2589 Date: Sat, 25 Jul 2020 10:09:50 -0400 Subject: [PATCH 3/5] ci: fix test tokens and release syntax --- .github/workflows/release.yml | 8 ++++---- .github/workflows/test.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 027f86c..ec7571e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,18 +22,18 @@ jobs: runs-on: ubuntu-latest steps: - - name: GitHub pages - uses: actions/checkout@v2 + - uses: actions/checkout@v2 with: ref: gh-pages path: docs/build/html + - name: GitHub pages run: | python -m pip install --upgrade pip pip install sphinx sphinx-autobuild - sphinx-build -M html "docs" "docs/build" + make html + cd docs/build/html git config user.name github-actions git config user.email github-actions@github.com - cd docs/build/html git add . git commit -m "github pages" git push \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c4bbf7..1d0c68d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,5 +35,5 @@ jobs: - name: Run tests on Python ${{ matrix.python-version }} env: - GITHUB_API_TOKENS: ${{ secrets.GH_API_TOKENS }} + GITHUB_API_TOKENS: ${{ secrets.GITHUB_TOKEN }} run: make test From a1ac2ace582a1ec1f1d0fe65a81cb6d870c72a3a Mon Sep 17 00:00:00 2001 From: user2589 Date: Sat, 25 Jul 2020 10:56:25 -0400 Subject: [PATCH 4/5] ci:speedup tests by providing more tokens --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d0c68d..d61ed6d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,5 +35,5 @@ jobs: - name: Run tests on Python ${{ matrix.python-version }} env: - GITHUB_API_TOKENS: ${{ secrets.GITHUB_TOKEN }} + GITHUB_API_TOKENS: ${{ secrets.GH_TOKEN }} run: make test From f6efcadc45633373de5712154b5d9c63109723d4 Mon Sep 17 00:00:00 2001 From: user2589 Date: Sat, 25 Jul 2020 12:05:18 -0400 Subject: [PATCH 5/5] ci: fix typo in env var name --- .github/workflows/test.yml | 4 ++-- docs/index.rst | 2 +- stscraper/github.py | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d61ed6d..15b8e4d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - python-version: [2.7, 3.6, 3.7, 3.8] + python-version: [2.7, 3.6, 3.8] steps: - uses: actions/checkout@v2 @@ -35,5 +35,5 @@ jobs: - name: Run tests on Python ${{ matrix.python-version }} env: - GITHUB_API_TOKENS: ${{ secrets.GH_TOKEN }} + GITHUB_API_TOKENS: ${{ secrets.GH_TOKENS }} run: make test diff --git a/docs/index.rst b/docs/index.rst index 8cf1bb0..efb1448 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -60,7 +60,7 @@ REST (v3) API ------------- .. autoclass:: GitHubAPI :members: - :exclude-members: + :exclude-members: token_class GraphQL (v4) API ---------------- diff --git a/stscraper/github.py b/stscraper/github.py index ea70690..a1d207f 100644 --- a/stscraper/github.py +++ b/stscraper/github.py @@ -307,7 +307,8 @@ def issue_events(self, repo, issue_no): @staticmethod def project_exists(repo_slug): """Check if the project exists. - This is a slightly cheaper alternative to getting repository info. + This is a slightly cheaper alternative to getting repository info. It + does not using API keys. """ for i in range(5): try: