Hello Evan, To add bit more details here is all the relevant places you should look into:
The way we set it up is we first created a action that handles the gathers the data of a action/action run and then uses the api to trigger the action or re-run: https://github.com/apache/beam/blob/master/.github/actions/rerun-job-action/action.yml Using the comment trigger we start the job https://github.com/apache/beam/blob/master/.github/workflows/beam_PreCommit_Java_Csv_IO_Direct.yml#L31 but we use filtering conditional to target a specific workflow https://github.com/apache/beam/blob/master/.github/workflows/beam_PreCommit_Java_Csv_IO_Direct.yml#L76. The name provided in https://github.com/apache/beam/blob/master/.github/workflows/beam_PreCommit_Java_Csv_IO_Direct.yml#L65 is used alongside the matrix array member (the example im showing is a matrix job which adds complexity) which is passed to a composite action https://github.com/apache/beam/blob/master/.github/workflows/beam_PreCommit_Java_Csv_IO_Direct.yml#L83 which calls the re-run action within it as can be seen in https://github.com/apache/beam/blob/master/.github/actions/setup-action/action.yml#L61. Sorry for a lot of links but wanted to show you exact places and how its done Let me know if you have more questions, Vlado ________________________________ From: Evan Galpin <egal...@apache.org> Sent: Thursday, October 24, 2024 8:05:59 PM To: dev Subject: [EXTERNAL] Question About Comment Triggers for CI Hey folks, CI/CD question for you! What is the bot/service used that allows for PR authors to leave comments like Run Java PreCommit in order to retry specific Github Actions? This is super valuable for maintaining velocity of PR authors that are not yet committers, and would otherwise not be able to re-trigger failed/flaky tests. I’d like to emulate this behaviour for another Apache OSS project. Thanks! - Evan