Skip to content

Commit 576f30d

Browse files
author
sangeet-joy_xero
committed
commented the JIRA workflow
1 parent 975d497 commit 576f30d

File tree

3 files changed

+125
-125
lines changed

3 files changed

+125
-125
lines changed
Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
name: Create Issue In Jira
1+
# name: Create Issue In Jira
22

3-
on:
4-
issues:
5-
types:
6-
- opened
7-
pull_request_target:
8-
types:
9-
- opened
10-
workflow_call:
3+
# on:
4+
# issues:
5+
# types:
6+
# - opened
7+
# pull_request_target:
8+
# types:
9+
# - opened
10+
# workflow_call:
1111

12-
jobs:
13-
create_jira_issue:
14-
name: Create Jira Issue
15-
runs-on: ubuntu-latest
16-
permissions: write-all
12+
# jobs:
13+
# create_jira_issue:
14+
# name: Create Jira Issue
15+
# runs-on: ubuntu-latest
16+
# permissions: write-all
1717

18-
steps:
18+
# steps:
1919

20-
- name: Checkout
21-
uses: actions/checkout@master
20+
# - name: Checkout
21+
# uses: actions/checkout@master
2222

23-
- name: Login
24-
uses: atlassian/gajira-login@master
25-
env:
26-
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
27-
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
28-
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
23+
# - name: Login
24+
# uses: atlassian/gajira-login@master
25+
# env:
26+
# JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
27+
# JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
28+
# JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
2929

30-
# Create new ticket in Jira
31-
- name: Create
32-
id: create
33-
uses: atlassian/gajira-create@v3
34-
with:
35-
project: PETOSS
36-
issuetype: Story
37-
summary: ${{ github.event.repository.name }} ${{ github.event.issue.number || github.event.pull_request.number }} ${{ github.event.issue.title || github.event.pull_request.title }}
38-
description: ${{ github.event.issue.body || github.event.pull_request.body }}
30+
# # Create new ticket in Jira
31+
# - name: Create
32+
# id: create
33+
# uses: atlassian/gajira-create@v3
34+
# with:
35+
# project: PETOSS
36+
# issuetype: Story
37+
# summary: ${{ github.event.repository.name }} ${{ github.event.issue.number || github.event.pull_request.number }} ${{ github.event.issue.title || github.event.pull_request.title }}
38+
# description: ${{ github.event.issue.body || github.event.pull_request.body }}
3939

40-
# Add created jira id as comment in issue thread. This allows us to easily
41-
# retrieve the id when the issue state is updated, i.e. closed
42-
- name: Add jira ticket id as comment
43-
uses: peter-evans/create-or-update-comment@v2
44-
with:
45-
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
46-
body: ${{ steps.create.outputs.issue }}
47-
token: ${{ secrets.GITHUB_TOKEN }}
40+
# # Add created jira id as comment in issue thread. This allows us to easily
41+
# # retrieve the id when the issue state is updated, i.e. closed
42+
# - name: Add jira ticket id as comment
43+
# uses: peter-evans/create-or-update-comment@v2
44+
# with:
45+
# issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
46+
# body: ${{ steps.create.outputs.issue }}
47+
# token: ${{ secrets.GITHUB_TOKEN }}
4848

49-
# Add additional comment to let user know what is happening
50-
- name: Add additional comment notifying user that a ticket has been created
51-
uses: peter-evans/create-or-update-comment@v2
52-
with:
53-
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
54-
body: Thanks for raising an issue, a ticket has been created to track your request
55-
token: ${{ secrets.GITHUB_TOKEN }}
49+
# # Add additional comment to let user know what is happening
50+
# - name: Add additional comment notifying user that a ticket has been created
51+
# uses: peter-evans/create-or-update-comment@v2
52+
# with:
53+
# issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
54+
# body: Thanks for raising an issue, a ticket has been created to track your request
55+
# token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
name: Update Issue In Jira When Issue Closed
1+
# name: Update Issue In Jira When Issue Closed
22

3-
on:
4-
issues:
5-
types:
6-
- closed
7-
pull_request_target:
8-
types:
9-
- closed
3+
# on:
4+
# issues:
5+
# types:
6+
# - closed
7+
# pull_request_target:
8+
# types:
9+
# - closed
1010

11-
workflow_call:
12-
jobs:
13-
update_jira_status:
14-
name: Set Jira Status To Done
15-
runs-on: ubuntu-latest
16-
permissions: write-all
11+
# workflow_call:
12+
# jobs:
13+
# update_jira_status:
14+
# name: Set Jira Status To Done
15+
# runs-on: ubuntu-latest
16+
# permissions: write-all
1717

