Skip to content

Commit 3706c5e

Browse files
committed
Release drafter config changes
1 parent d23c1c6 commit 3706c5e

File tree

2 files changed

+74
-5
lines changed

2 files changed

+74
-5
lines changed

.github/draft-config.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name-template: 'Cornac $RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
autolabeler:
4+
- label: 'docs'
5+
files:
6+
- '*.md'
7+
branch:
8+
- '/docs{0,1}\/.+/'
9+
- label: 'models'
10+
files:
11+
- '/cornac/models/*.py'
12+
- '/cornac/models/**/*.py'
13+
- label: 'datasets'
14+
files:
15+
- '/cornac/datasets/*.py'
16+
17+
template: |
18+
# What's Changed
19+
20+
$CHANGES
21+
22+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
23+
24+
categories:
25+
- title: 'Breaking'
26+
label: 'type: breaking'
27+
- title: 'Models'
28+
label: 'type: models'
29+
- title: 'Datasets'
30+
label: 'type: datasets'
31+
- title: 'New'
32+
label: 'type: feature'
33+
- title: 'Bug Fixes'
34+
label: 'type: bug'
35+
- title: 'Maintenance'
36+
label: 'type: maintenance'
37+
- title: 'Documentation'
38+
label: 'type: docs'
39+
- title: 'Other changes'
40+
- title: 'Dependency Updates'
41+
label: 'type: dependencies'
42+
collapse-after: 5
43+
44+
version-resolver:
45+
major:
46+
labels:
47+
- 'type: breaking'
48+
minor:
49+
labels:
50+
- 'type: feature'
51+
patch:
52+
labels:
53+
- 'type: bug'
54+
- 'type: maintenance'
55+
- 'type: docs'
56+
- 'type: dependencies'
57+
- 'type: security'
58+
- 'type: models'
59+
- 'type: datasets'
60+
61+
exclude-labels:
62+
- 'skip-changelog'

.github/workflows/release-drafter.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@ name: Release Drafter
22

33
on:
44
push:
5-
tags:
6-
- '*'
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
permissions:
11+
contents: read
712

813
jobs:
914
update_release_draft:
15+
permissions:
16+
contents: write
17+
pull-requests: write
1018
runs-on: ubuntu-latest
1119
steps:
1220
- name: Draft release
1321
uses: release-drafter/release-drafter@v5.25.0
1422
id: release_drafter
1523
with:
16-
config-name: workflows/release-drafter.yml
17-
disable-autolabeler: true
24+
config-name: draft-config.yml
1825
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)