Generic question: Execution based on the PR comments? #490
-
Can the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @gowgopal83, great Q and I understand wanting the flexibility of triggering Terraform/OpenTofu commands directly via PR comments (i.e., This has come up a couple of times previously, and the main problem has been the In place of PR comments, I'd recommend PR label-based workflows to trigger actions, as shown in this example with |
Beta Was this translation helpful? Give feedback.
-
Apologies for the delayed response. I followed the example and created the workflow below, which successfully runs the Terraform plan and posts the output to the PR. However, when I try to trigger it using
|
Beta Was this translation helpful? Give feedback.
Hi @gowgopal83, great Q and I understand wanting the flexibility of triggering Terraform/OpenTofu commands directly via PR comments (i.e.,
issue_comment
), similar to Atlantis PR automation.This has come up a couple of times previously, and the main problem has been the
issue_comment
event trigger is woefully limited compared to the equivalentpull_request
one. That's not to say it isn't possible, as demonstrated by this GitHub blog post on CI/CD automation with IssueOps.In place of PR comments, I'd recommend PR label-based workflows to trigger actions, as shown in this example with
run-plan
andrun-apply
"commands" affecting how the workflow is run.