Skip to content

Slash in git execute fix #760

Slash in git execute fix

Slash in git execute fix #760

Workflow file for this run

name: Jira creation
on:
issues:
types: [opened]
issue_comment:
types: [created]
jobs:
create-issue:
runs-on: ubuntu-latest
permissions:
issues: write
if: |
(
(
github.event_name == 'issue_comment'
&& github.event.comment.body == 'recreate jira'
&& (github.event.comment.user.login == 'sfc-gh-turbaszek'
|| github.event.comment.user.login == 'sfc-gh-astus'
|| github.event.comment.user.login == 'sfc-gh-pjob'
|| github.event.comment.user.login == 'sfc-gh-jsikorski'
|| github.event.comment.user.login == 'sfc-gh-pczajka'
|| github.event.comment.user.login == 'sfc-gh-mraba')
)
|| (github.event_name == 'issues' && github.event.pull_request.user.login != 'whitesource-for-github-com[bot]'))
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: snowflakedb/gh-actions
ref: jira_v1
token: ${{ secrets.SNOWFLAKE_GITHUB_TOKEN }} # stored in GitHub secrets
path: .
persist-credentials: false
- name: Login
uses: atlassian/gajira-login@v3.0.1
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create JIRA Ticket
id: create
uses: atlassian/gajira-create@v3.0.1
with:
project: SNOW
issuetype: Bug
summary: '${{ github.event.issue.title }}'
description: >
_Created from GitHub Action_ for ${{ github.event.issue.html_url }}
```${{ github.event.issue.body }}```
fields: '{"customfield_11401":{"id":"14723"},"labels":["dp-snowcli","github"],"parent":{"key":"SNOW-1555958"}}'
- name: Update GitHub Issue
uses: ./jira/gajira-issue-update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
issue_number: "{{ event.issue.id }}"
owner: "{{ event.repository.owner.login }}"
name: "{{ event.repository.name }}"
jira: "${{ steps.create.outputs.issue }}"
- name: Transition issue
uses: atlassian/gajira-transition@v3
with:
issue: "${{ steps.create.outputs.issue }}"
transition: "TODO"