Skip to content

Commit 57f5c99

Browse files
authored
Merge pull request #145 from seqeralabs/cursor/auto-changelog-0ccf
Add automated release draft changelog
2 parents 353e062 + 0d5dbd5 commit 57f5c99

4 files changed

Lines changed: 75 additions & 1 deletion

File tree

.github/CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ If you're not used to this workflow with git, you can start with some [docs from
2626
When you create a pull request with changes, [GitHub Actions](https://github.com/features/actions) will run automatic tests.
2727
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
2828

29+
## Changelog and release notes
30+
31+
Release notes are drafted automatically from merged pull requests using GitHub labels.
32+
33+
- Apply `bug`, `enhancement`, or `documentation` to have your PR included under the matching release notes section.
34+
- Apply `renovate-actions` for GitHub Actions and dependency-maintenance changes.
35+
- PRs without one of the release labels above are excluded from the automated changelog draft.
36+
- `CHANGELOG.md` is maintained at release time, so PR authors do not need to edit it for routine changes.
37+
2938
## Patch
3039

3140
:warning: Only in the unlikely and regretful event of a release happening with a bug.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/seqeralabs/n
1717
- [ ] If plugin declarations changed, update `CITATIONS.md`, `README.md`, and agent/context guidance in the same PR.
1818
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
1919
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
20-
- [ ] `CHANGELOG.md` is updated.
20+
- [ ] A release label (`bug`, `enhancement`, `documentation`, `renovate-actions`) is applied if this PR should appear in the automated changelog.
2121
- [ ] `README.md` is updated (including new tool citations and authors/contributors).

.github/release-drafter.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name-template: "$RESOLVED_VERSION"
2+
tag-template: "$RESOLVED_VERSION"
3+
category-template: "### $TITLE"
4+
change-template: "- [PR #$NUMBER](https://github.com/seqeralabs/nf-aggregate/pull/$NUMBER) - $TITLE"
5+
change-title-escapes: "\\<*_&"
6+
no-changes-template: "- No user-facing changes."
7+
template: |
8+
$CHANGES
9+
10+
### Contributors
11+
12+
$CONTRIBUTORS
13+
categories:
14+
- title: "Enhancements"
15+
labels:
16+
- "enhancement"
17+
- title: "Fixes"
18+
labels:
19+
- "bug"
20+
- title: "Documentation"
21+
labels:
22+
- "documentation"
23+
- title: "Maintenance"
24+
labels:
25+
- "renovate-actions"
26+
exclude-labels:
27+
- "duplicate"
28+
- "invalid"
29+
- "question"
30+
- "wontfix"
31+
version-resolver:
32+
minor:
33+
labels:
34+
- "enhancement"
35+
patch:
36+
labels:
37+
- "bug"
38+
- "documentation"
39+
- "renovate-actions"
40+
default: patch
41+
sort-by: "merged_at"
42+
sort-direction: "descending"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Update release draft
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request_target:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
- labeled
12+
- unlabeled
13+
- edited
14+
15+
permissions:
16+
contents: write
17+
pull-requests: read
18+
19+
jobs:
20+
update_release_draft:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: release-drafter/release-drafter@5de93583980a40bd78603b6dfdcda5b4df377b32 # v7.2.0

0 commit comments

Comments
 (0)