Skip to content

Commit

Permalink
that didn't work, go back to release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
aamirazad committed Jun 27, 2024
1 parent 1881775 commit 43ff97a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
autolabeler:
- label: "breaking"
title:
- "/BREAKING CHANGE/i"
- '/\w+!:/i'
- label: "major"
title:
- "/BREAKING CHANGE/i"
- '/\w+!:/i'
- label: "minor"
title:
- "/feat/i"
- label: "patch"
title:
- "/fix/i"
categories:
- title: "Breaking Changes"
labels:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-conventional-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
uses: ytanikin/[email protected]
with:
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
custom_labels: '{"feat": ["feature", "minor"], "fix": ["fix", "patch"], "docs": "documentation", "test": "test", "ci": "ci", "refactor": "refactor", "perf": "performance", "chore": "chore", "revert": "revert"}'
add_label: "false"
18 changes: 18 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
pull_request:
types: [opened, synchronize, reopened, edited]

permissions:
contents: read

jobs:
add-conventional-commit-label:
runs-on: ubuntu-latest
steps:
permissions:
pull-requests: read
steps:
# Drafts your next Release notes as Pull Requests are merged
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 43ff97a

Please sign in to comment.