Skip to content

Commit 8479472

Browse files
authored
Merge branch 'main' into config_flow
2 parents 9f265f7 + 4113bc7 commit 8479472

37 files changed

+915
-483
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

-30
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

+80
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

-19
This file was deleted.
+23
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

+9
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

+44-9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,45 @@ 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/*'
29+
- label: 'dependencies'
30+
body:
31+
- '/\[x\] dependency/i'
32+
- label: 'bug'
33+
body:
34+
- '/\[x\] bugfix/i'
35+
- label: 'enhancement'
36+
body:
37+
- '/\[x\] new feature/i'
38+
- label: 'breaking-change'
39+
body:
40+
- '/\[x\] breaking change/i'
41+
- label: 'code-quality'
42+
body:
43+
- '/\[x\] code quality/i'
44+
645
version-resolver:
746
major:
847
labels:
@@ -18,25 +57,21 @@ categories:
1857
- title: ":boom: Breaking Change :boom:"
1958
labels:
2059
- "breaking-change"
21-
- title: ":zap: Enhancments :zap:"
60+
- title: ":zap: Enhancements :zap:"
2261
labels:
2362
- "enhancement"
24-
- title: ":sparkles: New Features :sparkles:"
25-
labels:
26-
- "feature"
2763
- title: ":bug: Bug Fixes :bug:"
2864
labels:
2965
- "fix"
3066
- "bugfix"
3167
- "bug"
32-
- title: ":wrench: Maintenance :wrench:"
33-
labels:
34-
- "chore"
35-
- "repo"
36-
- "maintenance"
3768
- title: ":mortar_board: Code Quality :mortar_board:"
3869
labels:
3970
- "code-quality"
71+
- title: "⬆️ Dependencies"
72+
collapse-after: 1
73+
labels:
74+
- "dependencies"
4075
# yamllint disable rule:line-length
4176
template: |
4277
[![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/combined.yaml renamed to .github/workflows/hacs.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: "Validation And Formatting"
2+
name: "HACS"
33
# yamllint disable-line rule:truthy
44
on:
55
push:
@@ -17,9 +17,3 @@ jobs:
1717
uses: "hacs/action@main"
1818
with:
1919
category: "integration"
20-
validate_hassfest:
21-
name: "Hassfest Validation"
22-
runs-on: "ubuntu-latest"
23-
steps:
24-
- uses: "actions/checkout@v4"
25-
- uses: home-assistant/actions/hassfest@master

.github/workflows/hassfest.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: "Hassfest"
3+
# yamllint disable-line rule:truthy
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
validate_hassfest:
12+
name: "Hassfest Validation"
13+
runs-on: "ubuntu-latest"
14+
steps:
15+
- uses: "actions/checkout@v4"
16+
- uses: home-assistant/actions/hassfest@master

.github/workflows/pytest.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313
- "**.py"
1414

1515
jobs:
16-
build:
16+
test:
17+
name: Python ${{ matrix.python-version }} Test
1718
runs-on: ubuntu-latest
1819
strategy:
1920
matrix:
@@ -30,7 +31,7 @@ jobs:
3031
sudo apt-get install libudev-dev
3132
python -m pip install --upgrade pip
3233
pip install -r requirements_dev.txt
33-
- name: Generate coverage report
34+
- name: Run tests and generate coverage report
3435
run: |
3536
python -m pytest
3637
pip install pytest-cov

.github/workflows/release-drafter.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,34 @@ 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+
name: Update release draft
30+
permissions:
31+
contents: write
32+
pull-requests: write
1233
runs-on: ubuntu-latest
1334
steps:
1435
- uses: release-drafter/release-drafter@v6
36+
with:
37+
commitish: main
1538
env:
1639
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/yarn.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [main]
66
paths:
7+
- "**.js"
78
- "**.ts"
89
- "js/**"
910
- ".eslintrc.cjs"
@@ -13,6 +14,7 @@ on:
1314
pull_request:
1415
branches: [main]
1516
paths:
17+
- "**.js"
1618
- "**.ts"
1719
- "js/**"
1820
- ".eslintrc.cjs"
@@ -22,6 +24,7 @@ on:
2224

2325
jobs:
2426
yarn:
27+
name: Yarn lint and build
2528
runs-on: ubuntu-latest
2629
strategy:
2730
matrix:
@@ -36,12 +39,14 @@ jobs:
3639
uses: actions/setup-node@v4
3740
with:
3841
node-version: ${{ matrix.node-version }}
39-
- name: Build
40-
run: |
41-
yarn build
42+
- name: Install
43+
run: yarn install
4244
- name: Lint
4345
run: |
4446
yarn lint:fix
47+
- name: Build
48+
run: |
49+
yarn build
4550
- name: Check for changes
4651
id: changes
4752
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files

0 commit comments

Comments
 (0)