diff --git a/.github/workflows/jira_create_issue.yml b/.github/workflows/jira_create_issue.yml deleted file mode 100644 index e334d1daf..000000000 --- a/.github/workflows/jira_create_issue.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Create Issue In Jira - -on: - issues: - types: - - opened - pull_request_target: - types: - - opened - workflow_call: - -jobs: - create_jira_issue: - name: Create Jira Issue - runs-on: ubuntu-latest - permissions: write-all - - steps: - - - name: Checkout - uses: actions/checkout@master - - - name: Login - uses: atlassian/gajira-login@master - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - # Create new ticket in Jira - - name: Create - id: create - uses: atlassian/gajira-create@v3 - with: - project: PETOSS - issuetype: Story - summary: ${{ github.event.repository.name }} ${{ github.event.issue.number || github.event.pull_request.number }} ${{ github.event.issue.title || github.event.pull_request.title }} - description: ${{ github.event.issue.body || github.event.pull_request.body }} - - # Add created jira id as comment in issue thread. This allows us to easily - # retrieve the id when the issue state is updated, i.e. closed - - name: Add jira ticket id as comment - uses: peter-evans/create-or-update-comment@v2 - with: - issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} - body: ${{ steps.create.outputs.issue }} - token: ${{ secrets.GITHUB_TOKEN }} - - # Add additional comment to let user know what is happening - - name: Add additional comment notifying user that a ticket has been created - uses: peter-evans/create-or-update-comment@v2 - with: - issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} - body: Thanks for raising an issue, a ticket has been created to track your request - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/jira_update_issue_closed.yml b/.github/workflows/jira_update_issue_closed.yml deleted file mode 100644 index 0ff167953..000000000 --- a/.github/workflows/jira_update_issue_closed.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Update Issue In Jira When Issue Closed - -on: - issues: - types: - - closed - pull_request_target: - types: - - closed - - workflow_call: -jobs: - update_jira_status: - name: Set Jira Status To Done - runs-on: ubuntu-latest - permissions: write-all - - steps: - # Look through all comments in issue and get contents of comment that - # includes text PETOSS - - name: Find Jira ticket Id in issue comments - uses: peter-evans/find-comment@v2 - id: fc - with: - issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} - body-includes: PETOSS - comment-author: github-actions[bot] - direction: last - - - name: Checkout - uses: actions/checkout@master - - - name: Login - uses: atlassian/gajira-login@master - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - # Transition jira ticket identified in first step to status of done - - name: Update Jira ticket status - uses: atlassian/gajira-transition@v3 - with: - issue: ${{ steps.fc.outputs.comment-body }} - transition: "Done" diff --git a/.github/workflows/jira_update_issue_reopen.yml b/.github/workflows/jira_update_issue_reopen.yml deleted file mode 100644 index 890c10e74..000000000 --- a/.github/workflows/jira_update_issue_reopen.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Reopen Jira Ticket When Issue Reopens - -on: - issues: - types: - - reopened - pull_request_target: - types: - - reopened - - workflow_call: -jobs: - update_jira_status: - name: Set Jira Status To Done - runs-on: ubuntu-latest - permissions: write-all - - steps: - # Look through all comments in issue and get contents of comment that - # includes text PETOSS - - name: Find Jira ticket Id in issue comments - uses: peter-evans/find-comment@v2 - id: fc - with: - issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} - body-includes: PETOSS - comment-author: github-actions[bot] - direction: last - - - name: Checkout - uses: actions/checkout@master - - - name: Login - uses: atlassian/gajira-login@master - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - # Transition jira ticket identified in first step to status of backlog - - name: Update Jira ticket status - uses: atlassian/gajira-transition@v3 - with: - issue: ${{ steps.fc.outputs.comment-body }} - transition: "Backlog"