Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy workflow and PR labeler #260

Merged
merged 6 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
skip-changelog: ['pre-commit-ci-*', 'skip-changelog-*']
6 changes: 5 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ categories:
exclude-labels:
- 'skip-changelog'
category-template: '### $TITLE'
change-template: '- $TITLE by @$AUTHOR ([#$NUMBER]($URL))'
change-template: '- $TITLE ([#$NUMBER]($URL))'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
Expand All @@ -53,6 +53,10 @@ template: |

$CHANGES

### Contributors

$CONTRIBUTORS

[$RESOLVED_VERSION]: https://github.com/$OWNER/$REPOSITORY/releases/tag/v$RESOLVED_VERSION

<!-- END cut-and-paste to NEWS.md -->
Expand Down
22 changes: 5 additions & 17 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ on:
- 'website/**'
- 'data/**'
- 'src/obsolete/**'
- '.github/dependabot.yml'
- '.github/release-drafter.yml'
- '.github/ISSUE_TEMPLATE/**'
- '.github/workflows/documentation.yaml'
- '.github/workflows/buildjet_arm64.yml'
- '.github/workflows/release-drafter.yml'
- '.github/workflows/codeql.yml'
- '.github/workflows/nuget_gsl_arm64_package.yml'
- '.github/**'
- '!.github/workflows/build_wheels.yml'
- '.gitattributes'
- '.pre-commit-config.yaml'
push:
Expand All @@ -34,14 +28,8 @@ on:
- 'website/**'
- 'data/**'
- 'src/obsolete/**'
- '.github/dependabot.yml'
- '.github/release-drafter.yml'
- '.github/ISSUE_TEMPLATE/**'
- '.github/workflows/documentation.yaml'
- '.github/workflows/buildjet_arm64.yml'
- '.github/workflows/release-drafter.yml'
- '.github/workflows/codeql.yml'
- '.github/workflows/nuget_gsl_arm64_package.yml'
- '.github/**'
- '!.github/workflows/build_wheels.yml'
- '.gitattributes'
- '.pre-commit-config.yaml'
release:
Expand Down Expand Up @@ -193,7 +181,7 @@ jobs:
echo "platform matrix:" $MATRIX
env:
# only generate all wheels on releases, pull requests or commits to the main branch
# otherwise just generate a test wheel Python 3.12 for 4 platform
# otherwise just generate a test wheel Python 3.13 for 5 platform
CI_ONLY: ${{ github.event_name != 'release' && github.event_name != 'pull_request' && github.ref_name != 'main' && github.event_name != 'workflow_dispatch' }}


Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pull Request Labeler
on:
pull_request:
types: [opened]

permissions:
contents: read

jobs:
pr-labeler:
permissions:
contents: read # for TimonVS/pr-labeler-action to read config file
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value
Loading