GitHub Actions trigger checker
v1.0.0Will this GitHub Actions workflow run for this push or PR?
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
will_workflow_run Will this GitHub Actions workflow run, and which line decides?
Answers "why didn't my GitHub Actions workflow run?" or "will this push / PR trigger it?" exactly as GitHub filters events. Give the workflow YAML (or its path) and the push or pull request: branch or tag, changed files, activity type, commit message. Returns runs = true / false (null if a needed input is missing), the step-by-step reasoning, and the workflow line and pattern that decide. Covers: branches / branches-ignore / tags / tags-ignore / paths / paths-ignore with the exact glob rules ("*" stops at "/", "**", "?" and "+" repeat the previous character, [a-z], "!" exceptions where the las…
| Parameter | Type | Description |
|---|---|---|
action | string | pull_request(_target) activity type: opened (default), synchronize (new commits pushed), reopened, labeled, closed, ready_for_review, edited... |
branch | string | push: the pushed branch (e.g. "main", "feature/login"; "refs/heads/..." accepted). pull_request / pull_request_target: the BASE branch the PR targets (branch filters compare with the base, not the PR… |
changed_files | array | Files changed, relative to the repo root ("src/app.ts"). push: files changed by the pushed commits (e.g. `git diff --name-only <before>..<after>`); pull request: `git diff --name-only origin/<base>...… |
commit_message | string | Head commit message, to detect [skip ci], [ci skip], [no ci], [skip actions], [actions skip] and the "skip-checks: true" trailer. |
event | string | push (default), pull_request or pull_request_target. Other events are only checked for presence under on:. |
has_merge_conflict | boolean | pull_request: true if the PR currently has a merge conflict (pull_request workflows then do not run). |
ref | string | Alternative to branch/tag: a full ref, "refs/heads/main" or "refs/tags/v1.0". |
tag | string | push only: the pushed tag (e.g. "v1.2.0"). Give a branch or a tag, not both. |
tags_pushed_count | integer | push of tags: how many tags were pushed at once (GitHub creates no event above 3). |
workflow | string | Content of the workflow file (.github/workflows/*.yml). |
workflow_path | string | Or a path to the workflow file, if the server can read the project. |
which_workflows_run Which workflows run for this push or pull request?
Checks every workflow of a repository at once for one push or pull request and lists which ones run, which do not, and why (the deciding line of each). Give the workflows as { "<file name>": "<YAML>" }, or let the server read .github/workflows/ in "dir" (default: current directory). Same rules and inputs as will_workflow_run. Use it to predict the CI of a PR, or to find why a check never appears.
| Parameter | Type | Description |
|---|---|---|
action | string | pull_request(_target) activity type: opened (default), synchronize (new commits pushed), reopened, labeled, closed, ready_for_review, edited... |
branch | string | push: the pushed branch (e.g. "main", "feature/login"; "refs/heads/..." accepted). pull_request / pull_request_target: the BASE branch the PR targets (branch filters compare with the base, not the PR… |
changed_files | array | Files changed, relative to the repo root ("src/app.ts"). push: files changed by the pushed commits (e.g. `git diff --name-only <before>..<after>`); pull request: `git diff --name-only origin/<base>...… |
commit_message | string | Head commit message, to detect [skip ci], [ci skip], [no ci], [skip actions], [actions skip] and the "skip-checks: true" trailer. |
dir | string | Repository root to read .github/workflows/ from, when "workflows" is not given. Default: current directory. |
event | string | push (default), pull_request or pull_request_target. Other events are only checked for presence under on:. |
has_merge_conflict | boolean | pull_request: true if the PR currently has a merge conflict (pull_request workflows then do not run). |
ref | string | Alternative to branch/tag: a full ref, "refs/heads/main" or "refs/tags/v1.0". |
tag | string | push only: the pushed tag (e.g. "v1.2.0"). Give a branch or a tag, not both. |
tags_pushed_count | integer | push of tags: how many tags were pushed at once (GitHub creates no event above 3). |
workflows | object | The workflow files, as { ".github/workflows/ci.yml": "<content>" }. |
test_filter_patterns Test GitHub Actions branch / tag / path patterns
Tests a list of GitHub Actions filter patterns (as written under branches, tags or paths, "!" exceptions included) against branch names, tags or file paths, and says for each one whether it is selected and which pattern decides (the last matching one). Also returns the exact regular expression of each pattern and the error GitHub gives for an invalid one ("[]", ranges outside a-z/A-Z/0-9, trailing "\", "?" or "+" after "**"). Use it to write or fix a filter before pushing.
| Parameter | Type | Description |
|---|---|---|
names * | array | Branch names, tags or file paths to test. |
patterns * | array | Patterns in order, e.g. ["src/**", "!src/**/*.md"]. |
list | string | Which filter the patterns belong to (default "paths"). With -ignore lists, a name matched by the list is ignored. |