Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
++ release name, issue templates
Browse files Browse the repository at this point in the history
  • Loading branch information
diafour committed Feb 16, 2021
1 parent a6d0847 commit 76f6745
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATES/1-bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: 🐛 Bug report
about: Report a bug you found when using flant-statusmap-panel
labels: 'bug'
---
<!--
Thank you for sending a bug report! Here are some tips:
1. Please fill out the template below to make it easier to debug your problem.
2. If you are not sure if it is a bug or not, you can ask in Discussions.
PROTIP: record your screen and attach it as a gif to showcase the issue.
- Questions should be posted to: https://github.com/flant/grafana-statusmap/discussions
- Use query inspector to troubleshoot issues: https://bit.ly/2XNF6YS
- How to record and attach gif: https://bit.ly/2Mi8T6K
-->

**What happened**:

**What you expected to happen**:

**How to reproduce it (as minimally and precisely as possible)**:

**Environment**:
- Grafana version:
- flant-statusmap-panel version:
- Data source type & version:
- OS Grafana is installed on:
- User OS & Browser:
- Grafana plugins:
- Others:

**Anything else we should know?**:

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATES/2-feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: 💡 Feature request
about: Suggest an idea for flant-statusmap-panel
labels: 'enhancement'
---

<!-- Please only use this template for submitting feature requests. -->

**What would you like to be added**:

**Why is this needed**:
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATES/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 💬 Questions & Help
url: https://github.com/flant/grafana-statusmap/discussions
about: Please ask and answer questions here
8 changes: 6 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,25 @@ jobs:
export GRAFANA_PLUGIN_ID=$(cat dist/plugin.json | jq -r .id)
export GRAFANA_PLUGIN_VERSION=$(cat dist/plugin.json | jq -r .info.version)
export GRAFANA_PLUGIN_TYPE=$(cat dist/plugin.json | jq -r .type)
export GRAFANA_PLUGIN_UPDATED=$(cat dist/plugin.json | jq -r .info.updated)
export GRAFANA_PLUGIN_ARTIFACT=${GRAFANA_PLUGIN_ID}-${GRAFANA_PLUGIN_VERSION}.zip
export GRAFANA_PLUGIN_ARTIFACT_CHECKSUM=${GRAFANA_PLUGIN_ARTIFACT}.md5
export GRAFANA_PLUGIN_RELEASE_NAME="${GRAFANA_PLUGIN_VERSION} (${GRAFANA_PLUGIN_UPDATED})"
echo "::set-output name=plugin-id::${GRAFANA_PLUGIN_ID}"
echo "::set-output name=plugin-version::${GRAFANA_PLUGIN_VERSION}"
echo "::set-output name=plugin-type::${GRAFANA_PLUGIN_TYPE}"
echo "::set-output name=archive::${GRAFANA_PLUGIN_ARTIFACT}"
echo "::set-output name=archive-checksum::${GRAFANA_PLUGIN_ARTIFACT_CHECKSUM}"
echo "::set-output name=release-name::${GRAFANA_PLUGIN_RELEASE_NAME}"
echo ::set-output name=github-tag::${GITHUB_REF#refs/*/}
- name: Read changelog
id: changelog
run: |
awk '/^## / {s++} s == 1 {print}' CHANGELOG.md > release_notes.md
# Get the latest section in CHANGELOG without it's header.
awk '/^$/{next} /^## / {s++;next} s == 1 {print}' CHANGELOG.md > release_notes.md
echo "::set-output name=path::release_notes.md"
- name: Check package version
Expand Down Expand Up @@ -111,7 +115,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
release_name: ${{ steps.metadata.outputs.release-name }}
body_path: ${{ steps.changelog.outputs.path }}
draft: true

Expand Down

0 comments on commit 76f6745

Please sign in to comment.