From c00e094960ece6bdb72a89ceb112412e892a44da Mon Sep 17 00:00:00 2001 From: 0hlov3 Date: Mon, 16 Sep 2024 22:03:57 +0200 Subject: [PATCH] Adds issue templates and workflows --- .github/ISSUE_TEMPLATE/bug_report.yaml | 98 +++++++++++++++++++++ .github/ISSUE_TEMPLATE/custom.md | 10 +++ .github/ISSUE_TEMPLATE/feature_request.yaml | 44 +++++++++ .github/workflows/release.yml | 38 ++++++++ 4 files changed, 190 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yaml create mode 100644 .github/ISSUE_TEMPLATE/custom.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yaml create mode 100644 .github/workflows/release.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 0000000..d64f719 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,98 @@ +name: Bug Report +description: Create a report to help us improve +title: "[name of the chart e.g. gotosocial] Issue Title" +labels: [bug] +assignees: + - +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! Please be cautious with the sensitive information/logs while filing the issue. + - type: textarea + id: desc + attributes: + label: Describe the bug a clear and concise description of what the bug is. + validations: + required: true + + - type: input + id: helm-version + attributes: + label: What's your helm version? + description: Enter the output of `$ helm version` + placeholder: Copy paste the entire output of the above + validations: + required: true + - type: input + id: kubectl-version + attributes: + label: What's your kubectl version? + description: Enter the output of `$ kubectl version` + validations: + required: true + + - type: input + id: chart-name + attributes: + label: Which chart? + description: Enter the name of the chart where you encountered this bug. + validations: + required: true + + - type: input + id: chart-version + attributes: + label: What's the chart version? + description: Enter the version of the chart that you encountered this bug. + validations: + required: true + + - type: textarea + id: what-happened + attributes: + label: What happened? + description: Enter exactly what happened. + validations: + required: false + + - type: textarea + id: what-expected + attributes: + label: What you expected to happen? + description: Enter what you expected to happen. + validations: + required: false + + - type: textarea + id: how-to-reproduce + attributes: + label: How to reproduce it? + description: As minimally and precisely as possible. + validations: + required: false + + - type: textarea + id: changed-values + attributes: + label: Enter the changed values of values.yaml? + description: Please enter only values which differ from the defaults. Enter `NONE` if nothing's changed. + placeholder: 'key: value' + validations: + required: false + + - type: textarea + id: helm-command + attributes: + label: Enter the command that you execute and failing/misfunctioning. + description: Enter the command as-is as how you executed. + placeholder: helm install my-release 0hlov3/name-of-chart --version version --values values.yaml + validations: + required: true + + - type: textarea + id: anything-else + attributes: + label: Anything else we need to know? + validations: + required: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 0000000..48d5f81 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,10 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' + +--- + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml new file mode 100644 index 0000000..965a900 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -0,0 +1,44 @@ +name: Feature request +description: Suggest an idea for this project +title: "[name of the chart e.g. gotosocial] Issue Title" +labels: [enhancement] +assignees: + - +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + + - type: textarea + id: desc + attributes: + label: Is your feature request related to a problem ? + description: Give a clear and concise description of what the problem is. + placeholder: ex. I'm always frustrated when [...] + validations: + required: true + + - type: textarea + id: prop-solution + attributes: + label: Describe the solution you'd like. + description: A clear and concise description of what you want to happen. + validations: + required: true + + - type: textarea + id: alternatives + attributes: + label: Describe alternatives you've considered. + description: A clear and concise description of any alternative solutions or features you've considered. If nothing, please enter `NONE` + validations: + required: true + + - type: textarea + id: additional-ctxt + attributes: + label: Additional context. + description: Add any other context or screenshots about the feature request here. + validations: + required: false \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0c4664a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: Release Charts + +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Install Helm + uses: azure/setup-helm@v3 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: Add repositories + run: | + for dir in $(ls -d charts/*/); do + helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | grep -v "oci://" | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done + done + + - name: Helm Chart Releaser + uses: helm/chart-releaser-action@v1.5.0 + with: + charts_dir: charts + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"