Skip to content

Commit e0661f4

Browse files
authored
github/changelog: Dry-run changie merge & mention changie new (#36497)
* github/changelog: Dry-run changie merge * Mention 'changie new' command in comments
1 parent b3ee397 commit e0661f4

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/changelog.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,16 @@ jobs:
137137
return;
138138
}
139139
140+
const changieInstruction = 'You can use [`changie new`](https://changie.dev/cli/changie_new/) (without flags) to generate it. ';
141+
140142
if (backportLabel) {
141143
if (unreleasedChangesPresent) {
142144
await createOrUpdateChangelogComment("Please move the changelog entry from `./.changes/unreleased` to `./.changes/backported` for this change. If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label.");
143145
return;
144146
}
145147
146148
if (!backportedChangesPresent) {
147-
await createOrUpdateChangelogComment("Please add a changelog entry to `./.changes/backported` for this change. If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label.");
149+
await createOrUpdateChangelogComment("Please add a changelog entry to `./.changes/backported` for this change. "+ changieInstruction +"If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label.");
148150
return;
149151
}
150152
} else {
@@ -154,10 +156,15 @@ jobs:
154156
}
155157
156158
if (!unreleasedChangesPresent) {
157-
await createOrUpdateChangelogComment("Please add a changelog entry to `./.changes/unreleased` for this change. If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label.");
159+
await createOrUpdateChangelogComment("Please add a changelog entry to `./.changes/unreleased` for this change. "+ changieInstruction +"If you believe this change does not need a changelog entry, please add the 'no-changelog-needed' label.");
158160
return;
159161
}
160162
}
161163
162164
// Nothing to complain about, so delete any existing comment
163165
await createOrUpdateChangelogComment("", true);
166+
- name: Validate changie fragment is valid
167+
uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2.0.0
168+
with:
169+
version: latest
170+
args: merge --dry-run

0 commit comments

Comments
 (0)