Skip to content

feat: add the work-items action - #1

Merged
outofcoffee merged 4 commits into
mainfrom
add-work-items-action
Sep 17, 2026
Merged

outofcoffee merged 4 commits into
mainfrom
add-work-items-action

Conversation

@outofcoffee

Copy link
Copy Markdown
Contributor

A composite GitHub action that turns issue events into orchestrator work
items: an issue opened adds an item to the work items file, a closed issue
removes it. The file is the backlog the orchestrator works, so a backlog of
issues becomes the backlog it picks up, with no operator in between.

Key changes

  • work-items/ — the composite action. It resolves its own spinloop (a
    release, or a binary input), applies the label gate and template render
    in a small node helper, works the file via work add / work remove, and
    commits and pushes the result with the workflow's token.
  • work-items/README.md — a copy-paste workflow and the input reference.
  • .github/workflows/lint.yml — actionlint on push and PR, checking the
    workflows and the action's inputs through the e2e reference.
  • .github/workflows/e2e.yml — a manual end-to-end run that builds spinloop
    from source and works a real issue through the action: add, re-add no-op,
    remove, re-remove no-op, and the label gate.

A re-run of an event is a no-op. A close whose item is running is refused the
way work remove refuses it — the action does not stop a live item on its own.

Closes spinloop-ai/spinloop#223

Pete Cornish and others added 4 commits September 14, 2026 23:40
A composite GitHub action that turns issue events into orchestrator
work items: an issue opened adds an item to the work items file, a
closed issue removes it. The action carries its own spinloop, works the
file in the caller's repo, and commits and pushes the result with the
workflow's token.

The label gate and template render live in a small node helper; a
re-run of an event is a no-op, and a close whose item is running is
refused the way work remove refuses it. Adds a copy-paste workflow to
the README, an actionlint workflow, and a manual end-to-end workflow.
gh issue create does not support --json/--jq; it prints the issue's
URL. Read the number off the end of it.
@outofcoffee
outofcoffee marked this pull request as ready for review September 17, 2026 08:07
@outofcoffee
outofcoffee merged commit 37ff82c into main Sep 17, 2026
2 checks passed
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.

feat: add a GitHub action that adds and removes work items from issue events

1 participant