From 665587d74fffea8a2ce51c2edad8d0a8d73b941a Mon Sep 17 00:00:00 2001 From: Sergio Schvezov Date: Wed, 28 Jun 2023 16:27:57 -0300 Subject: [PATCH] github: add issue templates --- .github/ISSUE_TEMPLATE/bug.yaml | 48 +++++++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 11 +++++++ .github/ISSUE_TEMPLATE/task.yaml | 27 +++++++++++++++++ .github/workflows/issues.yaml | 17 +++++++++++ 4 files changed, 103 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug.yaml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/task.yaml create mode 100644 .github/workflows/issues.yaml diff --git a/.github/ISSUE_TEMPLATE/bug.yaml b/.github/ISSUE_TEMPLATE/bug.yaml new file mode 100644 index 0000000..25fcd3f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yaml @@ -0,0 +1,48 @@ +name: Bug Report +description: File a bug report +labels: "Bug" +body: + - type: markdown + attributes: + value: > + Thanks for taking the time to fill out this bug report! Before + submitting your issue, make sure this has not been already + reported or if it works with the latest version of the library. + - type: textarea + id: bug-description + attributes: + label: Bug Description + description: > + If applicable, add screenshots to help explain your + problem. + validations: + required: true + - type: textarea + id: reproduction + attributes: + label: To Reproduce + description: > + Provide a step-by-step instruction of how to reproduce the behavior. + validations: + required: true + - type: textarea + id: part_yaml + attributes: + label: part yaml + description: > + If possible, please paste the yaml spec that causes the + failure. This will be automatically formatted into code, so no + need for backticks. + render: shell + validations: + required: false + - type: textarea + id: logs + attributes: + label: Relevant log output + description: > + Please copy and paste any relevant log output. This will be + automatically formatted into code, so no need for backticks. + render: shell + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..243d66b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,11 @@ +blank_issues_enabled: false +contact_links: + - name: Charmcraft Discourse + url: https://discourse.charmhub.io/c/charmcraft/3 + about: Issues creating charms + - name: Snapcraft Discourse + url: https://forum.snapcraft.io/c/snapcraft/13 + about: Issues creating snaps + - name: Rockcraft Discourse + url: https://discourse.ubuntu.com/c/rocks/117 + about: Issues creating ROCKs diff --git a/.github/ISSUE_TEMPLATE/task.yaml b/.github/ISSUE_TEMPLATE/task.yaml new file mode 100644 index 0000000..5f4ff98 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/task.yaml @@ -0,0 +1,27 @@ +name: Task +description: File an enhancement proposal +labels: "Enhancement" +body: + - type: markdown + attributes: + value: > + Thanks for taking the time to fill out this enhancement + proposal! Before submitting your issue, please make sure there + isn't already a prior issue concerning this. If there is, + please join that discussion instead. + - type: textarea + id: enhancement-proposal-what + attributes: + label: What needs to get done + description: > + Describe what needs to get done + validations: + required: true + - type: textarea + id: enhancement-proposal-why + attributes: + label: Why it needs to get done + description: > + Describe why it needs to get done + validations: + required: true diff --git a/.github/workflows/issues.yaml b/.github/workflows/issues.yaml new file mode 100644 index 0000000..d3e1264 --- /dev/null +++ b/.github/workflows/issues.yaml @@ -0,0 +1,17 @@ +# 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 }}