Skip to content

Commit

Permalink
Merge branch 'release/1.2.16'
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Sep 22, 2020
2 parents 0b1e731 + a59dd05 commit 372b7d9
Show file tree
Hide file tree
Showing 19 changed files with 380 additions and 408 deletions.
10 changes: 7 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ Issues not containing the minimum requirements will be closed:
-->

**Version of the custom_component**
<!-- If you are not using the newest version, download and try that before opening an issue
If you are unsure about the version check the __init__.py file.
**Versions**
<!--
If you are not using the newest version, download and try that before opening an issue.
If you are unsure about the version check the __init__.py or const.py files.
-->

* Version of the Home Assistant:
* Version of the custom component:

**Configuration**
```yaml

Expand Down
2 changes: 1 addition & 1 deletion .github/no-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 14
# Label requiring a response
responseRequiredLabel: more-information-needed
responseRequiredLabel: question
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed because there has been no response
Expand Down
14 changes: 7 additions & 7 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ repository:
allow_merge_commit: false
allow_rebase_merge: false
labels:
- name: "enhancement"
color: "a2eeef"
- name: "bug"
color: "d73a4a"
- name: "wontfix"
color: "ffffff"
- name: "documentation"
color: "0075ca"
- name: "stale"
color: "930191"
- name: "duplicate"
color: "cfd3d7"
- name: "enhancement"
color: "a2eeef"
- name: "invalid"
color: "e4e669"
- name: "more-information-needed"
- name: "stale"
color: "930191"
- name: "question"
color: "dd9c2c"
- name: "wontfix"
color: "ffffff"
66 changes: 66 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
name: "Release"

on:
push:
branches:
- master

jobs:
release_zip_file:
name: "Prepare release asset"
runs-on: ubuntu-latest
steps:
- name: "Check out repository"
uses: actions/checkout@v1

- working-directory: ./custom_components
run: |
echo "::set-env name=package::`ls -F | grep \/$ | sed -n "s/\///g;1p"`"
echo "::set-env name=release_version::`git describe --abbrev=0 | sed s/v//`"
- working-directory: ./custom_components
run: |
echo "::set-env name=basedir::`pwd`/${{ env.package }}"
- name: "Setup Git"
run: |
git config --global user.name "release"
git config --global user.email "release@GitHub"
- name: "Set version number"
working-directory: ./custom_components/${{ env.package }}
run: |
sed -i '/VERSION = /c\VERSION = "${{ env.release_version }}"' __init__.py
sed -i '/VERSION = /c\VERSION = "${{ env.release_version }}"' const.py
- name: "Zip component dir"
working-directory: ./custom_components/${{ env.package }}
run: |
zip ${{ env.package }}.zip -r ./
- name: "Upload zip to release"
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.basedir }}/${{ env.package }}.zip
asset_name: ${{ env.package }}.zip
tag: ${{ env.release_version }}
overwrite: true

releasenotes:
name: "Prepare releasenotes"
runs-on: ubuntu-latest
steps:
- name: "Check out repository"
uses: actions/checkout@v1

- name: "Set up Python 3.7"
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: "Install requirements"
run: |
python3 -m pip install setuptools wheel
python3 -m pip install -r ./requirements-dev.txt
- name: "Update release notes"
run: python3 ./bin/gen_releasenotes --token ${{ secrets.GITHUB_TOKEN }} --repo ${{ github.repository }} --release `git describe --abbrev=0`
53 changes: 0 additions & 53 deletions .github/workflows/semantic_release.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ repos:
args:
- --safe
- --quiet
files: ^(custom_components|script)/.+\.py$
files: ^custom_components/.+\.py$
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
hooks:
- id: flake8
additional_dependencies:
- flake8-docstrings==1.5.0
- pydocstyle==5.0.2
files: ^(custom_components)/.+\.py$
files: ^custom_components/.+\.py$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
Expand All @@ -38,7 +38,7 @@ repos:
# shell.
- id: mypy
name: mypy
entry: script/run-in-env.sh mypy
entry: bin/run-in-env mypy
language: script
types: [python]
require_serial: true
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 372b7d9

Please sign in to comment.