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

ci: some fixes to labels / release drafts #56

Merged
merged 2 commits into from
Jan 31, 2024
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
16 changes: 14 additions & 2 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,35 @@
description: Something isn't working
color: "d73a4a"
- name: docs
description: Improvements or additions to documentation
description: Documentation only changes
color: "0075ca"
- name: enhancement
description: New feature or request
color: "a2eeef"
- name: build
description: Changes to Build (Yarn, NPM, Poetry, etc.)
color: "e4e669"
- name: style
description: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
color: "e4e669"
- name: ci
description: Changes to CI (GitHub Actions)
color: "e4e669"
- name: test
description: Adding missing tests or correcting existing tests
color: "e4e669"
- name: refactor
description: Improvements to code quality
description: A code change that neither fixes a bug nor adds a feature
color: "e4e669"
- name: revert
description: Reverting earlier changes
color: "e4e669"
- name: chore
description: Other changes that don't modify src or test files
color: "e4e669"
- name: perf
description: A code change that improves performance
color: "e4e669"

# Labels controlling the changelog
- name: highlight
Expand Down
19 changes: 14 additions & 5 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: 'Breaking Changes'
lables:
- title: '🏆 Highlights'
labels:
- 'highlight'
- title: '💥 Breaking Changes'
labels:
- 'breaking'
- title: '🚀 Features'
labels:
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
- title: '📄 Docs'
- title: '📚 Docs'
labels:
- 'docs'
- title: '🧰 Maintenance'
Expand All @@ -21,14 +24,17 @@ categories:
- 'ci'
- 'refactor'
- 'perf'
- 'test'
- 'style'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'breaking'
labels: []
minor:
labels:
# Until we hit `1.0.0`, breaking changes can rev the minor version.
- 'breaking'
- 'enhancement'
patch:
labels:
Expand All @@ -52,6 +58,9 @@ autolabeler:
- label: 'bug'
title:
- '/^fix/i'
- label: 'style'
title:
- '/^style/i'
- label: 'test'
title:
- '/^test/i'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ We currently have the following workflows:
- Runs an "autolabeler" to provide labels based on title and files touched.
3. `site.yml` defines the build and deployment process for the site.
4. `release-drafter.yml`: Generates draft release notes as PRs are merged.
5. `sync-labels.yml`: Updates the labels in the project to match `.github/labels.yml`.

## Future Improvements

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
with:
disable-autolabeler: true
disable-releaser: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading