|
| 1 | +--- |
| 2 | +name: Create JIRA ticket for new issues |
| 3 | + |
| 4 | +on: |
| 5 | + issues: |
| 6 | + types: [opened] |
| 7 | + |
| 8 | +permissions: |
| 9 | + issues: write |
| 10 | + contents: read |
| 11 | +jobs: |
| 12 | + jira_task: |
| 13 | + name: Create Jira issue |
| 14 | + runs-on: ubuntu-latest |
| 15 | + steps: |
| 16 | + - uses: GitHubSecurityLab/actions-permissions/monitor@v1 |
| 17 | + with: |
| 18 | + config: ${{ vars.PERMISSIONS_CONFIG }} |
| 19 | + - name: Create JIRA ticket |
| 20 | + uses: mongodb/apix-action/create-jira@v8 |
| 21 | + id: create |
| 22 | + with: |
| 23 | + token: ${{ secrets.JIRA_API_TOKEN }} |
| 24 | + project-key: MCP |
| 25 | + summary: "HELP: GitHub Issue n. ${{ github.event.issue.number }}" |
| 26 | + issuetype: Story |
| 27 | + description: "This ticket tracks the following GitHub issue: ${{ github.event.issue.html_url }}." |
| 28 | + components: MCP |
| 29 | + - name: Add comment |
| 30 | + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 |
| 31 | + with: |
| 32 | + issue-number: ${{ github.event.issue.number }} |
| 33 | + body: | |
| 34 | + Thanks for opening this issue. The ticket [${{ steps.create.outputs.issue-key }}](https://jira.mongodb.org/browse/${{ steps.create.outputs.issue-key }}) was created for internal tracking. |
0 commit comments