From 607afc6c3baaa392af836196891fa1a639b41b91 Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Tue, 15 Jul 2025 16:24:02 +0100 Subject: [PATCH 1/2] chore: add JIRA issue automation --- .github/workflows/jira-issue.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/jira-issue.yml diff --git a/.github/workflows/jira-issue.yml b/.github/workflows/jira-issue.yml new file mode 100644 index 00000000..240ce7ea --- /dev/null +++ b/.github/workflows/jira-issue.yml @@ -0,0 +1,34 @@ +--- + name: Create JIRA ticket for new issues + + on: + issues: + types: [opened] + + permissions: + issues: write + contents: read + jobs: + jira_task: + name: Create Jira issue + runs-on: ubuntu-latest + steps: + - uses: GitHubSecurityLab/actions-permissions/monitor@v1 + with: + config: ${{ vars.PERMISSIONS_CONFIG }} + - name: Create JIRA ticket + uses: mongodb/apix-action/create-jira@v8 + id: create + with: + token: ${{ secrets.JIRA_API_TOKEN }} + project-key: MCP + summary: "HELP: GitHub Issue n. ${{ github.event.issue.number }}" + issuetype: Story + description: "This ticket tracks the following GitHub issue: ${{ github.event.issue.html_url }}." + components: MCP + - name: Add comment + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + with: + issue-number: ${{ github.event.issue.number }} + body: | + 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. \ No newline at end of file From 2b55a1969e6e96eb6263a7a9eee8de6bff08b9db Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Tue, 15 Jul 2025 16:26:57 +0100 Subject: [PATCH 2/2] lint --- .github/workflows/jira-issue.yml | 66 ++++++++++++++++---------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/jira-issue.yml b/.github/workflows/jira-issue.yml index 240ce7ea..1d7bd170 100644 --- a/.github/workflows/jira-issue.yml +++ b/.github/workflows/jira-issue.yml @@ -1,34 +1,34 @@ --- - name: Create JIRA ticket for new issues - - on: - issues: - types: [opened] - - permissions: - issues: write - contents: read - jobs: - jira_task: - name: Create Jira issue - runs-on: ubuntu-latest - steps: - - uses: GitHubSecurityLab/actions-permissions/monitor@v1 - with: - config: ${{ vars.PERMISSIONS_CONFIG }} - - name: Create JIRA ticket - uses: mongodb/apix-action/create-jira@v8 - id: create - with: - token: ${{ secrets.JIRA_API_TOKEN }} - project-key: MCP - summary: "HELP: GitHub Issue n. ${{ github.event.issue.number }}" - issuetype: Story - description: "This ticket tracks the following GitHub issue: ${{ github.event.issue.html_url }}." - components: MCP - - name: Add comment - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 - with: - issue-number: ${{ github.event.issue.number }} - body: | - 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. \ No newline at end of file +name: Create JIRA ticket for new issues + +on: + issues: + types: [opened] + +permissions: + issues: write + contents: read +jobs: + jira_task: + name: Create Jira issue + runs-on: ubuntu-latest + steps: + - uses: GitHubSecurityLab/actions-permissions/monitor@v1 + with: + config: ${{ vars.PERMISSIONS_CONFIG }} + - name: Create JIRA ticket + uses: mongodb/apix-action/create-jira@v8 + id: create + with: + token: ${{ secrets.JIRA_API_TOKEN }} + project-key: MCP + summary: "HELP: GitHub Issue n. ${{ github.event.issue.number }}" + issuetype: Story + description: "This ticket tracks the following GitHub issue: ${{ github.event.issue.html_url }}." + components: MCP + - name: Add comment + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 + with: + issue-number: ${{ github.event.issue.number }} + body: | + 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.