generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert to ESmodule * Update dependencies
- Loading branch information
1 parent
0cbdbab
commit 0c5824a
Showing
58 changed files
with
17,498 additions
and
11,762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- You must use the issue template below when submitting a bug --> | ||
|
||
**Describe The Bug:** | ||
|
||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
**To Reproduce:** | ||
|
||
<!-- Steps to reproduce the behavior. --> | ||
|
||
**Expected behavior:** | ||
|
||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
**Logs:** | ||
|
||
<!-- Bug reports that do not contain logs may be closed without warning. --> | ||
|
||
``` | ||
Show the Homebridge / Homebridge Config UI X logs here. | ||
``` | ||
|
||
**Homebridge Config:** | ||
|
||
```json | ||
{ | ||
"example": "Show your homebridge config.json here" | ||
} | ||
``` | ||
|
||
**Screenshots:** | ||
|
||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
|
||
**Environment:** | ||
|
||
- **Node.js Version**: <!-- node -v --> | ||
- **NPM Version**: <!-- npm -v --> | ||
- **Homebridge Version**: <!-- homebridge -V --> | ||
- **Homebridge Lutron Plugin Version**: | ||
- **Homebridge Config UI X Version**: | ||
- **Operating System**: Raspbian / Ubuntu / Debian / Windows / macOS / Docker | ||
- **Process Supervisor**: Docker / Systemd / init.d / pm2 / launchctl / hb-service / other / none | ||
|
||
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: 'npm' # See documentation for possible values | ||
directory: '/' # Location of package manifests | ||
target-branch: 'beta-*.*.*' | ||
schedule: | ||
interval: 'daily' | ||
- package-ecosystem: 'github-actions' # See documentation for possible values | ||
directory: '/' # Location of package manifests | ||
target-branch: 'beta-*.*.*' | ||
schedule: | ||
interval: 'daily' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Add 'branding' label to any changes within 'docs' folder or any subfolders | ||
branding: | ||
- changed-files: | ||
- any-glob-to-any-file: branding/** | ||
|
||
# Add 'docs' label to any change to .md files within the entire repository | ||
docs: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/*.md' | ||
|
||
# Add 'enhancement' label to any change to src files within the source dir EXCEPT for the docs sub-folder | ||
enhancement: | ||
- changed-files: | ||
- any-glob-to-any-file: 'src/**/*' | ||
- any-glob-to-any-file: 'config.schema.json' | ||
|
||
# Add 'dependencies' label to any change to src files within the source dir EXCEPT for the docs sub-folder | ||
dependencies: | ||
- changed-files: | ||
- any-glob-to-any-file: 'package.json' | ||
- any-glob-to-any-file: 'package-lock.json' | ||
|
||
# Add 'beta' label to any PR that is opened against the `beta` branch | ||
beta: | ||
- base-branch: 'beta*' | ||
|
||
# Add 'alpha' label to any PR that is opened against the `alpha` branch | ||
alpha: | ||
- base-branch: 'alpha*' | ||
|
||
# Add 'latest' label to any PR that is opened against the `latest` branch | ||
latest: | ||
- base-branch: 'latest' | ||
|
||
# Add 'workflow' to any changes within 'workflow' folder or any subfolders | ||
workflow: | ||
- changed-files: | ||
- any-glob-to-any-file: .github/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Beta Release | ||
|
||
on: | ||
push: | ||
branches: [beta-*.*.*, beta] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_test: | ||
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest | ||
with: | ||
enable_coverage: false | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
lint: | ||
needs: build_and_test | ||
uses: homebridge/.github/.github/workflows/eslint.yml@latest | ||
|
||
publish: | ||
needs: lint | ||
if: ${{ github.repository == 'thenewwazoo/homebridge-lutron-caseta-leap' }} | ||
permissions: | ||
id-token: write | ||
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest | ||
with: | ||
tag: 'beta' | ||
dynamically_adjust_version: true | ||
npm_version_command: 'pre' | ||
pre_id: 'beta' | ||
secrets: | ||
npm_auth_token: ${{ secrets.npm_token }} | ||
|
||
pre-release: | ||
needs: publish | ||
if: ${{ github.repository == 'thenewwazoo/homebridge-lutron-caseta-leap' }} | ||
uses: homebridge/.github/.github/workflows/pre-release.yml@latest | ||
with: | ||
npm_version: ${{ needs.publish.outputs.NPM_VERSION }} | ||
body: | | ||
**Beta Release** | ||
**Version**: v${{ needs.publish.outputs.NPM_VERSION }} | ||
[How To Test Beta Releases](https://github.com/thenewwazoo/homebridge-lutron-caseta-leap/wiki/Beta-Version) | ||
github-releases-to-discord: | ||
name: Discord Webhooks | ||
needs: [build_and_test,publish] | ||
if: ${{ github.repository == 'thenewwazoo/homebridge-lutron-caseta-leap' }} | ||
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest | ||
with: | ||
title: "Lutron Beta Release" | ||
description: | | ||
Version `v${{ needs.publish.outputs.NPM_VERSION }}` | ||
url: "https://github.com/thenewwazoo/homebridge-lutron-caseta-leap/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}" | ||
secrets: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,18 @@ | ||
name: Build and Lint | ||
name: Node Build | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: [latest] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
# the Node.js versions to build on | ||
# 16.x is required by Homebridge: https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-macOS | ||
node-version: [18, 20] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Lint the project | ||
run: npm run lint | ||
|
||
- name: Build the project | ||
run: npm run build | ||
env: | ||
CI: true | ||
build_and_test: | ||
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest | ||
with: | ||
enable_coverage: false | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
lint: | ||
needs: build_and_test | ||
uses: homebridge/.github/.github/workflows/eslint.yml@latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Changelog to Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
changerelease: | ||
uses: homebridge/.github/.github/workflows/change-release.yml@latest | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Labeler | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
labeler: | ||
uses: homebridge/.github/.github/workflows/labeler.yml@latest | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.