Skip to content

Commit

Permalink
Merge pull request #12 from jmeridth/jm-automate-releases
Browse files Browse the repository at this point in the history
feat: automate releases
  • Loading branch information
jmeridth authored Apr 14, 2024
2 parents ba2f79e + 5532054 commit df4576b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 22 deletions.
19 changes: 0 additions & 19 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,3 @@ version-resolver:
- 'maintenance'
- 'documentation'
default: patch
autolabeler:
- label: 'automation'
title:
- '/^(build|ci|perf|refactor|test).*/i'
- label: 'enhancement'
title:
- '/^(chore|style).*/i'
- label: 'documentation'
title:
- '/^docs.*/i'
- label: 'feature'
title:
- '/^feat.*/i'
- label: 'fix'
title:
- '/^fix.*/i'
- label: 'revert'
title:
- '/^revert.*/i'
27 changes: 27 additions & 0 deletions .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Auto Labeler

on:
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
pull_request_target:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
main:
permissions:
pull-requests: write
name: Auto label pull requests
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config-name: auto-labeler.yml
1 change: 1 addition & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: github pages

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
## Reference: https://github.com/amannn/action-semantic-pull-request
name: "Lint PR"

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Release Drafter
name: Release Handler

on:
push:
Expand All @@ -13,7 +13,6 @@ jobs:
main:
permissions:
contents: write
pull-requests: read
name: Generate release notes
runs-on: ubuntu-latest
steps:
Expand All @@ -22,4 +21,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config-name: release-drafter.yml
# publish: true
publish: true

0 comments on commit df4576b

Please sign in to comment.