Skip to content

Commit

Permalink
update release drafter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Nov 10, 2024
1 parent aff92e0 commit ef10049
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ categories:
- 'refactor'
- title: 'Documentation 📖'
label: 'docs'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-template: '- $SUBJECT (#$NUMBER) - **_Thanks, @$AUTHOR_**!'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
Expand All @@ -37,10 +37,13 @@ template: |
autolabeler:
- label: 'chore'
title:
- '/chore\:/i'
- '/^chore(\(.*\))?\:/i'
- label: 'ci'
title:
- '/^ci(\(.*\))?\:/i'
- label: 'bug'
title:
- '/fix\:/i'
- '/^fix(\(.*\))?\:/i'
- label: 'enhancement'
title:
- '/feature/i'
- '/^feat(\(.*\))?/i'
9 changes: 8 additions & 1 deletion .github/workflows/release_drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ on:
push:
branches:
- main
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# # pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

env:
AIRBYTE_ANALYTICS_ID: ${{ vars.AIRBYTE_ANALYTICS_ID }}

permissions:
contents: read
contents: write
pull-requests: write

jobs:
update_release_draft:
Expand Down

0 comments on commit ef10049

Please sign in to comment.