I’d like to propose a new feature for www.github.com UI related to Actions.
We’d like to trigger a GitHub Action from an issue UI or pull request UI in a easy single click way, that would be used many times a day by each user.
Let’s imagine a new
pull_request trigger type, something like:
on: issues: types: [manual_dispatch] pull_requests: types: [manual_dispatch]
UI on www.github.com would recognize such a trigger and create a section in the right menu on the issue/pull_request page:
Reviewers... Assignees... Labels... Projects... Milestone... Linked issues... **Actions** * First action name - clickable link * Second action name - clickable link Notifications...
Dispatched action would provide usual issue/pull_request payload directly.
As this should be very easy to use, no parameters are expected. Comments could be used instead to deal with parametrized actions.
I know I already can:
- Manually trigger a workflow from Actions tab. That’s not easy for our use case as context must be provided as a parameter and the UI is far away from where the user is.
- Trigger on
unlabeledevent. That’s also not easy, as the list of labels is long and the label is preserved on the issue without any state meaning. It’s hard to run the same thing twice over time.
- Trigger on
issue_comment. That’s powerful, but still not easy enough for users as we need to train users to use the well known comments.