Skip to content

Commit ed9b530

Browse files
fix: Also skip draft enforcement for allowed bots
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3c5a904 commit ed9b530

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

validate-pr/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ runs:
3737
- name: Convert PR to draft
3838
if: >-
3939
steps.validate.outputs.was-closed != 'true'
40+
&& steps.validate.outputs.skipped != 'true'
4041
&& github.event.pull_request.draft == false
4142
shell: bash
4243
env:
@@ -47,6 +48,7 @@ runs:
4748
- name: Label and comment on draft conversion
4849
if: >-
4950
steps.validate.outputs.was-closed != 'true'
51+
&& steps.validate.outputs.skipped != 'true'
5052
&& github.event.pull_request.draft == false
5153
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5254
with:

validate-pr/scripts/validate-pr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ module.exports = async ({ github, context, core }) => {
2828
'renovate[bot]',
2929
];
3030
if (ALLOWED_BOTS.includes(prAuthor)) {
31-
core.info(`PR author ${prAuthor} is an allowed bot. Skipping validation.`);
31+
core.info(`PR author ${prAuthor} is an allowed bot. Skipping.`);
32+
core.setOutput('skipped', 'true');
3233
return;
3334
}
3435

0 commit comments

Comments
 (0)