From 654a0e375b2129818e54d7de757f011d795bb0c2 Mon Sep 17 00:00:00 2001 From: alopez-pp <63304175+alopez-pp@users.noreply.github.com> Date: Thu, 12 May 2022 15:42:50 +0200 Subject: [PATCH 1/3] automation issue github to jira --- .github/workflows/jira.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/jira.yml diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml new file mode 100644 index 00000000..4d1109e3 --- /dev/null +++ b/.github/workflows/jira.yml @@ -0,0 +1,31 @@ +name: CREATE JIRA ISSUE + +on: + issues: + types: [opened, edited] + +jobs: + jira: + name: Create Jira issue + runs-on: ubuntu-latest + steps: + - name: Jira Login + uses: atlassian/gajira-login@master + env: + JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} + JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} + JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} + + - name: Create + id: create + uses: atlassian/gajira-create@master + with: + project: SPD + issuetype: Sylius Technical Support + summary: "${{ github.event.issue.title }} #${{ github.event.issue.number }}" + description: "${{ github.event.issue.body }}\n\nCreated from GitHub Action" + # Valeur par default "from github" en MVP + fields: '{"customfield_10106": "from github","customfield_10105": "https://www.from-github.fr","customfield_10108": "from github", "customfield_10145": "from github"}' + + - name: Log + run: echo "Created issue ${{ steps.create.outputs.issue }}" From 97396bc3f860c6f6e444680b85fd0475017a243f Mon Sep 17 00:00:00 2001 From: alopez-pp <63304175+alopez-pp@users.noreply.github.com> Date: Fri, 13 May 2022 12:07:32 +0200 Subject: [PATCH 2/3] Update jira.yml --- .github/workflows/jira.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml index 4d1109e3..ec28aa92 100644 --- a/.github/workflows/jira.yml +++ b/.github/workflows/jira.yml @@ -23,9 +23,8 @@ jobs: project: SPD issuetype: Sylius Technical Support summary: "${{ github.event.issue.title }} #${{ github.event.issue.number }}" - description: "${{ github.event.issue.body }}\n\nCreated from GitHub Action" # Valeur par default "from github" en MVP - fields: '{"customfield_10106": "from github","customfield_10105": "https://www.from-github.fr","customfield_10108": "from github", "customfield_10145": "from github"}' + fields: '{"customfield_10150": "${{ github.event.issue.body }}\n\nCreated from GitHub Action", "customfield_10106": "from github","customfield_10105": "https://www.from-github.fr","customfield_10108": "from github", "customfield_10145": "from github"}' - name: Log run: echo "Created issue ${{ steps.create.outputs.issue }}" From 6b8dbde06c316b940da0827b2886e0be980d32d7 Mon Sep 17 00:00:00 2001 From: alopez-pp <63304175+alopez-pp@users.noreply.github.com> Date: Fri, 13 May 2022 12:21:22 +0200 Subject: [PATCH 3/3] Update jira.yml --- .github/workflows/jira.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jira.yml b/.github/workflows/jira.yml index ec28aa92..fa652ff1 100644 --- a/.github/workflows/jira.yml +++ b/.github/workflows/jira.yml @@ -20,7 +20,7 @@ jobs: id: create uses: atlassian/gajira-create@master with: - project: SPD + project: SMP issuetype: Sylius Technical Support summary: "${{ github.event.issue.title }} #${{ github.event.issue.number }}" # Valeur par default "from github" en MVP