Skip to content

Commit 43c906c

Browse files
authored
Feat(Repo): add issue / PR template and label-commenter and close/stale issue config (#556)
1 parent c576de5 commit 43c906c

File tree

5 files changed

+171
-98
lines changed

5 files changed

+171
-98
lines changed
Lines changed: 76 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,104 @@
11
name: Bug Report
2-
description: File a bug report
3-
labels: ["bug"]
2+
description: Create a report to help us improve glpiinventory
43
body:
54
- type: markdown
65
attributes:
76
value: |
8-
Thanks for taking the time to fill out this bug report!
9-
- type: textarea
10-
id: description
7+
8+
Dear GLPI plugin user.
9+
10+
**⚠️ Please never use standard issues to report security problems. See [security policy](https://github.com/pluginsGLPI/glpiinventory/security/policy) for more details. ⚠️**
11+
12+
BEFORE SUBMITTING YOUR ISSUE, please make sure to read and follow these steps:
13+
14+
* We do not track feature requests nor enhancements here. Propose them on the [suggest dedicated site](https://suggest.glpi-project.org).
15+
* Keep this tracker in ENGLISH. If you want support in your language, the [community forum](https://forum.glpi-project.org) is the best place.
16+
* Always try to reproduce your issue at least on latest stable release.
17+
18+
The GLPI team.
19+
- type: markdown
20+
attributes:
21+
value: |
22+
## Professional Support
23+
24+
We do not guarantee any processing / resolution time for community issues.
25+
26+
If you need a quick fix or any guarantee, you should consider to buy a GLPI Network Subscription.
27+
28+
More information here: https://glpi-project.org/subscriptions/
29+
- type: checkboxes
30+
id: terms
1131
attributes:
12-
label: Describe the bug
13-
description: A clear and concise description of what the bug is.
32+
label: Code of Conduct
33+
description: By submitting this issue, you agree to follow hereinabove rules and [Contribution guide](https://github.com/glpi-project/glpi/blob/main/CONTRIBUTING.md)
34+
options:
35+
- label: I agree to follow this project's Code of Conduct
1436
validations:
1537
required: true
16-
- type: textarea
17-
id: reproduce
38+
- type: checkboxes
1839
attributes:
19-
label: To reproduce
20-
description: "Steps to reproduce the behavior:"
21-
placeholder: |
22-
1.
23-
2.
24-
3.
25-
...
40+
label: Is there an existing issue for this?
41+
description: Please search to see if an issue already exists for the bug you encountered.
42+
options:
43+
- label: I have searched the existing issues
2644
validations:
2745
required: true
28-
- type: textarea
29-
id: expected
46+
- type: input
47+
id: glpi-version
3048
attributes:
31-
label: Expected behavior
32-
placeholder: A clear and concise description of what you expected to happen.
49+
label: GLPI Version
50+
description: What version of our GLPI are you running?
3351
validations:
3452
required: true
35-
- type: dropdown
36-
id: os
53+
- type: input
54+
id: plugin-version
3755
attributes:
38-
label: Operating system
39-
description: On which operating system is the GLPI agent that is experiencing this issue?
40-
options:
41-
- Windows
42-
- Linux
43-
- MacOSX
44-
- Other (See additional context below)
45-
multiple: true
56+
label: Plugin version
57+
description: What version of `glpiinventory` are you running?
4658
validations:
4759
required: true
48-
- type: dropdown
49-
id: version
60+
- type: textarea
5061
attributes:
51-
label: GLPI Agent version
52-
description: Which GLPI agent version is triggering this issue?
53-
options:
54-
- 1.6.1
55-
- 1.6
56-
- 1.5
57-
- 1.4
58-
- 1.3
59-
- 1.2
60-
- 1.1
61-
- 1.0
62-
- Nightly build (git version in additional context below)
63-
- Other (See additional context below)
64-
multiple: true
62+
label: Bug description
63+
description: A concise description of the problem you are experiencing and what you expected to happen.
6564
validations:
66-
required: true
67-
- type: dropdown
68-
id: glpi-version
65+
required: false
66+
- type: textarea
67+
id: logs
6968
attributes:
70-
label: GLPI version
71-
description: What is your GLPI version on server-side?
72-
options:
73-
- 10.0.12
74-
- 10.0.11
75-
- 10.0.10
76-
- 10.0.9
77-
- 10.0.8
78-
- 10.0.7
79-
- 10.0.6
80-
- 10.0.5
81-
- 10.0.4
82-
- 10.0.3
83-
- 10.0.2
84-
- 10.0.1
85-
- 10.0.0
86-
- Other (See additional context below)
87-
- development release (See additional context below)
88-
multiple: true
69+
label: Relevant log output
70+
description: |
71+
Please copy and paste any relevant log output. Find them in `*-error.log` files under `glpi/files/_log/`.
72+
73+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
74+
render: shell
75+
- type: input
76+
id: url
77+
attributes:
78+
label: Page URL
79+
description: If applicable, page URL where the bug happens.
8980
validations:
90-
required: true
91-
- type: dropdown
92-
id: plugin-version
81+
required: false
82+
- type: textarea
9383
attributes:
94-
label: GLPIInventory plugin
95-
description: What is your GLPIInventory plugin version on server-side?
96-
options:
97-
- 1.3.5
98-
- 1.3.4
99-
- 1.3.3
100-
- 1.3.2
101-
- 1.3.1
102-
- 1.3.0
103-
- 1.2.3
104-
- 1.2.2
105-
- 1.2.1
106-
- 1.2.0
107-
- 1.1.0
108-
- 1.0.6
109-
- 1.0.5
110-
- 1.0.4
111-
- 1.0.3
112-
- 1.0.2
113-
- 1.0.1
114-
- 1.0.0
115-
- Other (See additional context below)
116-
- development release (See additional context below)
117-
multiple: true
84+
label: Steps To reproduce
85+
description: Steps to reproduce the behavior.
86+
placeholder: |
87+
1. With this config...
88+
2. Go to...
89+
3. Scroll down to...
90+
4. See error...
91+
validations:
92+
required: false
93+
- type: textarea
94+
attributes:
95+
label: Your GLPI setup information
96+
description: Please copy and paste information you will find in GLPI in `Setup > General` menu, `System` tab.
11897
validations:
11998
required: false
12099
- type: textarea
121-
id: context
122100
attributes:
123-
label: Additional context
124-
placeholder: Add any other context about the problem here.
101+
label: Anything else?
102+
description: Add any other context about the problem here.
125103
validations:
126104
required: false

.github/label-commenter-config.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
labels:
2+
- name: "invalid"
3+
labeled:
4+
issue:
5+
body: |
6+
This issue has been closed because you did not provide the requested information.
7+
action: "close"
8+
- name: "support"
9+
labeled:
10+
issue:
11+
body: |
12+
This issue has been closed as we only track bugs here.
13+
14+
You can get community support on [forums](https://forum.glpi-project.org/) or you can consider [taking a subscription](https://glpi-project.org/subscriptions/) to get professional support.
15+
You can also [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly.
16+
action: close
17+
- name: "feature suggestion"
18+
labeled:
19+
issue:
20+
body: |
21+
This issue has been closed as we only track bugs here.
22+
23+
You can open a topic to discuss with community about this enhancement on [suggestion website](https://glpi.userecho.com/).
24+
You can also [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly if you are willing to sponsor this feature.
25+
action: close

.github/pull_request_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Checklist before requesting a review
2+
3+
*Please delete options that are not relevant.*
4+
5+
- [ ] I have performed a self-review of my code.
6+
- [ ] I have added tests (when available) that prove my fix is effective or that my feature works.
7+
- [ ] This change requires a documentation update.
8+
9+
## Description
10+
11+
- It fixes # (issue number, if applicable)
12+
- Here is a brief description of what this PR does
13+
14+
## Screenshots (if appropriate):
15+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Close stale issues'
2+
on:
3+
schedule:
4+
- cron: '0 8 * * *'
5+
6+
jobs:
7+
stale:
8+
if: github.repository == 'glpi-plugin/glpiinventory'
9+
permissions:
10+
issues: write # for actions/stale to close stale issues
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/stale@v9
14+
with:
15+
stale-issue-message: >-
16+
There has been no activity on this issue for some time and therefore it is considered stale
17+
and will be closed automatically in 10 days.
18+
19+
20+
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist,
21+
feel free to add a comment to revive this issue.
22+
23+
If it is related to a new feature, please open a topic to discuss with community about this enhancement
24+
on [suggestion website](https://glpi.userecho.com/).
25+
26+
27+
You may also consider taking a [subscription](https://glpi-project.org/subscriptions/) to get professionnal
28+
support or [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly.
29+
days-before-issue-stale: 15
30+
days-before-pr-stale: -1 # PR will be marked as stale manually.
31+
days-before-close: 5
32+
exempt-issue-labels: "bug,enhancement,question,security" # Issues with "bug", "enhancement", "question" or "security" labels will not be marked as stale
33+
exempt-all-milestones: true # Do not check issues/PR with defined milestone.
34+
ascending: true # First check older issues/PR.
35+
operations-per-run: 750 # Max API calls per run.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Label commenter"
2+
3+
on:
4+
issues:
5+
types:
6+
- "labeled"
7+
- "unlabeled"
8+
9+
jobs:
10+
comment:
11+
permissions:
12+
contents: "read"
13+
issues: "write"
14+
runs-on: "ubuntu-latest"
15+
steps:
16+
- name: "Checkout"
17+
uses: "actions/checkout@v4"
18+
19+
- name: "Label commenter"
20+
uses: "peaceiris/actions-label-commenter@v1"

0 commit comments

Comments
 (0)