File tree Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 1+ changelog :
2+ exclude :
3+ authors :
4+ - dependabot[bot]
5+ - costellobot
6+ - costellobot[bot]
7+ - github-actions[bot]
8+ - renovate[bot]
Original file line number Diff line number Diff 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}`);
You can’t perform that action at this time.
0 commit comments