Skip to content

Commit

Permalink
Merge branch 'master' into X2-9090
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi authored Feb 26, 2024
2 parents 8c48289 + 2e1768e commit 1d8ebc1
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/link-jira-tools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Link TOOLS Ticket to PR
# URL: https://github.com/marketplace/actions/add-jira-info-to-pull-request#how-to-get-the-jira-token-and-jira-username
# The following formats will work:
# PRJ-1234-some-short-description
# feature/PRJ-1234_some-short-description
# some-short-description_PRJ-1234
# feature/some-short-description_PRJ-1234
# feature/PRJ-1234_some-short-description

on:
pull_request:
types:
- opened
- synchronize
- reopened
workflow_dispatch:

permissions:
contents: read
pull-requests: write

jobs:
automation:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.XOLA_GITHUB_APP_ID }}
private_key: ${{ secrets.XOLA_GITHUB_APP_PRIVATE_KEY }}

- name: Add Jira info
uses: contractify/add-jira-info@v1
with:
github-token: ${{ steps.generate_token.outputs.token }}
jira-base-url: https://xola01.atlassian.net/
jira-username: [email protected]
jira-token: ${{ secrets.RUSHI_JIRA_API_KEY }}
jira-project-key: TOOLS
add-label-with-issue-type: true
issue-type-label-color: FBCA04
issue-type-label-description: 'Jira Issue Type'
add-jira-key-to-title: true
add-jira-key-to-body: true
45 changes: 45 additions & 0 deletions .github/workflows/link-jira-x2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Link X2 Ticket to PR
# URL: https://github.com/marketplace/actions/add-jira-info-to-pull-request#how-to-get-the-jira-token-and-jira-username
# The following formats will work:
# PRJ-1234-some-short-description
# feature/PRJ-1234_some-short-description
# some-short-description_PRJ-1234
# feature/some-short-description_PRJ-1234
# feature/PRJ-1234_some-short-description

on:
pull_request:
types:
- opened
- synchronize
- reopened
workflow_dispatch:

permissions:
contents: read
pull-requests: write

jobs:
automation:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.XOLA_GITHUB_APP_ID }}
private_key: ${{ secrets.XOLA_GITHUB_APP_PRIVATE_KEY }}

- name: Add Jira info
uses: contractify/add-jira-info@v1
with:
github-token: ${{ steps.generate_token.outputs.token }}
jira-base-url: https://xola01.atlassian.net/
jira-username: [email protected]
jira-token: ${{ secrets.RUSHI_JIRA_API_KEY }}
jira-project-key: X2
add-label-with-issue-type: true
issue-type-label-color: FBCA04
issue-type-label-description: 'Jira Issue Type'
add-jira-key-to-title: true
add-jira-key-to-body: true

0 comments on commit 1d8ebc1

Please sign in to comment.