-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Disable typing-linting on push to master * Disallow pushing to master * Rearrange labels * Execute pre-commit hooks one by one * Add issue and pr auto-locking * Add stale --------- Co-authored-by: tb1337 <[email protected]>
- Loading branch information
Showing
10 changed files
with
141 additions
and
37 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 |
---|---|---|
@@ -1,38 +1,54 @@ | ||
--- | ||
name-template: 'v$RESOLVED_VERSION 🌈' | ||
tag-template: 'v$RESOLVED_VERSION' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
|
||
categories: | ||
- title: '🚀 Features' | ||
- title: '🚨 Breaking changes' | ||
labels: | ||
- 'enhancement' | ||
- 'refactor' | ||
- 'breaking-change' | ||
- title: '✨ New features' | ||
labels: | ||
- 'new-feature' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'bug' | ||
- 'bugfix' | ||
- title: '🚀 Enhancements' | ||
labels: | ||
- 'enhancement' | ||
- 'refactor' | ||
- 'performance' | ||
- title: '🧰 Maintenance' | ||
label: 'chore' | ||
template: | | ||
## Changes | ||
labels: | ||
- 'maintenance' | ||
- 'ci' | ||
- title: '📚 Documentation' | ||
labels: | ||
- 'documentation' | ||
- title: '⬆️ Dependency updates' | ||
labels: | ||
- 'dependencies' | ||
|
||
$CHANGES | ||
version-resolver: | ||
major: | ||
labels: | ||
- 'breaking change' | ||
- 'major' | ||
- 'breaking-change' | ||
minor: | ||
labels: | ||
- 'minor' | ||
- 'new-feature' | ||
patch: | ||
labels: | ||
- 'bugfix' | ||
- 'dependencies' | ||
- 'enhancement' | ||
- 'performance' | ||
- 'refactor' | ||
default: patch | ||
autolabeler: | ||
- label: 'bug' | ||
branch: | ||
- '/fix\/.+/' | ||
title: | ||
- '/fix/i' | ||
- label: 'enhancement' | ||
branch: | ||
- '/feature\/.+/' | ||
- label: 'chore' | ||
branch: | ||
- '/chore\/.+/' | ||
|
||
template: | | ||
## Changes | ||
$CHANGES |
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,20 @@ | ||
--- | ||
name: Lock | ||
|
||
on: | ||
schedule: | ||
- cron: "0 5 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lock: | ||
name: 🔒 Lock closed issues and PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/[email protected] | ||
with: | ||
github-token: ${{ github.token }} | ||
issue-inactive-days: "30" | ||
issue-lock-reason: "" | ||
pr-inactive-days: "1" | ||
pr-lock-reason: "" |
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,23 +2,28 @@ | |
name: PR Labels | ||
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
- labeled | ||
- unlabeled | ||
branches: | ||
- master | ||
|
||
permissions: {} | ||
workflow_call: | ||
|
||
jobs: | ||
pr_labels: | ||
pr-labels: | ||
name: Verify | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏷 Verify valid PR label | ||
uses: ludeeus/[email protected] | ||
with: | ||
labels: >- | ||
breaking-change, bugfix, chore, dependencies, documentation, enhancement, new-feature, refactor | ||
breaking-change, bugfix, | ||
ci, | ||
dependencies, documentation, | ||
enhancement, | ||
maintenance, | ||
new-feature, | ||
performance, | ||
refactor |
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
# Utilize release drafter action | ||
|
||
--- | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
update_release_draft: | ||
name: 📝 Draft release | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/[email protected] | ||
- name: 🚀 Run Release Drafter | ||
uses: release-drafter/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,39 @@ | ||
--- | ||
name: Stale | ||
|
||
on: | ||
schedule: | ||
- cron: "0 3 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
name: 🧹 Clean up stale issues and PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🚀 Run stale | ||
uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
days-before-stale: 14 | ||
days-before-close: 7 | ||
remove-stale-when-updated: true | ||
stale-issue-label: "stale" | ||
exempt-issue-labels: "no-stale,help-wanted" | ||
stale-issue-message: > | ||
There hasn't been any activity on this issue recently, so we | ||
clean up some of the older and inactive issues. | ||
Please make sure to update to the latest version and | ||
check if that solves the issue. Let us know if that works for you | ||
by leaving a comment 👍 | ||
This issue has now been marked as stale and will be closed if no | ||
further activity occurs. Thanks! | ||
stale-pr-label: "stale" | ||
exempt-pr-labels: "no-stale" | ||
stale-pr-message: > | ||
There hasn't been any activity on this pull request recently. This | ||
pull request has been automatically marked as stale because of that | ||
and will be closed if no further activity occurs within 7 days. | ||
Thank you for your contributions. |
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