-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release.yml to automate release notes #16633
Use github autogeneration release notes and add action to check if the PR has labels Complete and more readable relase notes https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes Signed-off-by: OrlinVasilev <ovasilev@vmware.com>
- Loading branch information
OrlinVasilev
committed
Apr 27, 2022
1 parent
a5b5e21
commit 27463f4
Showing
2 changed files
with
59 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,36 @@ | ||
# .github/release.yml | ||
|
||
changelog: | ||
exclude: | ||
labels: | ||
- release-note/ignore-for-release | ||
authors: | ||
- octocat | ||
categories: | ||
- title: Exciting New Features 🎉 | ||
labels: | ||
- release-note/new-feature | ||
- title: Enhancement 🚀 | ||
labels: | ||
- release-note/enhancement | ||
- title: Component updates ⬆️ | ||
labels: | ||
- release-note/update | ||
- title: Docs update 🗄️ | ||
labels: | ||
- release-note/docs | ||
- title: Community update 🧑🏻🤝🧑🏾 | ||
labels: | ||
- release-note/community | ||
|
||
- title: Breaking Changes 🛠 | ||
labels: | ||
- release-note/breaking-change | ||
|
||
- title: Deprecations ❌ | ||
labels: | ||
- release-note/deprecation | ||
|
||
- title: Other Changes | ||
labels: | ||
- "*" |
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,23 @@ | ||
name: Release Note Label Check | ||
|
||
# Trigger the workflow on pull requests only | ||
on: | ||
pull_request: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
|
||
env: | ||
GOPROXY: https://proxy.golang.org/ | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
jobs: | ||
# Ensures correct release-note labels are set: | ||
# - At least one label | ||
# - At most one two the main category labels | ||
check-label: | ||
name: Check release-note label set | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mheap/github-action-required-labels@v1 | ||
with: | ||
mode: minimum | ||
count: 1 | ||
labels: "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation" |