Skip to content

feat: add skip-actors bypass for bot PRs (#32) - #33

Merged
oto-macenauer-absa merged 2 commits into
mainfrom
feature/32-skip-actors-bypass
Aug 5, 2026
Merged

feat: add skip-actors bypass for bot PRs (#32)#33
oto-macenauer-absa merged 2 commits into
mainfrom
feature/32-skip-actors-bypass

Conversation

@oto-macenauer-absa

@oto-macenauer-absa oto-macenauer-absa commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

@
Closes #32.

Problem

Dependabot-opened PRs fail the action under default config:

  • Issue Reference (default on) — bot PRs never link an issue.
  • PR Title (conventional) — default Bump X from Y to Z has no type: prefix.
  • Description sections / release notes — bot body lacks required headings.

Change

Two bypass inputs that skip all checks and report a pass:

  • pr-author + skip-actors — comma-separated author logins, default dependabot[bot].
  • labels + skip-labels — comma-separated PR labels, default empty (opt-in), e.g. skip-checks.

check.sh short-circuits to a pass on either match (writes a "skipped" summary + outputs, exits 0). The release-notes step is gated off via a Detect bypass composite step that evaluates both actor and label rules.

Tests

Orchestrator cases for both dimensions: match bypasses a failing PR, non-match still fails, empty value disables the bypass, CSV whitespace tolerated. Full suite passes (22/22 orchestrator).

Docs

README input tables + example workflows updated (check_pr_requirements.yml wires labels via join(...labels.*.name, ","); absa_aligned.yml gets the actor bypass).

🤖 Generated with Claude Code
@

feat: add skip-actors and skip-labels bypass for bot/exempt PRs (#32)

Dependabot-opened PRs fail the default checks: they never link an
issue, and their default title (Bump X from Y to Z) is not a
conventional commit. Add two bypass inputs that skip all checks and
report a pass:

- skip-actors: comma-separated PR-author logins (default dependabot[bot]);
  needs pr-author wired.
- skip-labels: comma-separated PR labels (default empty); needs labels
  wired.

check.sh short-circuits to a pass on either match; the release-notes
step is gated off via the Detect bypass step, which evaluates both.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@
@oto-macenauer-absa
oto-macenauer-absa force-pushed the feature/32-skip-actors-bypass branch from 53f887c to ecc5fe3 Compare July 15, 2026 12:07

@tmikula-dev tmikula-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting to see tool written in the shell. Python would make control flow of this whole tool IMO "cleaner" and easier to test than bash. That is why the changes looked "weird" in the first place. However, understand bash's advantage that it runs natively on every GitHub Actions runner with zero setup.

Please see my comments.

Comment thread examples/absa_aligned.yml
Comment thread tests/test_check_orchestrator.sh Outdated
Comment thread action.yml
- Default `skip-actors` to empty so both bypass inputs are opt-in and
  consistent; `dependabot[bot]` is now shown only in the examples/docs.
- Wire `labels` and add a `skip-labels` example to examples/absa_aligned.yml.
- Drop issue numbers from test section comments.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XhWUoyUSda5v2abkVMdTCg
@oto-macenauer-absa
oto-macenauer-absa merged commit bc4c42a into main Aug 5, 2026
9 checks passed
@oto-macenauer-absa
oto-macenauer-absa deleted the feature/32-skip-actors-bypass branch August 5, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add actor bypass to skip checks for bot PRs (e.g. Dependabot)

2 participants