-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: resolving merge conflict bw develop and ct
- Loading branch information
1 parent
cbcf0d4
commit ad08b6d
Showing
49 changed files
with
576 additions
and
159 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Create Internal Issue on Jira from Issue | ||
|
||
on: | ||
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#issues | ||
# https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issues | ||
issues: | ||
types: [labeled] | ||
|
||
jobs: | ||
create-jira-issue-from-labeled-issue: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log label | ||
if: github.event.label.name != 'internal-priority' | ||
run: echo Label is ${{ github.event.label.name }} - skipping next steps | ||
|
||
# https://github.com/atlassian/gajira-login | ||
- name: Jira login | ||
id: login | ||
if: github.event.label.name == 'internal-priority' | ||
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 }} | ||
|
||
# https://github.com/atlassian/gajira-create | ||
- name: Create TR Jira issue for internal-priority labels | ||
id: create_jira_internal_priority_issue | ||
if: github.event.label.name == 'internal-priority' | ||
uses: atlassian/gajira-create@master | ||
with: | ||
project: TR | ||
issuetype: Bug | ||
summary: | | ||
${{ github.event.issue.title }} | ||
description: | | ||
Created via GitHub Action with 'internal-priority' label. | ||
# Find all available fields JIRA_BASE_URL/rest/api/3/field | ||
fields: '{"customfield_10032": "${{ github.event.issue.html_url }}"}' | ||
|
||
# https://github.com/actions/github-script | ||
- name: Add comment to GitHub issue | ||
if: github.event.label.name == 'internal-priority' | ||
uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
github.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Internal Jira issue: [${{ steps.create_jira_internal_priority_issue.outputs.issue }}](${{ secrets.JIRA_BASE_URL }}/browse/${{ steps.create_jira_internal_priority_issue.outputs.issue }})' | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Create Internal Issue on Jira from PR | ||
|
||
on: | ||
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request | ||
# https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request | ||
pull_request: | ||
types: [labeled] | ||
|
||
jobs: | ||
create-jira-issue-from-labeled-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log label | ||
if: github.event.label.name != 'internal-priority' | ||
run: echo Label is ${{ github.event.label.name }} - skipping next steps | ||
|
||
# https://github.com/atlassian/gajira-login | ||
- name: Jira login | ||
id: login | ||
if: github.event.label.name == 'internal-priority' | ||
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 }} | ||
|
||
# https://github.com/atlassian/gajira-create | ||
- name: Create TR Jira issue for internal-priority labels | ||
id: create_jira_internal_priority_issue | ||
if: github.event.label.name == 'internal-priority' | ||
uses: atlassian/gajira-create@master | ||
with: | ||
project: TR | ||
issuetype: Bug | ||
summary: | | ||
${{ github.event.pull_request.title }} | ||
description: | | ||
Created via GitHub Action with 'internal-priority' label. | ||
# Find all available fields JIRA_BASE_URL/rest/api/3/field | ||
fields: '{"customfield_10032": "${{ github.event.pull_request.html_url }}"}' | ||
|
||
|
||
# https://github.com/actions/github-script | ||
- name: Add comment to GitHub PR | ||
if: github.event.label.name == 'internal-priority' | ||
uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
github.issues.createComment({ | ||
issue_number: context.payload.pull_request.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Internal Jira issue: [${{ steps.create_jira_internal_priority_issue.outputs.issue }}](${{ secrets.JIRA_BASE_URL }}/browse/${{ steps.create_jira_internal_priority_issue.outputs.issue }})' | ||
}) |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
ad08b6d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.
Run this command to install the pre-release locally: