1
0
Fork 0
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:
boc-the-git 2024-09-11 00:23:23 +10:00 committed by GitHub
parent 98ac9cd290
commit 589b226360
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 2 deletions

View file

@ -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'

View file

@ -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: