mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-03 04:25:24 +02:00
feat: Add autolabeler functionality for PRs (#4188)
This commit is contained in:
parent
98ac9cd290
commit
589b226360
2 changed files with 25 additions and 2 deletions
18
.github/release-drafter.yml
vendored
18
.github/release-drafter.yml
vendored
|
@ -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
.github/workflows/release-drafter.yml
vendored
9
.github/workflows/release-drafter.yml
vendored
|
@ -5,6 +5,12 @@ 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:
|
||||
|
@ -12,6 +18,9 @@ jobs:
|
|||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue