Skip to content

[ETH-674] Get exchange rates from moonpay service instead of keyapp s… #1318

[ETH-674] Get exchange rates from moonpay service instead of keyapp s…

[ETH-674] Get exchange rates from moonpay service instead of keyapp s… #1318

Workflow file for this run

name: Pull request created
on:
pull_request:
types: [opened, converted_to_draft, ready_for_review]
concurrency:
group: pull-request-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# Send task to review when pull request is opened
return_task_to_in_progress:
name: Send task to review and update description
runs-on: ubuntu-latest
steps:
- name: Login to JIRA
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: Find JIRA issue from branchname
id: find_issue
if: ${{ github.event.pull_request.head.ref }}
uses: atlassian/gajira-find-issue-key@master
with:
string: ${{ github.event.pull_request.head.ref }}
from: ""
- name: Move issue to REVIEW or IN PROGRESS
if: ${{ steps.find_issue.outputs.issue }}
uses: atlassian/gajira-transition@master
with:
issue: ${{ steps.find_issue.outputs.issue }}
transition: ${{ github.event.pull_request.draft && 'In Progress' || secrets.JIRA_REVIEW_TRANSITION_NAME }}
- name: Update PR description
if: ${{ steps.find_issue.outputs.issue && github.event.action == 'opened' }}
uses: tzkhan/pr-update-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
head-branch-regex: 'pwn-\d+'
title-template: '[${{ steps.find_issue.outputs.issue }}] '
body-template: |
## Link jira to issue
${{ secrets.JIRA_BASE_URL }}/browse/${{ steps.find_issue.outputs.issue }}
body-update-action: 'prefix'