Skip to content

Commit 035fdc6

Browse files
committed
Update workflow
1 parent 6bdc98d commit 035fdc6

File tree

14 files changed

+588
-0
lines changed

14 files changed

+588
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Before you open a new issue, search through the existing issues to see if others have had the same problem.
11+
12+
Issues not containing the minimum requirements will be closed:
13+
14+
- Issues without a description (using the header is not good enough) will be closed.
15+
- Issues without debug logging will be closed.
16+
- Issues without configuration will be closed
17+
18+
-->
19+
20+
**Versions**
21+
<!--
22+
If you are not using the newest version, download and try that before opening an issue.
23+
If you are unsure about the version check the __init__.py or const.py files.
24+
-->
25+
26+
* Version of the Home Assistant:
27+
* Version of the custom component:
28+
29+
**Configuration**
30+
```yaml
31+
32+
Add your configs here.
33+
34+
```
35+
36+
**Describe the bug**
37+
38+
A clear and concise description of what the bug is.
39+
40+
**To Reproduce**
41+
42+
If applicable, describe the steps to reproduce the behavior:
43+
1. Go to '...'
44+
2. Click on '....'
45+
3. Scroll down to '....'
46+
4. See error
47+
48+
**Expected behavior**
49+
50+
A clear and concise description of what you expected to happen.
51+
52+
**Screenshots**
53+
54+
If applicable, add screenshots to help explain your problem.
55+
56+
57+
**Debug log**
58+
<!-- To enable debug logs check this https://www.home-assistant.io/components/logger/ -->
59+
```text
60+
61+
Add your logs here.
62+
63+
```
64+
65+
**Additional context**
66+
67+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
#contact_links:
3+
# - name: GitHub Community Forum
4+
# url: https://github.community/
5+
# about: Please ask and answer questions here.
6+
# - name: GitHub Security Bug Bounty
7+
# url: https://bounty.github.com/
8+
# about: Please report security vulnerabilities here.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Additional context**
23+
24+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<!--
2+
You are amazing! Thanks for contributing to our project!
3+
Please, DO NOT DELETE ANY TEXT from this template! (unless instructed).
4+
5+
Please note, ANY pull requests to MASTER BRANCH will be CLOSED.
6+
Use develop branch instead.
7+
-->
8+
## Breaking change
9+
<!--
10+
If your PR contains a breaking change for existing users, it is important
11+
to tell them what breaks, how to make it work again and why we did this.
12+
This piece of text is published with the release notes, so it helps if you
13+
write it towards our users, not us.
14+
Note: Remove this section if this PR is NOT a breaking change.
15+
-->
16+
17+
18+
## Proposed change
19+
<!--
20+
Describe the big picture of your changes here to communicate to the
21+
maintainers why we should accept this pull request. If it fixes a bug
22+
or resolves a feature request, be sure to link to that issue in the
23+
additional information section.
24+
-->
25+
26+
27+
## Type of change
28+
<!--
29+
What type of change does your PR introduce to Home Assistant?
30+
NOTE: Please, check only 1! box!
31+
If your PR requires multiple boxes to be checked, you'll most likely need to
32+
split it into multiple PRs. This makes things easier and faster to code review.
33+
-->
34+
35+
- [ ] Dependency upgrade
36+
- [ ] Bugfix (non-breaking change which fixes an issue)
37+
- [ ] New feature (which adds functionality to an this integration)
38+
- [ ] Breaking change (fix/feature causing existing functionality to break)
39+
- [ ] Code quality improvements to existing code or addition of tests
40+
41+
## Example entry for `configuration.yaml`:
42+
<!--
43+
Supplying a configuration snippet, makes it easier for a maintainer to test
44+
your PR. Furthermore, for new integrations, it gives an impression of how
45+
the configuration would look like.
46+
Note: Remove this section if this PR does not have an example entry.
47+
-->
48+
49+
```yaml
50+
# Example configuration.yaml
51+
52+
```
53+
54+
## Additional information
55+
<!--
56+
Details are important, and help maintainers processing your PR.
57+
Please be sure to fill out additional details, if applicable.
58+
-->
59+
60+
- This PR fixes or closes issue: fixes #
61+
- This PR is related to issue:
62+
63+
## Checklist
64+
<!--
65+
Put an `x` in the boxes that apply. You can also fill these out after
66+
creating the PR. If you're unsure about any of them, don't hesitate to ask.
67+
We're here to help! This is simply a reminder of what we are going to look
68+
for before merging your code.
69+
-->
70+
71+
- [ ] The code change is tested and works locally.
72+
- [ ] There is no commented out code in this PR.
73+
- [ ] The code has been formatted using Black (`black --fast custom_components`)
74+
75+
If user exposed functionality or configuration variables are added/changed:
76+
77+
- [ ] Documentation added/updated to README.md
78+
79+
<!--
80+
Thank you for contributing <3
81+
-->

