diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 43a582ef..0cb39d52 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,39 +1,39 @@ --- -name: Bug Report -about: Create a bug report -labels: bug - +name: Bug Report Template +about: Use this template to report bugs in the line-bot-sdk-python +title: 'Bug Report' --- -## Do this before creating an issue - - -- Check our [developers documentation](https://developers.line.biz/en/docs/messaging-api/) and [FAQ](https://developers.line.biz/en/faq/) for more information on LINE bots and the Messaging API - -## When creating an issue - - -- Make sure your issue is **related to** the LINE Bot SDK. For general questions about LINE bots, please ask in https://www.linebiz.com/contact/ -- Provide detailed information about the issue you had with the SDK as below - -## System Informations + -* Python version: -* SDK version: -* OS: +## System Information +- Python version: +- line-bot-sdk-python version: +- OS (and version): +- Any other relevant environment details (e.g. Framework version, hosting service, etc.): ## Expected Behavior - + ## Current Behavior - + ## Steps to Reproduce - -1. -1. -1. + 1. +2. +3. ## Logs - + + +## Additional Context (Optional) + \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/documentation.md b/.github/ISSUE_TEMPLATE/documentation.md index c8f44116..1266eb1c 100644 --- a/.github/ISSUE_TEMPLATE/documentation.md +++ b/.github/ISSUE_TEMPLATE/documentation.md @@ -1,8 +1,7 @@ --- name: "Documentation" about: Report an issue related to README.md or https://line-bot-sdk-python.readthedocs.io -labels: '' - +title: "Documentation Issue" --- ## Documentation diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 62c1472f..fb201194 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,8 +1,7 @@ --- name: Feature Request about: Suggest an idea for this project -labels: enhancement - +title: 'Feature Request' --- ## Do this before creating an issue diff --git a/.github/ISSUE_TEMPLATE/questions.md b/.github/ISSUE_TEMPLATE/questions.md index 8907324f..5a058f42 100644 --- a/.github/ISSUE_TEMPLATE/questions.md +++ b/.github/ISSUE_TEMPLATE/questions.md @@ -1,16 +1,44 @@ --- -name: Questions -about: Ask questions related to the LINE Bot SDK. -labels: question - +name: "Question Template" +about: "Use this template to ask questions about usage or implementation of the line-bot-sdk-python." +title: "Question" --- -## Do this before creating an issue - + + +## Have You Checked the Following? +- [ ] [SDK Document](https://line-bot-sdk-python.readthedocs.io/en/latest/) +- [ ] [Examples](https://github.com/line/line-bot-sdk-python/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 + -- Check our [developers documentation](https://developers.line.biz/en/docs/messaging-api/), [FAQ](https://developers.line.biz/en/faq/), and [developers community](https://www.line-community.me/questions) for more information on LINE bots and the Messaging API +## What You've Tried + -## When creating an issue - +## Your Environment + -- Make sure your issue is **related to** the LINE Bot SDK. For general questions about LINE bots, please ask in https://www.linebiz.com/contact/ +## Additional Context (Optional) + diff --git a/.github/workflows/close-issue.yml b/.github/workflows/close-issue.yml index ac4701ee..e9c006b8 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/label-issue.yml b/.github/workflows/label-issue.yml new file mode 100644 index 00000000..a440f781 --- /dev/null +++ b/.github/workflows/label-issue.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 }}