Skip to content

Commit 1b055a4

Browse files
authored
Improve github actions and issue templates (#57)
1 parent e3d5205 commit 1b055a4

File tree

7 files changed

+162
-58
lines changed

7 files changed

+162
-58
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
name: Bug report
3+
description: Create a report to help us improve
4+
title: "[ISSUE] "
5+
labels: ["bug", "pending"]
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for taking the time to fill out this bug report!
11+
- type: textarea
12+
id: what-happened
13+
attributes:
14+
label: What happened?
15+
description: Please be clear and concise, and also tell us what you expected to happen
16+
placeholder: Tell us what you see!
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: reproduce
21+
attributes:
22+
label: Steps to reproduce the issue
23+
description: |
24+
Please tell us exactly how to reproduce your issue.
25+
Provide clear and concise step by step instructions and add code snippets if needed.
26+
value: |
27+
1.
28+
2.
29+
3.
30+
...
31+
validations:
32+
required: true
33+
- type: markdown
34+
attributes:
35+
value: |
36+
## Environment
37+
- type: input
38+
id: ha_version
39+
attributes:
40+
label: Home Assistant Version
41+
description: What version of Home Assistant are you running?
42+
placeholder: 2024.3.0
43+
validations:
44+
required: true
45+
- type: input
46+
id: lcm_version
47+
attributes:
48+
label: What version of Lock Code Manager are you running?
49+
placeholder: 0.1.0
50+
validations:
51+
required: true
52+
- type: input
53+
id: lock
54+
attributes:
55+
label: Lock make and model
56+
description: If relevant, please provide the lock make and model
57+
placeholder: Schlage BE469
58+
- type: markdown
59+
attributes:
60+
value: |
61+
## Additional details
62+
- type: textarea
63+
id: logs
64+
attributes:
65+
label: Relevant log output
66+
description: >
67+
Please set the log level for the integration to debug, reproduce the issue,
68+
and copy and paste any relevant log output. This will be automatically
69+
formatted into code, so no need for backticks.
70+
render: shell
71+
- type: textarea
72+
id: screenshots
73+
attributes:
74+
label: Screenshots
75+
description: If applicable, add screenshots to help explain your problem.
76+
- type: textarea
77+
id: else
78+
attributes:
79+
label: Anything else?
80+
description: Is there any other information that's worth mentioning?

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
description: Suggest an idea for this project
4+
title: "[Feature Request] "
5+
labels: ["enhancement"]
6+
body:
7+
- type: textarea
8+
id: problem
9+
attributes:
10+
label: Problem Description
11+
description: If applicable, please describe the problem you are trying to solve with this request
12+
- type: textarea
13+
id: feature
14+
attributes:
15+
label: Feature Description
16+
description: Please describe the feature request with as much detail as you can
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: else
21+
attributes:
22+
label: Anything else?
23+
description: Is there any other information that's worth mentioning?

.github/dependabot.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,22 @@ updates:
1111
schedule:
1212
interval: daily
1313
open-pull-requests-limit: 10
14+
labels:
15+
- "dependencies"
16+
- "github_actions"
1417
- package-ecosystem: pip
1518
directory: "/" # Location of package manifests
1619
schedule:
1720
interval: daily
1821
open-pull-requests-limit: 10
22+
labels:
23+
- "dependencies"
24+
- "python"
1925
- package-ecosystem: npm
2026
directory: "/" # Location of package manifests
2127
schedule:
2228
interval: daily
2329
open-pull-requests-limit: 10
30+
labels:
31+
- "dependencies"
32+
- "javascript"

.github/release-drafter.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@ name-template: "$RESOLVED_VERSION"
33
tag-template: "$RESOLVED_VERSION"
44
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
55
sort-direction: ascending
6+
autolabeler:
7+
- label: 'javascript'
8+
files:
9+
- '*.ts'
10+
- '*.js'
11+
- 'package.json'
12+
- 'package-lock.json'
13+
- 'yarn.lock'
14+
- '.eslintrc.cjs'
15+
- 'tsconfig.json'
16+
- 'rollup.config.js'
17+
- label: 'python'
18+
files:
19+
- 'requirements_*.txt'
20+
- 'Pipfile'
21+
- 'Pipfile.lock'
22+
- 'setup.py'
23+
- 'pyproject.toml'
24+
- 'tox.ini'
25+
- '*.py'
26+
- label: 'github_actions'
27+
files:
28+
- '.github/*'
629
version-resolver:
730
major:
831
labels:
@@ -18,25 +41,21 @@ categories:
1841
- title: ":boom: Breaking Change :boom:"
1942
labels:
2043
- "breaking-change"
21-
- title: ":zap: Enhancments :zap:"
44+
- title: ":zap: Enhancements :zap:"
2245
labels:
2346
- "enhancement"
24-
- title: ":sparkles: New Features :sparkles:"
25-
labels:
26-
- "feature"
2747
- title: ":bug: Bug Fixes :bug:"
2848
labels:
2949
- "fix"
3050
- "bugfix"
3151
- "bug"
32-
- title: ":wrench: Maintenance :wrench:"
33-
labels:
34-
- "chore"
35-
- "repo"
36-
- "maintenance"
3752
- title: ":mortar_board: Code Quality :mortar_board:"
3853
labels:
3954
- "code-quality"
55+
- title: "⬆️ Dependencies"
56+
collapse-after: 1
57+
labels:
58+
- "dependencies"
4059
# yamllint disable rule:line-length
4160
template: |
4261
[![Downloads for this release](https://img.shields.io/github/downloads/raman325/lock_code_manager/$RESOLVED_VERSION/total.svg)](https://github.com/raman325/lock_code_manager/releases/$RESOLVED_VERSION)

.github/workflows/release-drafter.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,33 @@ on:
66
push:
77
branches:
88
- main
9+
pull_request:
10+
types:
11+
- labeled
12+
- opened
13+
- reopened
14+
- synchronize
15+
- unlabeled
16+
pull_request_target:
17+
types:
18+
- labeled
19+
- opened
20+
- reopened
21+
- synchronize
22+
- unlabeled
23+
24+
permissions:
25+
contents: read
926

1027
jobs:
1128
update_release_draft:
29+
permissions:
30+
contents: write
31+
pull-requests: write
1232
runs-on: ubuntu-latest
1333
steps:
1434
- uses: release-drafter/release-drafter@v6
35+
with:
36+
commitish: main
1537
env:
1638
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)