Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Enable autolabeler for release-drafter #238

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,37 @@ categories:
- "repo"
- "dependencies"
- "github_actions"
- "refactor"
- title: ":mortar_board: Code Quality :mortar_board:"
labels:
- "code-quality"
- "CI"
- "test"
autolabeler:
- label: "breaking-change"
title:
- "/!:/i"
- label: "feature"
title:
- "/feat:/i"
- label: "bug"
title:
- "/fix:/i"
- label: "refactor"
title:
- "/refactor:/i"
- label: "code-quality"
title:
- "/test:/i"
- label: "CI"
title:
- "/ci:/i"
- label: "chore"
title:
- "/chore:/i"
- label: "documentation"
title:
- "/docs:/i"
# yamllint disable rule:line-length
template: |
[![Downloads for this release](https://img.shields.io/github/downloads/tykeal/homeassistant-rental-control/v$RESOLVED_VERSION/total.svg)](https://github.com/tykeal/homeassistant-rental-control/releases/v$RESOLVED_VERSION)
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,26 @@ on:
push:
branches:
- main
# pull_request is required for autolabeler
pull_request:
types:
- opened
- synchronize
- reopened
# pull_request_target is required for autolabeler on PRs from forks
pull_request_target:
types:
- opened
- synchronize
- reopened

jobs:
update_release_draft:
permissions:
# write permission is required to create releases
contents: write
# write permission is required for autolabeler
pull-requests: write
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
Expand Down
Loading