Skip to content

Commit

Permalink
Release drafter config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylong committed Dec 12, 2023
1 parent d23c1c6 commit 3706c5e
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 5 deletions.
62 changes: 62 additions & 0 deletions .github/draft-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name-template: 'Cornac $RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
autolabeler:
- label: 'docs'
files:
- '*.md'
branch:
- '/docs{0,1}\/.+/'
- label: 'models'
files:
- '/cornac/models/*.py'
- '/cornac/models/**/*.py'
- label: 'datasets'
files:
- '/cornac/datasets/*.py'

template: |
# What's Changed
$CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
categories:
- title: 'Breaking'
label: 'type: breaking'
- title: 'Models'
label: 'type: models'
- title: 'Datasets'
label: 'type: datasets'
- title: 'New'
label: 'type: feature'
- title: 'Bug Fixes'
label: 'type: bug'
- title: 'Maintenance'
label: 'type: maintenance'
- title: 'Documentation'
label: 'type: docs'
- title: 'Other changes'
- title: 'Dependency Updates'
label: 'type: dependencies'
collapse-after: 5

version-resolver:
major:
labels:
- 'type: breaking'
minor:
labels:
- 'type: feature'
patch:
labels:
- 'type: bug'
- 'type: maintenance'
- 'type: docs'
- 'type: dependencies'
- 'type: security'
- 'type: models'
- 'type: datasets'

exclude-labels:
- 'skip-changelog'
17 changes: 12 additions & 5 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@ name: Release Drafter

on:
push:
tags:
- '*'
branches:
- master
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Draft release
uses: release-drafter/release-drafter@v5.25.0
id: release_drafter
with:
config-name: workflows/release-drafter.yml
disable-autolabeler: true
config-name: draft-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3706c5e

Please sign in to comment.