Skip to content

Commit 83f4332

Browse files
authored
Don't require changelogs for draft PRs (#5202)
Maybe I should do this in the JS bit, not sure.
1 parent 9611fd5 commit 83f4332

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/check-changelog.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717

1818
- name: Enforce New File or 'No Changelog Required' Label
1919
uses: actions/github-script@v6
20+
# don't require changelogs for draft PRs
21+
if: github.event.pull_request.draft == false
2022
with:
2123
script: |
2224
function shouldCheckChangelog() {
@@ -49,4 +51,4 @@ jobs:
4951
checkChangelog();
5052
} else {
5153
core.info("PR contains the label 'No Changelog Required', skipping changelog check.");
52-
}
54+
}

0 commit comments

Comments
 (0)