Actions: issue_comment not scheduling jobs; new workflow_dispatch creates 0‑job runs
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 1.4k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 24
Description
Summary
In our repo, two GitHub Actions behaviors look broken/non‑intuitive:
issue_commentevents do not schedule any jobs for a workflow that clearly matches the event. The same workflow always shows "push" runs with 0 jobs, but never anissue_commentrun with jobs.- For a newly added workflow,
gh workflow enable+gh workflow runcreates workflow runs that have 0 jobs. Only wiring the steps into an existing enabled workflow made the jobs run.
Repository
- grahama1970/graph-memory-operator (public)
Workflows
- Path:
.github/workflows/codex-trigger.ymlon:includes:issues: { types: [labeled] } issue_comment: { types: [created] }- Job
if:matches/codex ...and@codex ...comment prefixes (we tested both):(github.event_name == 'issue_comment' && ( startsWith(github.event.comment.body, '/codex start') || startsWith(github.event.comment.body, '/codex high') || startsWith(github.event.comment.body, '@codex start') || startsWith(github.event.comment.body, '@codex high') || startsWith(github.event.comment.body, '@codex') ))
- Path:
.github/workflows/smokes-youtube.yml- Newly added.
gh workflow enable+gh workflow run --ref maincreated runs, but with 0 jobs.
- Newly added.
What we did
- Posted
@codex start highand/codex start highcomments on open PRs (#21, #22) using repo owner account. - Labeled issues with
ready-for-agent. - Confirmed workflow file and conditions on default branch (main).
- Permissions: repo Settings → Actions → Allow all actions; Workflow permissions: read & write.
- Added explicit top-level/job-level permissions in the workflow:
issues: write,contents: read. - For the "enable" case, also tried
gh api repos/<repo>/actions/workflows/<id>/enableand manualworkflow_dispatch.
Observed
- For
.github/workflows/codex-trigger.yml, Actions UI shows only "push" runs; run IDs have 0 jobs:- Examples (from
gh run list --workflow .github/workflows/codex-trigger.yml):- 17837648581 (push) — status=completed, jobs=[]
- 17837622871 (push) — status=completed, jobs=[]
- Examples (from
- No "issue_comment" runs were scheduled despite comments matching the
if:. - For
.github/workflows/smokes-youtube.yml,workflow_dispatchcreated runs with 0 jobs. - As a control, when we moved the YouTube steps into an already-enabled workflow (
smokes-qa.yml), jobs executed as expected.
Expected
issue_commentshould schedule a job when the workflow matches and theif:evaluates true.- After enabling a new workflow,
workflow_dispatchshould create a run with at least one job, not a 0‑job run.
Notes / Run Context
- PRs used for comments: #21, #22 (same repo; not a fork).
- We can provide exact timestamps if needed; above IDs are from the same time window.
- We also tested a repository_dispatch path (separate workflow) and it ran correctly — so runners and permissions are generally working.
Ask
- Are we hitting a product limitation around
issue_commentfor this repo/config (e.g., security hardening), or is this a bug? - Why would
workflow_dispatchruns be created with 0 jobs aftergh workflow enable, and what’s the correct way to ensure immediate scheduling without manual UI clicks?
Thanks for pointers; happy to attach sanitized workflow YAML and add more IDs if helpful.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with .github/workflows/codex-trigger.yml and .github/workflows/smokes-youtube.yml, then reproduce the reported cases with issue_comment and workflow_dispatch using the listed gh commands and run IDs. Compare them with the working smokes-qa.yml and repository_dispatch workflow; done means identifying whether the zero-job runs are caused by workflow configuration, scheduling behavior, or a runner/product bug.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100