From 1cc470d58e0fd3cd15fcdb38cb942e65c831e5fe Mon Sep 17 00:00:00 2001 From: Euchi Yuta Date: Fri, 23 May 2025 16:20:02 +0900 Subject: [PATCH 1/3] Improve issue triage and issue template --- .github/ISSUE_TEMPLATE/bug_report.md | 68 ++++++++++++----------- .github/ISSUE_TEMPLATE/feature_request.md | 21 +++++++ .github/ISSUE_TEMPLATE/question.md | 43 ++++++++++++++ .github/workflows/close-issue.yml | 2 +- .github/workflows/issue-label.yml | 32 +++++++++++ 5 files changed, 132 insertions(+), 34 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/question.md create mode 100644 .github/workflows/issue-label.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 20eaf7966..25706f38b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,36 +1,38 @@ --- -name: Bug report -about: Create a report to help us improve -title: '[BUG]' -labels: 'bug' -assignees: 'kawasako' - +name: Bug Report Template +about: Use this template to report bugs in the line-bot-sdk-nodejs +title: 'Bug Report' --- -## Bug Report - - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** - -Steps to reproduce the behavior: -1. use '...' function, pass the '...' parameter. -2. ... -3. ??? -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Environment (please complete the following information):** - - OS: [e.g. Ubuntu] - - Node.js Version [e.g. Node 8] - - line-bot-sdk-nodejs version(s) [e.g. 6.8.0] - -**Additional context** -Add any other context about the problem here. + + +## System Information +- OS: [e.g. Ubuntu] +- Node.js Version [e.g. Node v20.0.0] +- line-bot-sdk-nodejs version(s) [e.g. 6.8.0] + +## Expected Behavior + + +## Current Behavior + + +## Steps to Reproduce + +1. +2. +3. + +## Logs + + +## Additional Context (Optional) + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 000000000..fe7966f87 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,21 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: "Feature Request" + +--- + +## Feature Request + + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 000000000..a0a353c32 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,43 @@ +--- +name: "Question Template" +about: "Use this template to ask questions about usage or implementation of the line-bot-sdk-nodejs." +title: "Question" +--- + + + +## Have You Checked the Following? +- [ ] [LINE Messaging API SDK for nodejs](https://line.github.io/line-bot-sdk-nodejs/) +- [ ] [Examples](https://github.com/line/line-bot-sdk-nodejs/tree/master/examples/) +- [ ] [Developer Documentation - LINE Developers](https://developers.line.biz/en/docs/) +- [ ] [FAQ - LINE Developers](https://developers.line.biz/en/faq/tags/messaging-api/) + +## Summary of Your Question + + +## Details + + +## What You've Tried + + +## Your Environment + + +## Additional Context (Optional) + diff --git a/.github/workflows/close-issue.yml b/.github/workflows/close-issue.yml index 2a97a46cf..3e6edf640 100644 --- a/.github/workflows/close-issue.yml +++ b/.github/workflows/close-issue.yml @@ -19,7 +19,7 @@ jobs: days-before-issue-close: 0 stale-issue-label: "no-activity" close-issue-message: "This issue was closed because it has been inactive for 14 days." - exempt-issue-labels: "bug,enhancement,keep" + exempt-issue-labels: "bug,enhancement,keep,untriaged" days-before-pr-stale: -1 days-before-pr-close: 14 stale-pr-label: "no-activity" diff --git a/.github/workflows/issue-label.yml b/.github/workflows/issue-label.yml new file mode 100644 index 000000000..a440f7817 --- /dev/null +++ b/.github/workflows/issue-label.yml @@ -0,0 +1,32 @@ +name: Label issue + +on: + issues: + types: + - opened + - reopened + - closed + +jobs: + label-issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Add label on issue open + if: github.event.action == 'opened' || github.event.action == 'reopened' + run: | + gh issue edit ${{ github.event.issue.number }} \ + --add-label "untriaged" \ + env: + GH_TOKEN: ${{ github.token }} + + - name: Remove label on issue close + if: github.event.action == 'closed' + run: | + gh issue edit ${{ github.event.issue.number }} \ + --remove-label "untriaged" + env: + GH_TOKEN: ${{ github.token }} From 5a76a229aa8753aef0aed425f285dbe6a37aebe3 Mon Sep 17 00:00:00 2001 From: Yuta Euchi <63095160+eucyt@users.noreply.github.com> Date: Fri, 23 May 2025 16:51:12 +0900 Subject: [PATCH 2/3] Update bug_report.md --- .github/ISSUE_TEMPLATE/bug_report.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index cb7b1b275..f5c39e2dc 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,9 +4,13 @@ about: Use this template to report bugs in the line-bot-sdk-nodejs title: 'Bug Report' --- -## Bug Report - - + ## System Information - OS: [e.g. Ubuntu] - Node.js Version [e.g. Node v20.0.0] From e5456d5f9ac519c995d1dec77086d16d1215d0a8 Mon Sep 17 00:00:00 2001 From: Yuta Euchi <63095160+eucyt@users.noreply.github.com> Date: Fri, 23 May 2025 16:51:37 +0900 Subject: [PATCH 3/3] Update bug_report.md --- .github/ISSUE_TEMPLATE/bug_report.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f5c39e2dc..9cdd46137 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -11,6 +11,7 @@ title: 'Bug Report' ## When Creating an Issue - Provide detailed information about the issue you experienced with the SDK using the template below. --> + ## System Information - OS: [e.g. Ubuntu] - Node.js Version [e.g. Node v20.0.0]