Skip to content

Commit

Permalink
ci: some fixes to labels / release drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
bjchambers committed Jan 31, 2024
1 parent 6211d32 commit 93c7273
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
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/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

0 comments on commit 93c7273

Please sign in to comment.