18-
steps:
19-
# Look through all comments in issue and get contents of comment that
20-
# includes text PETOSS
21-
- name: Find Jira ticket Id in issue comments
22-
uses: peter-evans/find-comment@v2
23-
id: fc
24-
with:
25-
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
26-
body-includes: PETOSS
27-
comment-author: github-actions[bot]
28-
direction: last
18+
# steps:
19+
# # Look through all comments in issue and get contents of comment that
20+
# # includes text PETOSS
21+
# - name: Find Jira ticket Id in issue comments
22+
# uses: peter-evans/find-comment@v2
23+
# id: fc
24+
# with:
25+
# issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
26+
# body-includes: PETOSS
27+
# comment-author: github-actions[bot]
28+
# direction: last
2929

30-
- name: Checkout
31-
uses: actions/checkout@master
30+
# - name: Checkout
31+
# uses: actions/checkout@master
3232

33-
- name: Login
34-
uses: atlassian/gajira-login@master
35-
env:
36-
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
37-
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
38-
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
33+
# - name: Login
34+
# uses: atlassian/gajira-login@master
35+
# env:
36+
# JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
37+
# JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
38+
# JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
3939

40-
# Transition jira ticket identified in first step to status of done
41-
- name: Update Jira ticket status
42-
uses: atlassian/gajira-transition@v3
43-
with:
44-
issue: ${{ steps.fc.outputs.comment-body }}
45-
transition: "Done"
40+
# # Transition jira ticket identified in first step to status of done
41+
# - name: Update Jira ticket status
42+
# uses: atlassian/gajira-transition@v3
43+
# with:
44+
# issue: ${{ steps.fc.outputs.comment-body }}
45+
# transition: "Done"
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
name: Reopen Jira Ticket When Issue Reopens
1+
# name: Reopen Jira Ticket When Issue Reopens
22

3-
on:
4-
issues:
5-
types:
6-
- reopened
7-
pull_request_target:
8-
types:
9-
- reopened
3+
# on:
4+
# issues:
5+
# types:
6+
# - reopened
7+
# pull_request_target:
8+
# types:
9+
# - reopened
1010

11-
workflow_call:
12-
jobs:
13-
update_jira_status:
14-
name: Set Jira Status To Done
15-
runs-on: ubuntu-latest
16-
permissions: write-all
11+
# workflow_call:
12+
# jobs:
13+
# update_jira_status:
14+
# name: Set Jira Status To Done
15+
# runs-on: ubuntu-latest
16+
# permissions: write-all
1717

18-
steps:
19-
# Look through all comments in issue and get contents of comment that
20-
# includes text PETOSS
21-
- name: Find Jira ticket Id in issue comments
22-
uses: peter-evans/find-comment@v2
23-
id: fc
24-
with:
25-
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
26-
body-includes: PETOSS
27-
comment-author: github-actions[bot]
28-
direction: last
18+
# steps:
19+
# # Look through all comments in issue and get contents of comment that
20+
# # includes text PETOSS
21+
# - name: Find Jira ticket Id in issue comments
22+
# uses: peter-evans/find-comment@v2
23+
# id: fc
24+
# with:
25+
# issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
26+
# body-includes: PETOSS
27+
# comment-author: github-actions[bot]
28+
# direction: last
2929

30-
- name: Checkout
31-
uses: actions/checkout@master
30+
# - name: Checkout
31+
# uses: actions/checkout@master
3232

33-
- name: Login
34-
uses: atlassian/gajira-login@master
35-
env:
36-
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
37-
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
38-
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
33+
# - name: Login
34+
# uses: atlassian/gajira-login@master
35+
# env:
36+
# JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
37+
# JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
38+
# JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
3939

40-
# Transition jira ticket identified in first step to status of backlog
41-
- name: Update Jira ticket status
42-
uses: atlassian/gajira-transition@v3
43-
with:
44-
issue: ${{ steps.fc.outputs.comment-body }}
45-
transition: "Backlog"
40+
# # Transition jira ticket identified in first step to status of backlog
41+
# - name: Update Jira ticket status
42+
# uses: atlassian/gajira-transition@v3
43+
# with:
44+
# issue: ${{ steps.fc.outputs.comment-body }}
45+
# transition: "Backlog"

0 commit comments

Comments
 (0)