-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[repo-helper] Configuration Update (#30)
* Updated files with 'repo_helper'. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6578370
commit 9b01806
Showing
30 changed files
with
496 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env python | ||
|
||
# stdlib | ||
import os | ||
import sys | ||
|
||
# 3rd party | ||
from github3 import GitHub | ||
from github3.repos import Repository | ||
from packaging.version import InvalidVersion, Version | ||
|
||
latest_tag = os.environ["GITHUB_REF_NAME"] | ||
|
||
try: | ||
current_version = Version(latest_tag) | ||
except InvalidVersion: | ||
sys.exit() | ||
|
||
gh: GitHub = GitHub(token=os.environ["GITHUB_TOKEN"]) | ||
repo: Repository = gh.repository(*os.environ["GITHUB_REPOSITORY"].split('/', 1)) | ||
|
||
for milestone in repo.milestones(state="open"): | ||
try: | ||
milestone_version = Version(milestone.title) | ||
except InvalidVersion: | ||
continue | ||
if milestone_version == current_version: | ||
sys.exit(not milestone.update(state="closed")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,36 @@ | |
--- | ||
name: "Docs Check" | ||
on: | ||
- push | ||
push: | ||
branches-ignore: | ||
- 'repo-helper-update' | ||
- 'pre-commit-ci-update-config' | ||
- 'imgbot' | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: "actions/checkout@v1" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: Check for changed files | ||
uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
list-files: "json" | ||
filters: | | ||
code: | ||
- '!tests/**' | ||
- name: Install and Build 🔧 | ||
uses: ammaraskar/sphinx-action@master | ||
uses: sphinx-toolbox/[email protected] | ||
if: steps.changes.outputs.code == 'true' | ||
with: | ||
pre-build-command: apt-get update && apt-get install gcc python3-dev git pandoc -y && python -m pip install tox | ||
pre-build-command: python -m pip install tox | ||
docs-folder: "doc-source/" | ||
build-command: "tox -e docs -- " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.