From c07bf351a5fd6bed5d1862c60cc92dcd91422ef0 Mon Sep 17 00:00:00 2001 From: "apix-bot[bot]" <168195273+apix-bot[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 15:27:43 +0000 Subject: [PATCH] ci: apix-action updates --- .github/workflows/close-jira.yaml | 18 ++++++++++++++++++ .github/workflows/create-jira.yaml | 18 ++++++++++++++++++ .github/workflows/dependabot-jira.yaml | 20 ++++++++++++++++++++ .github/workflows/issue-closed.yaml | 17 +++++++++++++++++ .github/workflows/issue-opened.yaml | 17 +++++++++++++++++ .github/workflows/issue-reopened.yaml | 17 +++++++++++++++++ 6 files changed, 107 insertions(+) create mode 100644 .github/workflows/close-jira.yaml create mode 100644 .github/workflows/create-jira.yaml create mode 100644 .github/workflows/dependabot-jira.yaml create mode 100644 .github/workflows/issue-closed.yaml create mode 100644 .github/workflows/issue-opened.yaml create mode 100644 .github/workflows/issue-reopened.yaml diff --git a/.github/workflows/close-jira.yaml b/.github/workflows/close-jira.yaml new file mode 100644 index 0000000..0b0ac42 --- /dev/null +++ b/.github/workflows/close-jira.yaml @@ -0,0 +1,18 @@ +# synced from apix-actions/.github/workflows/close-jira.yaml +name: Auto Close Jira + +on: + pull_request: + types: [closed] + +permissions: {} + +jobs: + close-jira: + if: contains(github.event.pull_request.labels.*.name, 'auto_close_jira') + permissions: + contents: read + pull-requests: read + uses: mongodb/apix-action/.github/workflows/_close-jira.yaml@d565d6d2caaa40ff3fb026957f91d6e46a35f5be + secrets: + op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/create-jira.yaml b/.github/workflows/create-jira.yaml new file mode 100644 index 0000000..b6db57a --- /dev/null +++ b/.github/workflows/create-jira.yaml @@ -0,0 +1,18 @@ +# synced from apix-actions/.github/workflows/create-jira.yaml +name: Create Jira Ticket + +on: + pull_request: + types: [labeled] + +permissions: {} + +jobs: + create-jira: + if: github.event.label.name == 'create_jira' + permissions: + contents: read + pull-requests: write + uses: mongodb/apix-action/.github/workflows/_create-jira.yaml@d565d6d2caaa40ff3fb026957f91d6e46a35f5be + secrets: + op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/dependabot-jira.yaml b/.github/workflows/dependabot-jira.yaml new file mode 100644 index 0000000..96db99d --- /dev/null +++ b/.github/workflows/dependabot-jira.yaml @@ -0,0 +1,20 @@ +# synced from apix-actions/.github/workflows/dependabot-jira.yaml +name: Dependabot PR automation + +on: + pull_request: + # `synchronize` covers Dependabot rebases and recreates, which rewrite the PR + # branch without opening a new PR. + types: [opened, synchronize] + +permissions: {} + +jobs: + dependabot: + # Two gates. The author identifies a Dependabot PR and ignores the sync pull requests + # this app opens. The actor limits the trigger to Dependabot or this app's own + # post-update commit, so a push to the branch by anyone else does not start a run. + if: github.event.pull_request.user.login == 'dependabot[bot]' && (github.actor == 'dependabot[bot]' || github.actor == 'apix-bot[bot]') + uses: mongodb/apix-action/.github/workflows/_dependabot-jira.yaml@d565d6d2caaa40ff3fb026957f91d6e46a35f5be + secrets: + op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/issue-closed.yaml b/.github/workflows/issue-closed.yaml new file mode 100644 index 0000000..0ea93df --- /dev/null +++ b/.github/workflows/issue-closed.yaml @@ -0,0 +1,17 @@ +# synced from apix-actions/.github/workflows/issue-closed.yaml +name: Close Jira Ticket on Issue Close + +on: + issues: + types: [closed] + +permissions: {} + +jobs: + close-jira: + permissions: + contents: read + issues: read + uses: mongodb/apix-action/.github/workflows/_issue-closed.yaml@d565d6d2caaa40ff3fb026957f91d6e46a35f5be + secrets: + op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/issue-opened.yaml b/.github/workflows/issue-opened.yaml new file mode 100644 index 0000000..d20c9c6 --- /dev/null +++ b/.github/workflows/issue-opened.yaml @@ -0,0 +1,17 @@ +# synced from apix-actions/.github/workflows/issue-opened.yaml +name: Create Jira Ticket for New Issues + +on: + issues: + types: [opened] + +permissions: {} + +jobs: + create-jira: + permissions: + contents: read + issues: write + uses: mongodb/apix-action/.github/workflows/_issue-opened.yaml@d565d6d2caaa40ff3fb026957f91d6e46a35f5be + secrets: + op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/issue-reopened.yaml b/.github/workflows/issue-reopened.yaml new file mode 100644 index 0000000..fda97d9 --- /dev/null +++ b/.github/workflows/issue-reopened.yaml @@ -0,0 +1,17 @@ +# synced from apix-actions/.github/workflows/issue-reopened.yaml +name: Reopen Jira Ticket on Issue Reopen + +on: + issues: + types: [reopened] + +permissions: {} + +jobs: + reopen-jira: + permissions: + contents: read + issues: read + uses: mongodb/apix-action/.github/workflows/_issue-reopened.yaml@d565d6d2caaa40ff3fb026957f91d6e46a35f5be + secrets: + op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} \ No newline at end of file