From 548a7181547c92f0d78a2db9ea73c1dfb390f60c Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sun, 10 Jan 2021 02:37:12 +0100 Subject: [PATCH] Add labeler and updates issues templates --- .github/ISSUE_TEMPLATE/bug_report.md | 34 +++++++++++++++------ .github/ISSUE_TEMPLATE/feature_request.md | 23 +++++++++++--- .github/ISSUE_TEMPLATE/question.md | 26 ++++++++++++++-- .github/config/label.yml | 37 +++++++++++++++++++++++ .github/workflows/label.yml | 15 +++++++++ .github/workflows/stale.yml | 16 ++++++---- SECURITY.md | 2 +- 7 files changed, 130 insertions(+), 23 deletions(-) create mode 100644 .github/config/label.yml create mode 100644 .github/workflows/label.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 6cb738a3..075d2b5b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -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** - + + 👋 Hi there! + Thanks for using metrics and helping us to improve! -**To Reproduce** - + 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** - + 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 + +--> diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 1ec0b71b..9fd02786 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -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** - + + 👋 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 + +--> diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index 2a6181a3..e59f5c52 100644 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -1,5 +1,5 @@ --- -name: Question +name: 💬 Question about: Ask a question or request help title: '' labels: question @@ -7,4 +7,26 @@ assignees: '' --- - + diff --git a/.github/config/label.yml b/.github/config/label.yml new file mode 100644 index 00000000..99a46131 --- /dev/null +++ b/.github/config/label.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 00000000..dcb53fbb --- /dev/null +++ b/.github/workflows/label.yml @@ -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 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index be815bf4..9a7c57d7 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -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 diff --git a/SECURITY.md b/SECURITY.md index 8128e875..c835b91d 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -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.