Add pull_request event trigger to ATF tests pipeline (#16632)

Previously the ATF tests pipeline only ran on `/run-atf-tests` comment.
Add on-event and on-target-branch annotations so it also triggers
automatically on pull_request events targeting devel.

Signed-off-by: Adrià Sala <22398818+adrisala@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adrià Sala
2026-09-15 12:38:26 +02:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 88faef6e5d
commit fb4c3ab0c3
+7 -2
View File
@@ -10,7 +10,10 @@ metadata:
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/cancel-in-progress: 'true'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-event: "[pull_request]"
pipelinesascode.tekton.dev/on-target-branch: "[devel]"
pipelinesascode.tekton.dev/on-comment: "^/run-atf-tests$"
pipelinesascode.tekton.dev/on-path-change: "[awx/**, requirements/**, .tekton/**]"
pipelinesascode.tekton.dev/target-namespace: ansible-ci-tenant
labels:
appstudio.openshift.io/application: '{{repo_owner}}'
@@ -27,7 +30,7 @@ spec:
- name: name
value: aap-api-tests
- name: bundle
value: quay.io/aap-ci/tekton-catalog/pipeline/test/aap-api-tests:0.1@sha256:dd9512fe69efeb4392c99ea311ea84f12d2f01ddd44251fc584d619441e32b49
value: quay.io/aap-ci/tekton-catalog/pipeline/test/aap-api-tests:0.1@sha256:3e0da91fe167180db139690585c4d3ce0a38d641af77b887d205193f532cd4e9
- name: kind
value: pipeline
- name: secret
@@ -51,8 +54,10 @@ spec:
value: "{{pull_request_number}}"
- name: aap-dev-component-source-name
value: "controller"
- name: pytest-expression
value: "not Gateway"
- name: pytest-number-of-parallel-processes
value: "6"
value: "2"
workspaces:
- name: workspace