Reader small image

You're reading from  Mastering GitHub Actions

Product typeBook
Published inMar 2024
PublisherPackt
ISBN-139781805128625
Edition1st Edition
Concepts
Right arrow
Author (1)
Eric Chapman
Eric Chapman
author image
Eric Chapman

Eric Chapman holds the position of Senior Delivery and Engineering Manager at a leading retailer in home improvement and trade in Australia and New Zealand. He primarily oversees integration, encompassing platforms such as API Gateway, EventMesh, authorization systems, developer portals, and extract, transform and load (ETL) platforms. Eric leads a team with a broad range of responsibilities and skills, overseeing all business areas. Previously, Eric and his team were instrumental in designing and developing an in-house point-of-sale system. This singular application accommodated four countries' tax and auditing requirements, supported multiple payment processing gateways, and incorporated a range of unique market-leading features.
Read more about Eric Chapman

Right arrow

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...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering GitHub Actions
Published in: Mar 2024Publisher: PacktISBN-13: 9781805128625

Author (1)

author image
Eric Chapman

Eric Chapman holds the position of Senior Delivery and Engineering Manager at a leading retailer in home improvement and trade in Australia and New Zealand. He primarily oversees integration, encompassing platforms such as API Gateway, EventMesh, authorization systems, developer portals, and extract, transform and load (ETL) platforms. Eric leads a team with a broad range of responsibilities and skills, overseeing all business areas. Previously, Eric and his team were instrumental in designing and developing an in-house point-of-sale system. This singular application accommodated four countries' tax and auditing requirements, supported multiple payment processing gateways, and incorporated a range of unique market-leading features.
Read more about Eric Chapman