Commit graph

122 commits

Author SHA1 Message Date
0ae2d909bc
fix: use commits with slightly invalid messages in release notes (#105)
Fixes a bug where commits with messages that do not strictly conform to
conventional commits spec would be ignored. This could easily happen
while parsing footers like "Closes #xx" which would start the footer
section, while continuing with the body afterwards.

This solution has two downsides:

- these warnings are not surfaced to the user.
- If a `BREAKING CHANGE` footer exists after the parsing issue it is ignored

Co-authored-by: jo <ljonas@riseup.net>
2024-11-15 17:25:15 +01:00
renovate[bot]
faf28fd314
deps: update module github.com/google/go-github/v65 to v66 (#103)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-15 15:10:52 +01:00
renovate[bot]
147148c891
chore(config): migrate config .github/renovate.json5 (#104)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-15 15:10:33 +01:00
renovate[bot]
79c5b13e1f
deps: update codecov/codecov-action action to v5 (#102)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-15 15:09:17 +01:00
renovate[bot]
b6d6270d9e
deps: update actions/checkout digest to 11bd719 (#89)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-15 14:52:43 +01:00
renovate[bot]
59aa7aae02
deps: update actions/setup-go digest to 41dfa10 (#90)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-15 14:52:20 +01:00
renovate[bot]
b55cba293f
deps: update dependency golangci/golangci-lint to v1.62.0 (#98)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-10 22:51:51 +00:00
05be3684c6
chore(main): release v0.4.2 (#97)
Co-authored-by: releaser-pleaser <>
2024-11-08 13:28:52 +01:00
cbfacc894b
fix(action): container image reference used wrong syntax (#96)
The current value caused the following error when running the action in
a different repository:

    Error: 'ghcr.io/apricote/releaser-pleaser:v0.4.1' should be either '[path]/Dockerfile' or 'docker://image[:tag]'.

Not sure why this did not come up before, as we are also using the same
format for the CI in this repository, even if we use another tag.
2024-11-08 12:27:09 +00:00
renovate[bot]
71351140f6
deps: update dependency rust-lang/mdbook to v0.4.42 (#95)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-07 17:23:27 +00:00
renovate[bot]
8c7b9fcf93
deps: update dependency rust-lang/mdbook to v0.4.41 (#94)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-06 19:22:01 +00:00
renovate[bot]
db4aebcc73
deps: update module github.com/xanzy/go-gitlab to v0.113.0 (#93)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-05 16:50:37 +00:00
renovate[bot]
8493c5a625
deps: update registry.gitlab.com/gitlab-org/release-cli docker tag to v0.19.0 (#88)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-21 06:09:18 +00:00
1883466c3e
chore(main): release v0.4.1 (#87)
Co-authored-by: releaser-pleaser <>
2024-10-17 19:24:24 +02:00
3caa7364ee
fix(gitlab): release not created when release pr was squashed (#86)
When the release pull request was squashed on GitLab, the release
creation fails with error

    Error: failed to create pending releases: pull request is missing the merge commit

This fixes the problem by checking both `MergeCommitSHA` and
`SquashCommitSHA` and using whichever is set.
2024-10-17 17:22:03 +00:00
renovate[bot]
763018ff9b
deps: update module github.com/yuin/goldmark to v1.7.8 (#84)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-16 12:43:19 +00:00
renovate[bot]
acff7ea830
deps: update module github.com/yuin/goldmark to v1.7.7 (#83)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-15 11:11:20 +00:00
renovate[bot]
2a4f2b97d1
deps: update module github.com/xanzy/go-gitlab to v0.112.0 (#82)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 18:42:23 +00:00
renovate[bot]
755d9b125b
deps: update actions/checkout digest to eef6144 (#79)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 15:02:39 +02:00
renovate[bot]
de4f26225a
deps: update golangci/golangci-lint-action digest to 971e284 (#77)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 15:01:17 +02:00
renovate[bot]
da6257e618
deps: update codecov/codecov-action digest to b9fd7d1 (#76)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 14:19:09 +02:00
renovate[bot]
cd412ba59f
deps: update module github.com/yuin/goldmark to v1.7.6 (#81)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-12 15:21:35 +00:00
renovate[bot]
40a15dfafa
deps: update module github.com/xanzy/go-gitlab to v0.111.0 (#80)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-10 18:21:50 +00:00
renovate[bot]
9bb117c7b9
deps: update module github.com/xanzy/go-gitlab to v0.110.0 (#78)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 13:10:54 +00:00
4cc45ea244
chore(main): release v0.4.0 (#62)
Co-authored-by: releaser-pleaser <>
2024-09-25 13:06:06 +02:00
89dc9e3fe8
feat(gitlab): support self-managed instances (#75)
Support self-managed gitlab instances by reading the GitLab CI environment
variables.
2024-09-25 12:41:11 +02:00
55083f2a59
docs: guide for extra-files (#74) 2024-09-25 12:09:27 +02:00
08505a55cd
ci(mirror): fix missing lfs files on push (#73) 2024-09-25 09:35:59 +00:00
1a370c39dc
docs: GitLab tutorial and CI/CD component reference (#72) 2024-09-25 11:23:04 +02:00
2621c48d75
feat(changelog): omit version heading in forge release notes
The forge ui usually shows the release name right above the description,
so this removes an unecessary duplicate bit of information.

In addition this also cleans up the changelog interface a bit and moves
functionality where it belongs. Prepares a bit for custom changelogs in
the future.

Closes #32
2024-09-22 14:00:30 +02:00
renovate[bot]
997b6492de
deps: update dependency golangci/golangci-lint to v1.61.0 (#70)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-21 11:44:03 +00:00
renovate[bot]
937b885696
deps: update module github.com/google/go-github/v63 to v65 (#69)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-21 13:40:15 +02:00
renovate[bot]
4402612538
deps: update actions/configure-pages action to v5 (#68)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-21 13:37:03 +02:00
renovate[bot]
6a2f536650
deps: pin dependencies (#66)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-21 13:35:27 +02:00
renovate[bot]
90685994d7
deps: update module google.golang.org/protobuf to v1.33.0 [security] (#65)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-21 11:33:15 +00:00
7bd752c2f5
chore: setup renovate (#64) 2024-09-21 13:29:26 +02:00
dc1903c4b4
chore(main): release v0.4.0-beta.1 (#56)
Co-authored-by: releaser-pleaser <>
2024-09-15 21:00:06 +02:00
2567293368
fix: multiple extra-files are not evaluated properly (#61)
Quoting issues caused multiple extra-files to be ignored.
2024-09-15 20:59:17 +02:00
7a3d46eac7
ci: update version reference in gitlab ci/cd component (#60) 2024-09-15 18:58:38 +02:00
8d7b1c9580
feat(gitlab): add CI/CD component (#55)
This adds a GitLab CI/CD component that can be `included` in users
GitLab CI configuration to integrate releaser-pleaser.

Unlike the GitHub Action, this can not easily run whenever a merge
request description is changed, only when changes are pushed to main.
2024-09-15 18:54:38 +02:00
61cf12a052
feat: add shell to container image (#59)
Images used in GitLab CI need to have a shell included, otherwise the
job could not be started.

This replaces the default `cgr.dev/chainguard/static` base image with
`cgr.dev/chainguard/busybox`. Busybox is the smallest image that
includes a functional shell.

Needed for #55.
2024-09-15 18:46:45 +02:00
7b49e8ea0c
ci: job name may not contain dot (#58) 2024-09-15 18:43:16 +02:00
da0c07497b
ci: push all changes to gitlab.com mirror (#57)
GitLab only considers repos on the current instance for its CI/CD
catalog. We want to publish a GitLab CI/CD component for #4.
2024-09-15 18:41:32 +02:00
84d4dd9d26
chore(main): release v0.4.0-beta.0 (#50)
Co-authored-by: releaser-pleaser <>
2024-09-15 17:18:24 +02:00
ee83cec049
fix(gitlab): use project path wherever possible (#54)
Turns out that all we need is the path, and not the project id. The path
is way more user friendly, and we can easily get it from a CI variable
or combine it from the namespace & project name.
2024-09-08 21:07:03 +02:00
634eac3b76
fix(parser): invalid handling of empty lines (#53)
GitLab generates commit messages of the pattern "scope: message\n" if no
body is present. This throws up the conventional commits parser we use,
and results in the error message "missing a blank line".

We now `strings.TrimSpace()` the commit message to avoid this problem.
2024-09-08 21:05:18 +02:00
ee5c7aa142
fix(cli): command name in help output (#52) 2024-09-08 21:01:46 +02:00
2fba5414e5
fix(gitlab): hardcoded project id (#51)
The GitLab project ID was still hardcoded to my playground project on
GitLab.com.

This commit instead reads from the predefined GitLab CI/CD variable for
the projects ID (`CI_PROJECT_ID`).
2024-09-08 20:03:19 +02:00
48d9ede0a2
feat: add support for GitLab repositories (#49) 2024-09-07 21:54:25 +02:00
5ea41654a7
fix(parser): continue on unparsable commit message (#48)
We should not fail the whole process if a single commit message is
unparsable.

Instead we now log the issue and ignore the commit.
2024-09-07 21:51:15 +02:00