diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index d9aaec1de..1b2acc647 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: - +name: Bug Report Template +about: Use this template to report bugs in the line-bot-sdk-java +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. Send message on '...' -2. Receive message on '....' -3. Scroll down to '....' -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] - - JDK Version [e.g. openjdk 1.8.0_211] - - line-bot-sdk-java version(s) [e.g. 2.6.1] - -**Additional context** -Add any other context about the problem here. + + +## System Information +- OS: [e.g. Ubuntu] +- JDK Version [e.g. openjdk 1.8.0_211] +- line-bot-sdk-java version(s) [e.g. 2.6.1] + +## 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 index aa9bb80ce..7fba65c98 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,10 +1,7 @@ --- name: Feature request about: Suggest an idea for this project -title: "[Feature Request]" -labels: feature request -assignees: - +title: "Feature Request" --- ## Feature Request diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 000000000..6b447cc07 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,42 @@ +--- +name: "Question Template" +about: "Use this template to ask questions about usage or implementation of the line-bot-sdk-java." +title: "Question" +--- + + + +## Have You Checked the Following? +- [ ] [Examples](https://github.com/line/line-bot-sdk-java/tree/master/samples/) +- [ ] [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 62a119848..7106e0624 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 000000000..a440f7817 --- /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 }}