Add labeler and updates issues templates

This commit is contained in:
lowlighter
2021-01-10 02:37:12 +01:00
parent b0a8dd8bff
commit 548a718154
7 changed files with 130 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
---
name: Bug report
name: 🐞 Bug report
about: Create a report to help us improve
title: ''
labels: bug
@@ -7,14 +7,30 @@ assignees: ''
---
**Bug description**
<!-- A clear and concise description of what the bug is. -->
<!--
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
👋 Hi there!
Thanks for using metrics and helping us to improve!
**To Reproduce**
<!-- List steps to reproduce the behavior. -->
Please check the following before filling a bug report:
- It does not duplicate another existing issue
- Retry at least once to confirm that it was not some random error
**Additional context and screenshots**
<!-- Add any other context or screenshots about the problem here. -->
For visual issues, mispelled words, etc. ...
- Provide a description of what you expected to happen
- Optionally add screenshots or additional context
For runtime errors...
impacting action version:
- Paste an excerpt of:
- workflow step
- error logs
- direct GitHub links to the above
impacting web instance version:
- Paste used url query
For other issues...
- Just write a clear and concise description of what the bug is
-->

View File

@@ -1,5 +1,5 @@
---
name: Feature request
name: 🗳️ Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
@@ -7,8 +7,21 @@ assignees: ''
---
**Feature description**
<!-- A clear and concise description of what the problem is. -->
<!--
**Additional context**
<!-- Add any other context or screenshots about the feature request here. -->
👋 Hi there!
Thanks for using metrics and helping us to improve!
Please check the following before filling a feature request:
- It does not duplicate another existing issue
- It is not mentioned in https://github.com/lowlighter/metrics/projects/1
For plugin requests...
- Add "plugin" label
- Optionally add screenshots or additional context
For other requests...
- Just write a clear and concise description about the feature request
- Optionally add screenshots or additional context
-->

View File

@@ -1,5 +1,5 @@
---
name: Question
name: 💬 Question
about: Ask a question or request help
title: ''
labels: question
@@ -7,4 +7,26 @@ assignees: ''
---
<!-- A clear and concise description of what you want to discuss. -->
<!--
👋 Hi there!
Thanks for using metrics!
Before asking a question or for help, try to:
- Search for a similar already existing issue
- Check README.md documentation
- Note that most of documentation is collapsed by default, so be sure to open sections marked with "▶",
the solution to your problem may already be present!
For setup help...
- Be sure to create required secrets (METRICS_TOKEN and other plugins token when needed)
- Paste an excerpt of:
- workflow step
- error logs (if applicable)
- direct GitHub links to the above
- Optionally add screenshots or additional context
For other questions...
- Just write about what you want to talk!
-->

37
.github/config/label.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
# Repository files
repository:
- .github/**
- .gitignore
- .gitattributes
- README.md
- SECURITY.md
- LICENSE
- CONTRIBUTING.md
# Docker
docker:
- .dockerignore
- Dockerfile
# Metrics source code editions
core:
- source/app/metrics.mjs
- source/app/setup.mjs
action:
- source/app/action
- action.yml
web:
- source/app/web
- settings.example.json
plugin:
- source/plugins
queries:
- source/queries
templates:
- source/templates
tests:
- source/app/mocks.mjs
- tests/**
dependencies:
- package.json
- package-lock.json

15
.github/workflows/label.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Label issue and pull requests
on:
pull_request:
jobs:
label:
name: Label issue and pull requests
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/config/label.yml
sync-labels: yes

View File

@@ -6,13 +6,17 @@ on:
jobs:
stale:
name: Flag stale issues and pull requests
runs-on: ubuntu-latest
steps:
- name: Flag stale issues and pull requests
uses: actions/stale@v3
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: This issue has been open 30 days without activity. It will be closed in 5 days if it remains inactive.
stale-pr-message: This pull request has been open 30 days without activity. It will be closed in 5 days if it remains inactive.
days-before-stale: 30
days-before-close: 5
stale-issue-message: This issue seems to be inactive and will be automatically closed in a few days if it remains without any activity.
stale-pr-message: This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity.
days-before-stale: 21
days-before-close: 3
stale-issue-label: stale
stale-pr-label: stale
remove-stale-when-updated: yes
operations-per-run: 100

View File

@@ -1,4 +1,4 @@
### 📝 Reporting a Vulnerability
To report a vulnerability, simply open an [issue](https://github.com/lowlighter/metrics/issues).
To report a vulnerability, simply open an [issue](https://github.com/lowlighter/metrics/issues) with `security` label.
We'll try to patch it quickly.