unstructured/.github/workflows/create_issue.yml
qued 2110a266c8
fix: fix github issue formatting (#471)
Attempting to fix formatting of github issues transferred to Jira.

The old format was attempting to use double-slashes (\\) to specify line breaks. This worked in the test repo but didn't look right when merged to this repo.

Now attempting to use formatted text in the yaml with |. This worked in the test repo, but I guess that's no guarantee.
2023-04-12 16:59:12 +00:00

35 lines
864 B
YAML

name: create_jira_issue
on:
issues:
types:
- opened
jobs:
create:
runs-on: ubuntu-latest
name: Create JIRA Issue
steps:
- name: Login to Jira
uses: atlassian/gajira-login@v3
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 issue
uses: atlassian/gajira-create@v3
with:
project: CORE
issuetype: Task
summary: ${{ github.event.issue.title }}
description: |
Created from github issue: ${{ github.event.issue.html_url }}
----
${{ github.event.issue.body }}
fields: '{ "labels": ["github-issue"] }'
- name: Log created issue
run: echo "Issue ${{ steps.create.outputs.issue }} was created"