Skip to content

Commit

Permalink
[SYNC] mcaf-github-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Workflow Sync Bot committed Jan 27, 2025
1 parent 95cbdf3 commit 0376267
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 47 deletions.
6 changes: 3 additions & 3 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
description: New feature or request
- name: fix
color: "d93f0b"
description: Something isn't working
- name: misc
description: Fixes a bug
- name: chore
color: "6b93d3"
description: Miscellaneous task not covered by something else
description: Task not covered by something else (e.g. refactor, CI changes, tests)
- name: no-changelog
color: "cccccc"
description: No entry should be added to the release notes and changelog
Expand Down
89 changes: 48 additions & 41 deletions .github/release-drafter-config.yaml
Original file line number Diff line number Diff line change
@@ -1,82 +1,89 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
version-template: '$MAJOR.$MINOR.$PATCH'
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
version-template: "$MAJOR.$MINOR.$PATCH"
change-title-escapes: '\<*_&'

categories:
- title: '🚀 Features'
- title: "🚀 Features"
labels:
- 'breaking'
- 'enhancement'
- 'feature'
- title: '🐛 Bug Fixes'
- "breaking"
- "enhancement"
- "feature"
- title: "🐛 Bug Fixes"
labels:
- 'bug'
- 'fix'
- 'security'
- title: '📖 Documentation'
- "bug"
- "fix"
- "security"
- title: "📖 Documentation"
labels:
- 'documentation'
- title: '🧺 Miscellaneous'
- "documentation"
- title: "🧺 Miscellaneous"
labels:
- 'misc'
- "chore"

version-resolver:
major:
labels:
- 'breaking'
- "breaking"
minor:
labels:
- 'enhancement'
- 'feature'
- "enhancement"
- "feature"
patch:
labels:
- 'bug'
- 'documentation'
- 'fix'
- 'security'
default: 'minor'
- "bug"
- "chore"
- "documentation"
- "fix"
- "security"
default: "minor"

autolabeler:
- label: 'documentation'
- label: "documentation"
body:
- '/documentation/'
- "/documentation/"
branch:
- '/docs\/.+/'
title:
- '/documentation/i'
- '/docs/i'
- label: 'bug'
- "/documentation/i"
- "/docs/i"
- label: "bug"
body:
- '/bug/'
- "/bug/"
branch:
- '/bug\/.+/'
- '/fix\/.+/'
title:
- '/bug/i'
- '/fix/i'
- label: 'feature'
- "/bug/i"
- "/fix/i"
- label: "feature"
branch:
- '/feature\/.+/'
- '/enhancement\/.+/'
title:
- '/feature/i'
- '/feat/i'
- '/enhancement/i'
- label: 'breaking'
- "/feature/i"
- "/feat/i"
- "/enhancement/i"
- label: "breaking"
body:
- '/breaking/'
- "/breaking change/i"
branch:
- '/breaking\/.+/'
title:
- '/breaking/i'
- '/major/i'
- "/!:/"
- "/breaking/i"
- "/major/i"
- label: "chore"
branch:
- '/chore\/.+/'
title:
- "/chore/i"

exclude-contributors:
- 'github-actions[bot]'
- "github-actions[bot]"

exclude-labels:
- 'no-changelog'
- "no-changelog"

template: |
# What's Changed
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/pr-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
types: |
breaking
bug
chore
docs
documentation
enhancement
feat
feature
fix
misc
security
requireScope: false
ignoreLabels: |
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- uses: danielchabr/[email protected]
id: lint_pr_labels
with:
hasSome: breaking,bug,documentation,enhancement,feature,fix,misc,security
hasSome: breaking,bug,chore,documentation,enhancement,feature,fix,security
githubToken: ${{ secrets.GITHUB_TOKEN }}

- uses: marocchino/sticky-pull-request-comment@v2
Expand All @@ -94,7 +94,16 @@ jobs:
message: |
Hey there and thank you for opening this pull request! 👋🏼
The PR needs to have at least one of the following labels: breaking, bug, documentation, enhancement, feature, fix, misc, security.
The PR needs to have at least one of the following labels:
- breaking
- bug
- chore
- documentation
- enhancement
- feature
- fix
- security
# Delete a previous comment when the issue has been resolved
- if: ${{ steps.lint_pr_labels.outputs.passed != false }}
Expand Down

0 comments on commit 0376267

Please sign in to comment.