Skip to content

Commit

Permalink
new badge, maintenance (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 authored Oct 17, 2023
1 parent f0e2dfe commit c2bc7f5
Show file tree
Hide file tree
Showing 9 changed files with 453 additions and 615 deletions.
8 changes: 7 additions & 1 deletion .github/label-commenter-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,19 @@ labels:
body: |
Congratulations! Your plugin has been verified.
You can now add the *Verified by Homebridge* badge to your plugin's README:
You can now add one of the *Verified by Homebridge* badges to your plugin's README:
[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
```
[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
```
[![verified-by-homebridge](https://img.shields.io/badge/homebridge-verified-blueviolet?color=%23491F59&style=for-the-badge&logoColor=%23FFFFFF&logo=homebridge)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
```
[![verified-by-homebridge](https://img.shields.io/badge/homebridge-verified-blueviolet?color=%23491F59&style=for-the-badge&logoColor=%23FFFFFF&logo=homebridge)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
```

Your plugin is now also eligible to display a *:heart: Donate* button on its tile in the Homebridge UI. See https://github.com/homebridge/homebridge/wiki/Donation-Links for instructions.

Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,20 @@ If you need assistance meeting the verification requirements, please reach out o

Once your plugin has been verified you will remain in full control of the GitHub repository and npm package. Your plugin will appear on the 'Verified By Homebridge' plugin list and the '**Verified**' badge will appear next to your plugin when the next update to the [Homebridge UI](https://github.com/oznu/homebridge-config-ui-x) is published.

You may optionally add the **Verified By Homebridge** badge to your plugin's README:
You may optionally add one of the **Verified By Homebridge** badges to your plugin's README:

[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)

```
[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
```

[![verified-by-homebridge](https://img.shields.io/badge/homebridge-verified-blueviolet?color=%23491F59&style=for-the-badge&logoColor=%23FFFFFF&logo=homebridge)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)

```
[![verified-by-homebridge](https://img.shields.io/badge/homebridge-verified-blueviolet?color=%23491F59&style=for-the-badge&logoColor=%23FFFFFF&logo=homebridge)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
```

If you decide you no longer wish to maintain your plugin, please reach out to the Homebridge team on the [Homebridge Discord](https://discord.gg/6GUFCb). We can assist in finding a new owner, or take over the repository until a new maintainer can be found.

## Community
Expand All @@ -82,3 +88,7 @@ We will generally do our best to contact existing developers of plugins before r

- We notice any sort of user analysis tracking in a verified plugin
- A new plugin requests verification which replaces the functionality of any existing plugin, and we notice that the existing plugin has not been maintained for an extended period of time (and we deem it likely that any contact attempt with the developer would be unsuccessful).

## Credits

- Thanks to [@hjdhjd](https://github.com/hjdhjd) for the *for-the-badge* style badge!
2 changes: 1 addition & 1 deletion precheck/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ outputs:
comment-body:
description: 'The id of the created comment'
runs:
using: 'node16'
using: 'node20'
main: 'index.js'
branding:
icon: 'message-square'
Expand Down
4 changes: 2 additions & 2 deletions precheck/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class PluginTests {
}

static async addComment(comment: string) {
const octokit = new github.GitHub(core.getInput('token'));
const octokit = github.getOctokit(core.getInput('token'));

const repository = process.env.GITHUB_REPOSITORY;
const repo = repository.split("/");
core.debug(`repository: ${repository}`);

await octokit.issues.createComment({
await octokit.rest.issues.createComment({
owner: repo[0],
repo: repo[1],
issue_number: parseInt(core.getInput('issue-number'), 10),
Expand Down
Loading

0 comments on commit c2bc7f5

Please sign in to comment.