Skip to content

Commit efe441c

Browse files
authored
Create manual.yml
1 parent 0b0470f commit efe441c

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/manual.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Workflow to ensure whenever a Github PR is submitted,
2+
# a JIRA ticket gets created automatically.
3+
name: Manual Workflow
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on pull request events but only for the master branch
8+
pull_request:
9+
branches: [ master ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
jobs:
15+
test-transition-issue:
16+
name: Convert Github Issue to Jira Issue
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@master
21+
22+
- name: Login
23+
uses: atlassian/gajira-login@master
24+
env:
25+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
26+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
27+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
28+
29+
- name: Create NEW JIRA ticket
30+
id: create
31+
uses: atlassian/gajira-create@master
32+
with:
33+
project: CONUPDATE
34+
issuetype: Task
35+
summary: |
36+
Github PR - nd000 IPND | Repo: course-JS-and-the-DOM | PR# ${{github.event.number}}
37+
description: |
38+
Repo link: https://github.com/${{ github.repository }}
39+
PR no. ${{ github.event.pull_request.number }}
40+
PR title: ${{ github.event.pull_request.title }}
41+
PR description: ${{ github.event.pull_request.description }}
42+
In addition, please resolve other issues, if any.
43+
fields: '{"components": [{"name":"Github PR"}], "customfield_16449":"https://classroom.udacity.com/nanodegrees/nd000/parts/82f18d18-0c75-4e6b-89ad-a659fbd21185", "customfield_16450":"Resolve the PR", "labels": ["github"]}'
44+
45+
- name: Log created issue
46+
run: echo "Issue ${{ steps.create.outputs.issue }} was created"

0 commit comments

Comments
 (0)