From 6c58ad8488b97fa0a01a749086a739235bc89dfa Mon Sep 17 00:00:00 2001 From: Ray Chan Date: Wed, 29 May 2024 16:14:51 +0800 Subject: [PATCH] chore: apply new github bot for jira and gh sync and remove the old jira_gh sync action (#28) --- .github/.jira_sync_config.yaml | 26 ++++++++++++++++++++++++++ .github/workflows/issues_to_jira.yaml | 25 ------------------------- 2 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 .github/.jira_sync_config.yaml delete mode 100644 .github/workflows/issues_to_jira.yaml diff --git a/.github/.jira_sync_config.yaml b/.github/.jira_sync_config.yaml new file mode 100644 index 0000000..c033f6e --- /dev/null +++ b/.github/.jira_sync_config.yaml @@ -0,0 +1,26 @@ +# +# For more info about the settings, please refre to the github repository: +# https://github.com/canonical/gh-jira-sync-bot +# + +settings: + # Jira project key to create the issue in + jira_project_key: "SOLENG" + + # Dictionary mapping GitHub issue status to Jira issue status + status_mapping: + opened: Untriaged + closed: done + + # (Optional) Jira project components that should be attached to the created issue + # Component names are case-sensitive + components: + - storage-connector + + # (Optional) (Default: None) Parent Epic key to link the issue to + epic_key: SOLENG-46 + + # (Optional) Dictionary mapping GitHub issue labels to Jira issue types. + # If label on the issue is not in specified list, this issue will be created as a Bug + label_mapping: + enhancement: Story diff --git a/.github/workflows/issues_to_jira.yaml b/.github/workflows/issues_to_jira.yaml deleted file mode 100644 index cc44534..0000000 --- a/.github/workflows/issues_to_jira.yaml +++ /dev/null @@ -1,25 +0,0 @@ -# This is a template `issues_to_jira.yaml` file for ops charms -# This file is managed by bootstack-charms-spec and should not be modified -# within individual charm repos. https://launchpad.net/bootstack-charms-spec - -# This workflow requires to provide JIRA webhook URL via JIRA_URL GitHub Secret. -# -# Read more: -# https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Automationtriggers-Incomingwebhook -# -# Original code source: -# https://github.com/beliaev-maksim/github-to-jira-automation - -name: Issues to JIRA - -on: - issues: - # available via github.event.action - types: [opened, reopened, closed] - -jobs: - update: - name: Update Issue - uses: beliaev-maksim/github-to-jira-automation/.github/workflows/issues_to_jira.yaml@master - secrets: - JIRA_URL: ${{ secrets.JIRA_URL }}