Skip to content

Commit 861a507

Browse files
theakshaypantzakisk
authored andcommitted
docs(on-comment): warn against built-in commands
Add a note advising users not to use PAC's standard GitOps commands (/test, /retest, /cancel, /ok-to-test) as on-comment annotation patterns, since they are processed before on-comment matching. Signed-off-by: Akshay Pant <akpant@redhat.com>
1 parent 4b1d7f7 commit 861a507

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/content/docs/guides/event-matching/comment-and-label.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ The `on-comment` annotation follows the pull_request [Policy]({{< relref "/docs/
3636

3737
{{< callout type="info" >}}
3838
The `on-comment` annotation works with pull_request events. For push events, Pipelines-as-Code supports it only [when targeting the main branch without arguments]({{< relref "/docs/guides/gitops-commands/push-commands" >}}).
39+
40+
Avoid using Pipelines-as-Code's built-in [GitOps commands]({{< relref "/docs/guides/gitops-commands" >}}) — such as `/test`, `/retest`, `/cancel`, or `/ok-to-test` — as `on-comment` patterns. These commands are processed before `on-comment` matching and can lead to unexpected behavior.
3941
{{< /callout >}}
4042

4143
## Matching on pull request labels

0 commit comments

Comments
 (0)