forked from simpeg/simpeg
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow to create JIRA issue from Github issue
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 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,36 @@ | ||
# This workflow will create a JIRA issue upon creation of a GitHub issue | ||
|
||
name: Create JIRA issue | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
new_jira_issue: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: JIRA Login | ||
uses: atlassian/[email protected] | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
- name: Jira Create issue | ||
id: create_jira_issue | ||
uses: atlassian/[email protected] | ||
with: | ||
project: GEOPY | ||
issuetype: Story | ||
summary: ${{ github.event.issue.title }} | ||
description: "_from [GitHub issue #${{ github.event.issue.number }}|${{ github.event.issue.html_url }}]_" | ||
# Additional fields in JSON format | ||
fields: '{"components": [{"name": "simpeg"}]}' | ||
- name: Post JIRA link | ||
uses: peter-evans/create-or-update-comment@v3 | ||
with: | ||
# The number of the issue or pull request in which to create a comment. | ||
issue-number: ${{ github.event.issue.number }} | ||
# The comment body. | ||
body: "JIRA issue [${{ steps.create_jira_issue.outputs.issue }}] was created." |