smith: answer @smith in any repo (smith-dispatch.yml) #10
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/ci!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "smith-everywhere"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@smithin any repo, with no caller file in the repo. Thesmith-hookservice (noe.trevino/forgejo PR, same name) startssmith-dispatch.ymlhere for each mention by a user with write access.Changes
smith-dispatch.yml(new): aworkflow_dispatchwith the inputsrepo,number,comment-id,review,actor. It callssmith.ymlwithmention: true,persona: agent-smith, andaddressee: Mr. Trevinofor you.smith.yml: newtarget-*inputs. Whentarget-repois set, the mention jobs act on that repo.forgegets the repo fromFORGE_REPO. The gate reads the title, the text, the comment, and the default branch through the API. Checkout usesrepository: target-repo. The scripts come from the ref of the run.forge:issue view --field,comment-view ID,repo --field default-branch|url.target-repo, every expression falls back to the old event value.Found while testing (Forgejo 15)
with:block of a called workflow,github.*is empty.inputs.*works.Tests
python3 -m unittest discover -s smith: 13 tests pass.Before merge
Merge this PR before the hook goes live. The hook dispatches
smith-dispatch.ymlonmain.