Skip to content

Commit

Permalink
Merge pull request #238 from tykeal/release_drafter
Browse files Browse the repository at this point in the history
Docs: Enable autolabeler for release-drafter
  • Loading branch information
tykeal authored Dec 1, 2024
2 parents 1095dd6 + 8ee4dfd commit 33d0065
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
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

0 comments on commit 33d0065

Please sign in to comment.