Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/changelog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = async ({github, context, core}) => {
\`\`\`md
- ${title}. (${PR_LINK})
\`\`\`
If none of the above apply, you can opt out by adding _#skip-changelog_ to the PR description.
If none of the above apply, you can opt out by adding the _skip-changelog_ label to the PR.
`;
}

Expand Down Expand Up @@ -51,8 +51,8 @@ module.exports = async ({github, context, core}) => {
}

async function checkChangelog(pr) {
if ((pr.body || '').includes('#skip-changelog')) {
core.info('#skip-changelog is set. Skipping the checks.');
const hasSkipLabel = (pr.labels || []).some(label => label.name === 'skip-changelog');
if (hasSkipLabel) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Changelog"
on:
pull_request:
types: [opened, synchronize, reopened, edited, ready_for_review]
types: [opened, synchronize, reopened, edited, ready_for_review, labeled, unlabeled]
merge_group:

jobs:
Expand Down
Loading