Creating an issue from a pull request
In this section, we will create a workflow that fires on issue comments. The workflow will have the ability to be able to create an issue on the repository and will only do so if the trigger word is in the payload.
We’ll do this as the ability to be able to call out house cleaning opportunities on a pull request. Our use case is that we want to be able to not pollute a pull request with requests when we notice issues outside of the current pull request’s intended result (e.g., upgrade a common lib, fix a code smell, or an opportunity to reduce the cognitive complexity of some code) and we want to call them out as additional issues to be solved.
To do this, we’re going to create a workflow that subscribes to issue comment creation events.
Subscribing to the event
In this section, we’re going to create a workflow that will run when issue comments are created on pull requests. To do this, we need to understand...