Skip to content

Commit 92f9320

Browse files
authored
Improve issue triage and issue template (#109)
Related to line/line-bot-sdk-ruby#597
1 parent 69a12e8 commit 92f9320

File tree

5 files changed

+130
-1
lines changed

5 files changed

+130
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug Report Template
3+
about: Use this template to report bugs in the line-openapi
4+
title: 'Bug Report'
5+
---
6+
7+
<!--
8+
## Before Creating an Issue
9+
- Please check our [developer documentation](https://developers.line.biz/en/docs/) and [FAQ](https://developers.line.biz/en/faq/tags/messaging-api/) for more information on the Messaging API
10+
- Make sure the issue you are reporting isn't already addressed in the documentation or existing issues.
11+
## When Creating an Issue
12+
- Provide detailed information about the issue you experienced with the SDK using the template below.
13+
-->
14+
15+
## System Information
16+
- OS: [e.g. Ubuntu]
17+
- line-openapi version(s) [e.g. 2.6.1]
18+
19+
## Expected Behavior
20+
<!-- Describe what you expected to happen -->
21+
22+
## Current Behavior
23+
<!-- Describe what actually happened instead of the expected behavior -->
24+
25+
## Steps to Reproduce
26+
<!-- Provide a link to a live example or a clear set of steps to reproduce the issue.
27+
If possible, provide minimal code (e.g. test code, a draft PR, or a link to a forked repository). -->
28+
1.
29+
2.
30+
3.
31+
32+
## Logs
33+
<!-- If possible, provide logs to help identify the issue -->
34+
35+
## Additional Context (Optional)
36+
<!-- Add any other context or information that might be relevant to the issue.
37+
For example, related issues, potential causes, or possible solutions. -->
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "Feature Request"
5+
---
6+
7+
## Feature Request
8+
<!-- First of all: Have you checked the docs https://developers.line.biz/en/docs/messaging-api/overview/, Q&A page https://developers.line.biz/en/faq/, GitHub issues whether someone else has already reported your issue? -->
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: "Question Template"
3+
about: "Use this template to ask questions about usage or implementation of the line-openapi."
4+
title: "Question"
5+
---
6+
7+
<!--
8+
## Before Creating a Question Issue
9+
- Please check the [developer documentation](https://developers.line.biz/en/docs/) and [FAQ](https://developers.line.biz/en/faq/tags/messaging-api/) for answers to common questions.
10+
- Make sure your question hasn't already been asked in other Issues or the documentation.
11+
## This Is Not
12+
- A bug report. If you think you've found a bug, please use the "Bug Report" template.
13+
- A place to request new features. If you have a feature request, consider opening a "Feature Request" issue or PR.
14+
## When Creating a Question
15+
- Provide detailed information about your environment and context so we can better understand and answer your question.
16+
- Let us know what you've tried so far (e.g. searching docs, existing issues, etc.).
17+
-->
18+
19+
## Have You Checked the Following?
20+
- [ ] [Developer Documentation - LINE Developers](https://developers.line.biz/en/docs/)
21+
- [ ] [FAQ - LINE Developers](https://developers.line.biz/en/faq/tags/messaging-api/)
22+
23+
## Summary of Your Question
24+
<!-- Provide a clear and concise description of what you want to know. -->
25+
26+
## Details
27+
<!-- Provide any code snippets, relevant logs, or background details that will help us understand your question better. -->
28+
29+
## What You've Tried
30+
<!-- Let us know any steps you've already taken to answer your own question,
31+
such as searching in documentation or checking existing issues. -->
32+
33+
## Your Environment
34+
<!-- For example:
35+
- OS: [e.g. Ubuntu]
36+
- line-openapi version(s) [e.g. 2.6.1]
37+
-->
38+
39+
## Additional Context (Optional)
40+
<!-- Add any other context, possible considerations, or related links here. -->

.github/workflows/close-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
days-before-issue-close: 0
1919
stale-issue-label: "no-activity"
2020
close-issue-message: "This issue was closed because it has been inactive for 14 days."
21-
exempt-issue-labels: "bug,enhancement,keep"
21+
exempt-issue-labels: "bug,enhancement,keep,untriaged"
2222
days-before-pr-stale: 14
2323
days-before-pr-close: 0
2424
stale-pr-label: "no-activity"

.github/workflows/label-issue.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Label issue
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
- closed
9+
10+
jobs:
11+
label-issues:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
steps:
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
18+
- name: Add label on issue open
19+
if: github.event.action == 'opened' || github.event.action == 'reopened'
20+
run: |
21+
gh issue edit ${{ github.event.issue.number }} \
22+
--add-label "untriaged" \
23+
env:
24+
GH_TOKEN: ${{ github.token }}
25+
26+
- name: Remove label on issue close
27+
if: github.event.action == 'closed'
28+
run: |
29+
gh issue edit ${{ github.event.issue.number }} \
30+
--remove-label "untriaged"
31+
env:
32+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)