OAuth config for partners API gateway #244
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Escalate to pSRE | |
on: | |
issues: | |
types: labeled | |
jobs: | |
file-jira: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.label.name == 'escalate-to-psre' }} | |
steps: | |
- name: Login | |
uses: atlassian/gajira-login@v3 | |
env: | |
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | |
JIRA_USER_EMAIL: '[email protected]' | |
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | |
- name: Create ticket | |
uses: atlassian/gajira-create@v3 | |
id: jiracreate | |
with: | |
project: GSRE | |
issuetype: Story | |
summary: ${{ github.event.issue.title }} | |
description: | | |
${{ github.event.issue.body }} | |
The original issue is at ${{ github.event.issue.html_url }} | |
fields: '{ "labels": ["esre-request"] }' | |
- name: Comment with JIRA issue link | |
uses: peter-evans/create-or-update-comment@v2 | |
with: | |
body: This is now https://2u-internal.atlassian.net/browse/${{ steps.jiracreate.outputs.issue }} | |
issue-number: ${{ github.event.issue.number }} |