From 2c268e78b797b73a99a3d0ea35c94bcafa312647 Mon Sep 17 00:00:00 2001 From: "E. Cooper" Date: Fri, 22 Nov 2024 13:21:31 -0800 Subject: [PATCH] Remove unused jira workflows (#427) --- .github/workflows/close-jira-ticket.yml | 36 ------------------ .../create-jira-ticket-from-issue.yml | 37 ------------------- .../create-jira-ticket-from-pull-request.yml | 32 ---------------- 3 files changed, 105 deletions(-) delete mode 100644 .github/workflows/close-jira-ticket.yml delete mode 100644 .github/workflows/create-jira-ticket-from-issue.yml delete mode 100644 .github/workflows/create-jira-ticket-from-pull-request.yml diff --git a/.github/workflows/close-jira-ticket.yml b/.github/workflows/close-jira-ticket.yml deleted file mode 100644 index a472052e..00000000 --- a/.github/workflows/close-jira-ticket.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Set JIRA ticket to DONE - -on: - issues: - types: [closed, deleted] - -jobs: - set_done_for_closed_issued: - name: Set JIRA ticket to DONE - runs-on: ubuntu-latest - steps: - - 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 }} - - - name: Find comment with ticket number - uses: peter-evans/find-comment@v1 - id: comment - with: - issue-number: ${{ github.event.issue.number }} - body-includes: Internal ticket number is FE- - - - name: Get ticket number - id: ticket - uses: atlassian/gajira-find-issue-key@master - with: - string: ${{ steps.comment.outputs.comment-body }} - - - name: Close - uses: atlassian/gajira-transition@master - with: - issue: ${{ steps.ticket.outputs.issue }} - transition: "DONE" diff --git a/.github/workflows/create-jira-ticket-from-issue.yml b/.github/workflows/create-jira-ticket-from-issue.yml deleted file mode 100644 index 67fd205b..00000000 --- a/.github/workflows/create-jira-ticket-from-issue.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Create JIRA ticket for GH issue - -on: - issues: - types: [opened] - -jobs: - create_ticket_from_issue: - name: Create JIRA ticket - runs-on: ubuntu-latest - steps: - - 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 }} - - - name: Create - id: create - uses: atlassian/gajira-create@master - with: - project: FE - issuetype: Bug - summary: Issue ${{ github.event.issue.number }} ${{ github.event.issue.title }} - description: ${{ github.event.issue.html_url }} - fields: '{"labels": ["github", "issue", "dx-ops"], "components": [{ "name": "Fauna Shell" }]}' - - - name: Comment - uses: peter-evans/create-or-update-comment@v1 - with: - issue-number: ${{ github.event.issue.number }} - body: Internal ticket number is ${{ steps.create.outputs.issue }} - - - name: Complete - if: ${{ steps.create.outputs.issue }} - run: echo "Issue ${{ steps.create.outputs.issue }} was created" diff --git a/.github/workflows/create-jira-ticket-from-pull-request.yml b/.github/workflows/create-jira-ticket-from-pull-request.yml deleted file mode 100644 index a2e2fc1c..00000000 --- a/.github/workflows/create-jira-ticket-from-pull-request.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Create JIRA ticket for GH pull request - -on: - pull_request: - types: [opened] - -jobs: - create_ticket_from_pr: - name: Create JIRA ticket - runs-on: ubuntu-latest - if: ${{ github.actor != 'dependabot[bot]' }} - steps: - - 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 }} - - - name: Create - id: create - uses: atlassian/gajira-create@master - with: - project: FE - issuetype: Task - summary: Pull Request ${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }} - description: ${{ github.event.pull_request.html_url }} - fields: '{"labels": ["github", "pr", "dx-ops"], "components": [{ "name": "Fauna Shell" }]}' - - - name: Complete - if: ${{ steps.create.outputs.issue }} - run: echo "Issue ${{ steps.create.outputs.issue }} was created"