Skip to content

Commit 5e98945

Browse files
committed
feat: Add PipelineRun to create JIRA tickets via comments
- Introduced a Tekton `PipelineRun` for creating JIRA tickets. - The pipeline is triggered by a `/jira` comment on a pull request using Pipelines-as-Code. - This automated the creation of JIRA issues directly from GitHub, streamlining the developer workflow. Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent 46067b2 commit 5e98945

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.tekton/jira.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
apiVersion: tekton.dev/v1
3+
kind: PipelineRun
4+
metadata:
5+
name: jira
6+
annotations:
7+
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/chmouel/pipelinerun-jira-pullrequest/main/tekton/jira.yaml"
8+
pipelinesascode.tekton.dev/on-comment: "^/jira"
9+
pipelinesascode.tekton.dev/max-keep-runs: "2"
10+
spec:
11+
pipelineRef:
12+
name: create-jira-from-pr
13+
params:
14+
- name: PR_URL
15+
value: "{{ repo_url }}/pull/{{ pull_request_number }}"
16+
- name: GITHUB_TOKEN_SECRET
17+
value: "{{ git_auth_secret }}"
18+
- name: GITHUB_TOKEN_SECRET_KEY
19+
value: "git-provider-token"
20+
- name: AI_TOKEN_SECRET
21+
value: "gemini"
22+
- name: AI_TOKEN_SECRET_KEY
23+
value: "secret"
24+
- name: JIRA_ENDPOINT
25+
value: "https://issues.redhat.com"
26+
- name: JIRA_TOKEN_SECRET
27+
value: "jira"
28+
- name: JIRA_TOKEN_SECRET_KEY
29+
value: "secret"
30+
- name: JIRA_USER_EMAIL
31+
32+
- name: JIRA_PROJECT
33+
# value: "TP"
34+
value: "SRVKP"
35+
- name: JIRA_COMPONENT
36+
# value: "Internal Tools"
37+
value: "Pipelines as Code"
38+
- name: PR_QUERY
39+
value: "{{ trigger_comment }}"
40+
- name: CREATE_IN_JIRA
41+
value: "true"

0 commit comments

Comments
 (0)