github.com/snowflakedb/gosnowflake@v1.9.0/.github/workflows/jira_comment.yml (about)

     1  name: Jira comment
     2  
     3  on:
     4    issue_comment:
     5      types: [created]
     6  
     7  jobs:
     8    comment-issue:
     9      runs-on: ubuntu-latest
    10      steps:
    11        - name: Jira login
    12          uses: atlassian/gajira-login@master
    13          env:
    14            JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
    15            JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
    16            JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
    17        - name: Extract issue from title
    18          id: extract
    19          env:
    20            TITLE: "${{ github.event.issue.title }}"
    21          run: |
    22            jira=$(echo -n $TITLE | awk '{print $1}' | sed -e 's/://')
    23            echo ::set-output name=jira::$jira
    24        - name: Comment on issue
    25          uses: atlassian/gajira-comment@master
    26          if: startsWith(steps.extract.outputs.jira, 'SNOW-') && github.event.comment.user.login != 'codecov[bot]'
    27          with:
    28            issue: "${{ steps.extract.outputs.jira }}"
    29            comment: "${{ github.event.comment.user.login }} commented:\n\n${{ github.event.comment.body }}\n\n${{ github.event.comment.html_url }}"