Skip to content

Commit

Permalink
feat: Add autolabeler functionality for PRs (mealie-recipes#4188)
Browse files Browse the repository at this point in the history
  • Loading branch information
boc-the-git committed Sep 28, 2024
1 parent d715df7 commit 3eaf356
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 3eaf356

Please sign in to comment.