.github/no-response.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Configuration for probot-no-response - https://github.com/probot/no-response
2+
3+
# Number of days of inactivity before an Issue is closed for lack of response
4+
daysUntilClose: 14
5+
# Label requiring a response
6+
responseRequiredLabel: question
7+
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
8+
closeComment: >
9+
This issue has been automatically closed because there has been no response
10+
to our request for more information from the original author. With only the
11+
information that is currently in the issue, we don't have enough information
12+
to take action. Please reach out if you have or find the answers we need so
13+
that we can investigate further.

.github/settings.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
repository:
2+
private: false
3+
has_issues: true
4+
has_projects: false
5+
has_wiki: false
6+
has_downloads: false
7+
default_branch: master
8+
allow_squash_merge: true
9+
allow_merge_commit: false
10+
allow_rebase_merge: false
11+
labels:
12+
- name: "bug"
13+
color: "d73a4a"
14+
- name: "documentation"
15+
color: "0075ca"
16+
- name: "duplicate"
17+
color: "cfd3d7"
18+
- name: "enhancement"
19+
color: "a2eeef"
20+
- name: "invalid"
21+
color: "e4e669"
22+
- name: "stale"
23+
color: "930191"
24+
- name: "question"
25+
color: "dd9c2c"
26+
- name: "wontfix"
27+
color: "ffffff"

.github/stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 14
3+
# Number of days of inactivity before a stale issue is closed
4+
#daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
#exemptLabels:
7+
# - pinned
8+
# - security
9+
# Label to use when marking an issue as stale
10+
staleLabel: stale
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >-
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.github/workflows/release.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: "Release"
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
release_zip_file:
11+
name: "Prepare release asset"
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: "Check out repository"
15+
uses: actions/checkout@v1
16+
17+
- working-directory: ./custom_components
18+
run: |
19+
echo "package=`ls -F | grep \/$ | sed -n "s/\///g;1p"`" >> $GITHUB_ENV
20+
echo "release_version=`git describe --abbrev=0 | sed s/v//`" >> $GITHUB_ENV
21+
- working-directory: ./custom_components
22+
run: |
23+
echo "basedir=`pwd`/${{ env.package }}" >> $GITHUB_ENV
24+
25+
- name: "Setup Git"
26+
run: |
27+
git config --global user.name "release"
28+
git config --global user.email "release@GitHub"
29+
30+
- name: "Zip component dir"
31+
working-directory: ./custom_components/${{ env.package }}
32+
run: |
33+
zip ${{ env.package }}.zip -r ./
34+
- name: "Upload zip to release"
35+
uses: svenstaro/upload-release-action@v2
36+
with:
37+
repo_token: ${{ secrets.GITHUB_TOKEN }}
38+
file: ${{ env.basedir }}/${{ env.package }}.zip
39+
asset_name: ${{ env.package }}.zip
40+
tag: ${{ env.release_version }}
41+
overwrite: true
42+
43+
releasenotes:
44+
name: "Prepare releasenotes"
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: "Check out repository"
48+
uses: actions/checkout@v1
49+
50+
- name: "Set up Python 3.7"
51+
uses: actions/setup-python@v2
52+
with:
53+
python-version: 3.7
54+
55+
- name: "Install requirements"
56+
run: |
57+
python3 -m pip install setuptools wheel
58+
python3 -m pip install -r ./requirements-dev.txt
59+
- name: "Update release notes"
60+
run: python3 ./bin/gen_releasenotes --token ${{ secrets.GITHUB_TOKEN }} --repo ${{ github.repository }} --release `git describe --abbrev=0`

0 commit comments

Comments
 (0)