Skip to content

Commit 419ca16

Browse files
hesreallyhimclaude
andcommitted
feat: exempt repo owner from submission enforcement
Skip all cooldown/violation checks when the actor is the repository owner. This allows the admin to submit issues and PRs without triggering enforcement protocols. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f88df0a commit 419ca16

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/submission-enforcement-v2.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,14 @@ jobs:
207207
core.setOutput('repo_url', '');
208208
core.setOutput('cooldown_level', '');
209209
210+
// ---- Skip repo owner/admin ----
211+
const REPO_OWNER = context.repo.owner;
212+
if (author.toLowerCase() === REPO_OWNER.toLowerCase()) {
213+
console.log(`Skipping enforcement for repo owner: ${author}`);
214+
core.setOutput('allowed', 'true');
215+
return;
216+
}
217+
210218
// ---- PR: skip bots ----
211219
if (isPR && context.payload.pull_request.user.type === 'Bot') {
212220
console.log(`Skipping bot PR by ${author}`);

0 commit comments

Comments
 (0)