Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/close-jira.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
18 changes: 18 additions & 0 deletions .github/workflows/create-jira.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
20 changes: 20 additions & 0 deletions .github/workflows/dependabot-jira.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
17 changes: 17 additions & 0 deletions .github/workflows/issue-closed.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
17 changes: 17 additions & 0 deletions .github/workflows/issue-opened.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
17 changes: 17 additions & 0 deletions .github/workflows/issue-reopened.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Loading