Skip to content

Update manual.yml

Update manual.yml #13

Workflow file for this run

name: Manual Workflow
on:
pull_request_target:
types: [assigned, opened, reopened]
workflow_dispatch:
jobs:
test-transition-issue:
name: Convert Github Issue to Jira Issue
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to Jira
uses: atlassian/gajira-login@master
with:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create New JIRA Ticket
id: create
uses: atlassian/gajira-create@master
with:
project: CONUPDATE
issuetype: Task
summary: |
Github PR - nd104 PDSND | Repo: course-git-blog-project | PR# ${{github.event.number}}
description: |
Repo link: https://github.com/${{ github.repository }}
PR no. ${{ github.event.pull_request.number }}
PR title: ${{ github.event.pull_request.title }}
PR description: ${{ github.event.pull_request.body }}
In addition, please resolve other issues, if any.
fields: |
{
"components": [{"name":"nd104 - Programming for Data Science"}],
"customfield_16449": "https://classroom.udacity.com/nanodegrees/nd000/parts/e36917bf-8075-4d97-8045-f610b37f041f",
"customfield_16450": "Resolve the PR",
"labels": ["github"],
"priority": {"id": "4"}
}
- name: Log Created Issue
run: echo "Issue ${{ steps.create.outputs.issue }} was created"
description: |
Repo link: https://github.com/${{ github.repository }}
PR no. ${{ github.event.pull_request.number }}
PR title: ${{ github.event.pull_request.title }}
PR description: ${{ github.event.pull_request.description }}
In addition, please resolve other issues, if any.
fields: '{"components": [{"name":"nd104 - Programming for Data Science"}], "customfield_16449":"https://classroom.udacity.com/nanodegrees/nd000/parts/e36917bf-8075-4d97-8045-f610b37f041f", "customfield_16450":"Resolve the PR", "labels": ["github"], "priority":{"id": "4"}}'
- name: Log created issue
run: echo "Issue ${{ steps.create.outputs.issue }} was created"