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: Notify Jira | |
# on: | |
# issues: | |
# types: [opened] | |
# jobs: | |
# issue: | |
# name: notify_jira | |
# uses: pedrompflopes/ast-github-tester/.github/workflows/notify_jira.yml@main | |
# with: | |
# title: ${{ github.event.issue.title }} | |
# body: ${{ github.event.issue.body }} | |
# html_url: ${{ github.event.issue.html_url }} | |
# owner: ${{ github.event.repository.owner.id }} | |
# issue_number: ${{ github.event.issue.number }} | |
# repo: ${{ github.event.repository.full_name }} | |
# secrets: inherit | |
# # This workflow is triggered by github issue and creates a jira ticket in the respective configured account | |
# # | |
# # name: Notify Jira | |
# # on: | |
# # issues: | |
# # types: [opened] | |
# # jobs: | |
# # jirajob: | |
# # runs-on: ubuntu-latest | |
# # steps: | |
# # - name: Jira Login | |
# # uses: atlassian/gajira-login@v3 | |
# # 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/gajira-create@v3 | |
# # with: | |
# # project: AST | |
# # issuetype: Bug | |
# # summary: '[GITHUB ISSUE] ${{github.event.issue.title}}' | |
# # description: ${{github.event.issue.body}} see more at ${{github.event.issue.html_url}} | |
# # fields: ${{ secrets.JIRA_FIELDS}} | |
# # - name: Add comment to GitHub issue | |
# # uses: actions/[email protected] | |
# # with: | |
# # script: | | |
# # github.issues.createComment({ | |
# # issue_number: context.issue.number, | |
# # owner: context.repo.owner, | |
# # repo: context.repo.repo, | |
# # body: 'Internal Jira issue: [${{ steps.create_jira_issue.outputs.issue }}](${{ inputs.JIRA_BASE_URL }}/browse/${{ steps.create_jira_issue.outputs.issue }})' | |
# # }) |