Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fd3f2a4

Browse files
authored
chore: add JIRA issue automation - [MCP-3] (#376)
1 parent f44057b commit fd3f2a4

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

‎.github/workflows/jira-issue.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /