feat: manage sub-issues through "slash commands" in issue comments #369
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.
related: #325
This new GitHub Actions workflow listens for issue comments and processes commands to add or remove sub-issues using the Javascript client. It includes error handling and posts feedback to the issue for auditability as well as if any errors occur during execution.
Acceptable input formats (and multiple space-delimited arguments can be provided):
Additionally, the entirety of a comment is scanned/parsed by the GHA - so the following is also valid:
ℹ️ Be mindful of underlying constraints enforced in GH regarding sub-issues:
Also, in this commit, the ability to assign sub-issues is open to a set of users defined in the workflow yaml as
AUTHORIZED_USERS
. The current collection identifies all epic owners and technical leaders for Notebooks 2.0.Please note the workflow YAML file has been named generically to potentially house other "slash commands" in the future although the current implementation is only focused on
/add-sub-issue
and/remove-sub-issue
.To "see" the code in action and test it out - you can see this issue here on a personal repo of mine I was using to test/construct the code: