-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] add action to label PRs based on title and draft releases (#327)
* add action to label PRs based on title and draft releases
- Loading branch information
1 parent
87a2c65
commit 9ac46b3
Showing
6 changed files
with
141 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
- name: added-feature | ||
# PR Labels | ||
- name: new-feature | ||
description: for new features in the changelog. | ||
color: a2eeef | ||
- name: changed | ||
description: for changes in existing functionality in the changelog. | ||
color: a2eeef | ||
- name: deprecated | ||
description: for soon-to-be removed features in the changelog. | ||
color: e4e669 | ||
- name: removed | ||
description: for now removed features in the changelog. | ||
color: e4e669 | ||
color: 225fee | ||
- name: improvement | ||
description: for improvements in existing functionality in the changelog. | ||
color: 22ee47 | ||
- name: repo-ci-improvement | ||
description: for improvements in the repository or CI workflow in the changelog. | ||
color: c922ee | ||
- name: bugfix | ||
description: for any bug fixes in the changelog. | ||
color: d73a4a | ||
- name: security | ||
description: for vulnerabilities in the changelog. | ||
color: dd4739 | ||
- name: bug | ||
description: Something isn't working in this issue. | ||
color: d73a4a | ||
color: ed8e21 | ||
- name: documentation | ||
description: for updates to the documentation in the changelog. | ||
color: d3e1e6 | ||
- name: dependencies | ||
description: dependency updates including security fixes | ||
color: 5c9dff | ||
- name: testing | ||
description: for updates to the testing suite in the changelog. | ||
color: 933ac9 | ||
- name: breaking-change | ||
description: for breaking changes in the changelog. | ||
color: ff0000 | ||
- name: ignore-for-release | ||
description: PRs you do not want to render in the changelog. | ||
color: 7b8eac | ||
# Issue Labels | ||
- name: enhancement | ||
description: New feature request in this issue. | ||
color: a2eeef | ||
description: issues that request a enhancement. | ||
color: 22ee47 | ||
- name: bug | ||
description: issues that report a bug. | ||
color: ed8e21 |
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,21 +1,67 @@ | ||
name-template: 'v$NEXT_PATCH_VERSION' | ||
tag-template: 'v$NEXT_PATCH_VERSION' | ||
exclude-labels: | ||
- ignore-for-release | ||
categories: | ||
- title: '🚀 Added' | ||
label: 'added-feature' | ||
- title: '🧰 Changed' | ||
label: 'changed' | ||
- title: "⚠️ Deprecated" | ||
label: "deprecated" | ||
- title: "⚠️ Removed" | ||
label: "removed" | ||
- title: '🐛 Bug Fixes' | ||
label: 'bugfix' | ||
- title: "⚠️ Security" | ||
label: "security" | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
- title: ⚠️ Breaking Change | ||
labels: | ||
- breaking-change | ||
- title: 🐛 Bug Fixes | ||
labels: | ||
- bugfix | ||
- title: 🚀 New Features | ||
labels: | ||
- new-feature | ||
- title: 💡 Improvements | ||
labels: | ||
- improvement | ||
- title: 🧪 Testing Improvements | ||
labels: | ||
- testing | ||
- title: ⚙️ Repo/CI Improvements | ||
labels: | ||
- repo-ci-improvement | ||
- title: 📖 Documentation | ||
labels: | ||
- documentation | ||
- title: 📦 Dependency Updates | ||
labels: | ||
- dependencies | ||
- title: Other Changes | ||
labels: | ||
- "*" | ||
autolabeler: | ||
- label: 'breaking-change' | ||
title: | ||
- '/.*\[breaking\].+/' | ||
- label: 'deprecation' | ||
title: | ||
- '/.*\[deprecation\].+/' | ||
- label: 'bugfix' | ||
title: | ||
- '/.*\[fix\].+/' | ||
- label: 'new-feature' | ||
title: | ||
- '/.*\[feat\].+/' | ||
- label: 'improvement' | ||
title: | ||
- '/.*\[improvement\].+/' | ||
- label: 'testing' | ||
title: | ||
- '/.*\[test\].+/' | ||
- label: 'repo-ci-improvement' | ||
title: | ||
- '/.*\[CI\].+/' | ||
- '/.*\[ci\].+/' | ||
- label: 'documentation' | ||
title: | ||
- '/.*\[docs\].+/' | ||
- label: 'dependencies' | ||
title: | ||
- '/.*\[deps\].+/' | ||
|
||
change-template: '- $TITLE by @$AUTHOR in #$NUMBER' | ||
no-changes-template: "- No changes" | ||
template: | | ||
## Changes | ||
## What's Changed | ||
$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
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,24 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
pull_request_target: | ||
types: [opened, reopened, synchronize] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update_release_draft: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v6 | ||
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