-
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.
feat: adds automatic labels to pull requests (#7)
- Loading branch information
Showing
4 changed files
with
85 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Description | ||
|
||
_Provide a brief summary of why the change is being implemented._ | ||
|
||
## Changes | ||
|
||
This PR implements the following changes: | ||
|
||
1. _List the change details here for QA and code reviewers._ |
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,31 @@ | ||
python: | ||
- "**/*.py" | ||
|
||
yaml: | ||
- "**/*.yaml" | ||
- "**/*.yml" | ||
|
||
json: | ||
- "**/*.json" | ||
|
||
markdown: | ||
- "**/*.md" | ||
|
||
docker: | ||
- "**/Dockerfile" | ||
|
||
shell: | ||
- "**/*.sh" | ||
|
||
dependencies: | ||
- "poetry.lock" | ||
|
||
documentation: | ||
- "docs/**" | ||
- README.md | ||
|
||
tests: | ||
- "tests/**" | ||
|
||
release: | ||
- "python_package_publish/version.py" |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
name: release | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
|
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 |
---|---|---|
|
@@ -43,3 +43,47 @@ jobs: | |
- name: Run ${{ matrix.tox.name }} in lint | ||
run: | | ||
python -m tox -e ${{ matrix.tox.environment }} | ||
apply-labels: | ||
name: apply labels | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: .github/labeler.yml | ||
sync-labels: true | ||
|
||
lint-commit-messages: | ||
name: lint commit message | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: Install commitizen | ||
run: | | ||
python -m pip install commitizen | ||
- name: Commitizen check | ||
run: | | ||
cz check --rev-range HEAD^! | ||
lint-pr-title: | ||
# default: lints titles using https://github.com/commitizen/conventional-commit-types | ||
name: lint pr title | ||
runs-on: [ubuntu-latest] | ||
permissions: | ||
pull-requests: read | ||
steps: | ||
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |