Skip to content

Commit

Permalink
feat: Add autolabeler functionality for PRs (#4188)
Browse files Browse the repository at this point in the history
  • Loading branch information
boc-the-git authored Sep 10, 2024
1 parent 98ac9cd commit 589b226
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,22 @@ version-resolver:
default: patch

template: |
# 🍴🍴🍴🍴🍴🍴🍴🍴🍴🍴
# 🍴🍴🍴🍴🍴🍴
$CHANGES
# 🍴🍴🍴🍴🍴🍴🍴🍴🍴🍴
# 🍴🍴🍴🍴🍴🍴
autolabeler:
- label: 'feature'
title:
- '/feat/i'
- label: 'bugfix'
title:
- '/fix/i'
- label: 'documentation'
title:
- '/docs/i'
- label: 'chore'
title:
- '/chore/i'
9 changes: 9 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ on:
push:
branches:
- mealie-next
# pull_request event is required for autolabeler
pull_request:
types: [opened, labeled, unlabeled, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
pull_request_target:
types: [opened, labeled, unlabeled, reopened, synchronize]
workflow_dispatch:

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
name: ✏️ Draft release
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 589b226

Please sign in to comment.