From efc4b39771036a2ee2e01cf33ad57c12f7e00b7b Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Tue, 11 Apr 2023 14:33:04 +0000 Subject: [PATCH] Sync GitHub issues to Jira (#7) Ported from https://github.com/canonical/mysql-operator/pull/108 --- .github/ISSUE_TEMPLATE/bug_report.md | 40 +++++++++++++++++++++++ .github/workflows/sync_issue_to_jira.yaml | 21 ++++++++++++ tox.ini | 2 +- 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/workflows/sync_issue_to_jira.yaml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..0e8fdb5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,40 @@ +--- +name: Bug report +about: File a bug report +labels: bug + +--- + + + +## Steps to reproduce +1. + +## Expected behavior + + +## Actual behavior + + + +## Versions + + +Operating system: + +## Log output +
+ Full log + + +```shell + + +``` +
+ + + + +## Additional context + diff --git a/.github/workflows/sync_issue_to_jira.yaml b/.github/workflows/sync_issue_to_jira.yaml new file mode 100644 index 0000000..b209e6d --- /dev/null +++ b/.github/workflows/sync_issue_to_jira.yaml @@ -0,0 +1,21 @@ +# 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@v2 + with: + jira-base-url: https://warthogs.atlassian.net + jira-project-key: DPE + jira-component-names: kafka-k8s,rock + secrets: + jira-api-token: ${{ secrets.JIRA_API_TOKEN }} + jira-user-email: ${{ secrets.JIRA_USER_EMAIL }} + permissions: + issues: write # Needed to create GitHub issue comment diff --git a/tox.ini b/tox.ini index 9e5a1b8..942b0dc 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ skip_install = true deps = yamllint commands = - yamllint --no-warnings rockcraft.yaml .github + yamllint --no-warnings rockcraft.yaml [testenv:integration] description = run operator integration tests