Skip to content

Commit 240b8eb

Browse files
1 parent 8951dfc commit 240b8eb

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

.github/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot[bot]
5+
- costellobot
6+
- costellobot[bot]
7+
- github-actions[bot]
8+
- renovate[bot]

.github/workflows/release.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,17 @@ jobs:
5050
const draft = process.env.DRAFT === 'true';
5151
const version = process.env.VERSION;
5252
const tag_name = `v${version}`;
53+
const target_commitish = process.env.DEFAULT_BRANCH;
5354
const name = tag_name;
5455
55-
const { data: notes } = await github.rest.repos.generateReleaseNotes({
56-
owner,
57-
repo,
58-
tag_name,
59-
target_commitish: process.env.DEFAULT_BRANCH,
60-
});
61-
62-
const body = notes.body
63-
.split('\n')
64-
.filter((line) => !line.includes(' @costellobot '))
65-
.filter((line) => !line.includes(' @dependabot '))
66-
.filter((line) => !line.includes(' @github-actions '))
67-
.filter((line) => !line.includes(' @renovate[bot] '))
68-
.join('\n');
69-
7056
const { data: release } = await github.rest.repos.createRelease({
7157
owner,
7258
repo,
7359
tag_name,
60+
target_commitish,
7461
name,
75-
body,
7662
draft,
63+
generate_release_notes: true,
7764
});
7865
7966
core.notice(`Created release ${release.name}: ${release.html_url}`);

0 commit comments

Comments
 (0)