Route new issues without the blocked actions-cool action (fixes #137) - #138
Draft
skilledwolf wants to merge 1 commit into
Draft
Route new issues without the blocked actions-cool action (fixes #137)#138skilledwolf wants to merge 1 commit into
skilledwolf wants to merge 1 commit into
Conversation
…elper
Every new issue made the "Simulation Help Router" workflow fail before
its first step ran: the runner could not download the third-party
actions-cool/issues-helper action ("Repository access blocked"), so the
issue author received a failure e-mail and nobody was assigned.
Read the "Method" dropdown directly from the issue body (GitHub renders
each form field as a "### <label>" heading followed by the value) with a
small awk script. The body is passed through an environment variable so
issue text cannot inject shell code. While here:
- give gh the repository via GH_REPO, which it needs because the job has
no checkout;
- match the SSE and Worm choices on their abbreviation, so "Quantum Monte
Carlo (Worm)" no longer falls into the earlier SSE branch.
Issues without a Method field and the "Other" choice keep going to the
default assignee, as before.
Fixes ALPSim#137
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every new issue made the "Simulation Help Router" workflow fail before its first step ran: the runner cannot download
actions-cool/issues-helper("Repository access blocked"), so the reporter got a failure e-mail and nobody was assigned.GH_REPOsogh issue editworks in a job without a checkoutIssues without a Method field and the "Other" choice keep going to the default assignee, as before.
Testing
actionlint .github/workflows/issue-triage.ymlrun:scripts locally with a stubbedghagainst all six dropdown values, a CRLF body, the body of [Bug]: Bug results in error from failed workflow #137, an empty body and an injection attempt; each routed to the expected maintainer with no side effectsCloses #137