mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-04 21:15:22 +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
|
default: patch
|
||||||
|
|
||||||
template: |
|
template: |
|
||||||
# 🍴🍴🍴🍴🍴🍴🍴🍴🍴🍴
|
# 🍴🍴🍴🍴🍴🍴
|
||||||
|
|
||||||
$CHANGES
|
$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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- mealie-next
|
- 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:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -12,6 +18,9 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
# write permission is required to create a github release
|
# write permission is required to create a github release
|
||||||
contents: write
|
contents: write
|
||||||
|
# write permission is required for autolabeler
|
||||||
|
# otherwise, read permission is required at least
|
||||||
|
pull-requests: write
|
||||||
name: ✏️ Draft release
|
name: ✏️ Draft release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue