From 3481e11edaa6bd299eb9c9dd6615cc0381cfdb5d Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Fri, 16 Aug 2024 15:44:47 +0200 Subject: [PATCH] Switch Jira issue sync from workflow to bot https://warthogs.atlassian.net/browse/DPE-3154 --- .github/.jira_sync_config.yaml | 25 +++++++++++++++++++++++ .github/workflows/sync_issue_to_jira.yaml | 21 ------------------- 2 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 .github/.jira_sync_config.yaml delete mode 100644 .github/workflows/sync_issue_to_jira.yaml diff --git a/.github/.jira_sync_config.yaml b/.github/.jira_sync_config.yaml new file mode 100644 index 0000000..cb59d30 --- /dev/null +++ b/.github/.jira_sync_config.yaml @@ -0,0 +1,25 @@ +# Sync GitHub issues to Jira issues + +# Configuration syntax: +# https://github.com/canonical/gh-jira-sync-bot/blob/main/README.md#client-side-configuration +settings: + # Repository specific settings + components: # Jira components that will be added to Jira issue + - postgresql-vm + - postgresql-k8s + - pgbouncer-vm + - pgbouncer-k8s + - snap + + # Settings shared across Data Platform repositories + label_mapping: + # If the GitHub issue does not have a label in this mapping, the Jira issue will be created as a Bug + enhancement: Story + jira_project_key: DPE # https://warthogs.atlassian.net/browse/DPE + status_mapping: + opened: untriaged + closed: done # GitHub issue closed as completed + not_planned: rejected # GitHub issue closed as not planned + add_gh_comment: true + sync_description: false + sync_comments: false diff --git a/.github/workflows/sync_issue_to_jira.yaml b/.github/workflows/sync_issue_to_jira.yaml deleted file mode 100644 index 5715635..0000000 --- a/.github/workflows/sync_issue_to_jira.yaml +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2023 Canonical Ltd. -# See LICENSE file for licensing details. -name: Sync issue to Jira - -on: - issues: - types: [opened, reopened, closed] - -jobs: - sync: - name: Sync GitHub issue to Jira - uses: canonical/data-platform-workflows/.github/workflows/sync_issue_to_jira.yaml@v12 - with: - jira-base-url: https://warthogs.atlassian.net - jira-project-key: DPE - jira-component-names: postgresql-vm,postgresql-k8s,pgbouncer-vm,pgbouncer-k8s,snap - secrets: - jira-api-token: ${{ secrets.JIRA_API_TOKEN }} - jira-user-email: ${{ secrets.JIRA_USER_EMAIL }} - permissions: - issues: write # Needed to create GitHub issue comment