Skip to content

Commit 932abdf

Browse files
committedJun 1, 2018
✨ Basic repository setup
1 parent b01cc95 commit 932abdf

20 files changed

+605
-0
lines changed
 

‎.editorconfig

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
ident_size = 4
10+
11+
[*.md]
12+
ident_size = 2
13+
trim_trailing_whitespace = false
14+
15+
[*.json]
16+
ident_size = 2
17+
18+
[{.gitignore,.gitkeep,.editorconfig}]
19+
ident_size = 2

‎.github/CODEOWNERS

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Require maintainer's :+1: for changes to the .github/ repo-config files
2+
# mainly due to https://github.com/probot/settings privilege escalation
3+
.github/* @frenck
4+
.gitlab-ci.yml @frenck

‎.github/ISSUE_TEMPLATE.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Problem/Motivation
2+
3+
> (Why the issue was filed)
4+
5+
## Expected behavior
6+
7+
> (What you expected to happen)
8+
9+
## Actual behavior
10+
11+
> (What actually happened)
12+
13+
## Steps to reproduce
14+
15+
> (How can someone else make/see it happen)
16+
17+
## Proposed changes
18+
19+
> (If you have a proposed change, workaround or fix,
20+
> describe the rationale behind it)

‎.github/PULL_REQUEST_TEMPLATE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Proposed Changes
2+
3+
> (Describe the changes and rationale behind them)
4+
5+
## Related Issues
6+
7+
> ([Github link][autolink-references] to related issues or pull requests)
8+
9+
[autolink-references]: https://help.github.com/articles/autolinked-references-and-urls/

‎.github/autolabeler.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
"Type: Documentation": ["*.md", "*.j2"]

‎.github/config.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
# Configuration for request-info - https://github.com/behaviorbot/request-info
3+
4+
# *OPTIONAL* Comment to reply with
5+
# Can be either a string :
6+
requestInfoReplyComment:
7+
- "We would appreciate it if you could provide us with more info about this issue/pr!"
8+
- "Hmmm... That issue/PR is kinda low on text. Could you please provide some more content?"
9+
10+
# *OPTIONAL* default titles to check against for lack of descriptiveness
11+
# MUST BE ALL LOWERCASE
12+
requestInfoDefaultTitles: []
13+
14+
# *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given
15+
requestInfoLabelToAdd: "Incomplete"
16+
17+
# *OPTIONAL* Require Pull Requests to contain more information than what is provided in the PR template
18+
# Will fail if the pull request's body is equal to the provided template
19+
checkPullRequestTemplate: true
20+
21+
# *OPTIONAL* Only warn about insufficient information on these events type
22+
# Keys must be lowercase. Valid values are 'issue' and 'pullRequest'
23+
requestInfoOn:
24+
pullRequest: true
25+
issue: true
26+
27+
# *OPTIONAL* Add a list of people whose Issues/PRs will not be commented on
28+
# keys must be GitHub usernames
29+
requestInfoUserstoExclude: []
30+
31+
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
32+
33+
# Comment to be posted to on first time issues
34+
newIssueWelcomeComment: >
35+
:wave: Thanks for opening your first issue here!
36+
If you're reporting a :bug: bug, please make sure you include steps to reproduce it.
37+
Also, logs, error messages and information about your hardware might be usefull.
38+
39+
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
40+
41+
# Comment to be posted to on PRs from first time contributors in your repository
42+
newPRWelcomeComment: >
43+
:sparkling_heart: Thanks for opening this pull request! :sparkling_heart:
44+
If your PR gets accepted and merged in, we will invite you to the project :tada:
45+
46+
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
47+
48+
# Comment to be posted to on pull requests merged by a first time user
49+
firstPRMergeComment: >
50+
Congrats on merging your first pull request! :tada::tada::tada:

‎.github/invite-contributors.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# If true, this will add new contributors as outside collaborators
3+
# to the repo their PR was merged in. Team name is ignored if this
4+
# flag is set to true.
5+
isOutside: false
6+
7+
# Specify team name to add new contributors to a specific team
8+
# within your organization.
9+
# Use team name or team-name-slug
10+
team: Contributors

‎.github/lock.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
# Configuration for lock-threads - https://github.com/dessant/lock-threads
3+
# Number of days of inactivity before a closed issue or pull request is locked
4+
daysUntilLock: 30
5+
6+
# Comment to post before locking. Set to `false` to disable
7+
lockComment: >
8+
This thread has been automatically locked because it has not had recent
9+
activity. Please open a new issue for related bugs and link to relevant
10+
comments in this thread.
11+
12+
# Issues or pull requests with these labels will not be locked
13+
# exemptLabels:
14+
# - no-locking
15+
16+
# Limit to only `issues` or `pulls`
17+
# only: issues
18+
19+
# Add a label when locking. Set to `false` to disable
20+
lockLabel: false

‎.github/move.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
# Delete the command comment when it contains no other content
3+
deleteCommand: true
4+
5+
# Close the source issue after moving
6+
closeSourceIssue: true
7+
8+
# Lock the source issue after moving
9+
lockSourceIssue: true
10+
11+
# Mention issue and comment authors
12+
mentionAuthors: true
13+
14+
# Preserve mentions in the issue content
15+
keepContentMentions: false
16+
17+
# Set custom aliases for targets
18+
# aliases:
19+
# r: repo
20+
# or: owner/repo

‎.github/no-response.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
# Configuration for probot-no-response - https://github.com/probot/no-response
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: "Status: Awaiting response"
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/potential-duplicates.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
# Label name and color to set, when potential duplicates are detected
3+
issueLabel: "Potential duplicate"
4+
labelColor: e6e6e6
5+
6+
# If similarity is higher than this threshold, issue will be marked as duplicate
7+
threshold: 0.70
8+
9+
# Comment to post when potential duplicates are detected
10+
referenceComment: >
11+
Potential duplicates found:
12+
{{#issues}}
13+
- [#{{ number }}] {{ title }} ({{ accuracy }}%)
14+
{{/issues}}

‎.github/settings.yml

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
---
2+
repository:
3+
description: "Node-RED - Community Hass.io Add-on for Home Assistant"
4+
homepage: https://addons.community
5+
topics: node-red, hassio-addon, hassio-addons, hassio, hass, home-assistant, homeassistant
6+
private: false
7+
has_issues: true
8+
has_projects: false
9+
has_wiki: false
10+
has_downloads: false
11+
default_branch: master
12+
allow_squash_merge: true
13+
allow_merge_commit: false
14+
allow_rebase_merge: true
15+
labels:
16+
# Priority labels
17+
- name: "Priority: Critical"
18+
color: ee0701
19+
description: "This should be dealt with ASAP. Not fixing this issue would be a serious error."
20+
- name: "Priority: High"
21+
color: b60205
22+
description: "After critical issues are fixed, these should be dealt with before any further issues."
23+
- name: "Priority: Medium"
24+
color: 0e8a16
25+
description: "This issue may be useful, and needs some attention."
26+
- name: "Priority: Low"
27+
color: e4ea8a
28+
description: "Nice addition, maybe... someday..."
29+
30+
# Type labels
31+
- name: "Type: Bug"
32+
color: ee0701
33+
description: "Inconsistencies or issues which will cause a problem for users or implementors."
34+
- name: "Type: Documentation"
35+
color: 0052cc
36+
description: "Solely about the documentation of the project."
37+
- name: "Type: Enhancement"
38+
color: 1d76db
39+
description: "Enhancement of the code, not introducing new features."
40+
- name: "Type: Feature"
41+
color: 0e8a16
42+
description: "New features or options."
43+
- name: "Type: Support"
44+
color: 5319e7
45+
description: "Marks an issue as an support ticket."
46+
- name: "Type: Discussion"
47+
color: d4c5f9
48+
description: "Marks an issue as an generic discussion ticket."
49+
- name: "Type: Maintaince"
50+
color: 2af79e
51+
description: "Generic maintaince tasks, e.g., package updates."
52+
53+
# Additional markers
54+
- name: "Security"
55+
color: ee0701
56+
description: "Marks an security issues that needs to be resolved asap."
57+
- name: "Idea"
58+
color: fef2c0
59+
description: "Marks an idea, which might be excepted and implemented."
60+
- name: "Incomplete"
61+
color: fef2c0
62+
description: "Marks an PR or issue that is missing information."
63+
- name: "Pull request"
64+
color: fbca04
65+
description: "There is an PR opened for this issue."
66+
- name: "Accepted"
67+
color: c2e0c6
68+
description: "This issue or PR has been accepted."
69+
- name: "Declined"
70+
color: f9d0c4
71+
description: "This issue or PR has been declined."
72+
- name: "Potential duplicate"
73+
color: e6e6e6
74+
description: "This issue has been automatically marked as a potential duplicate."
75+
76+
# Ongoing Status labels
77+
- name: "Status: Triage"
78+
color: fbca04
79+
description: "This issue needs to be triaged."
80+
- name: "Status: On hold"
81+
color: cccccc
82+
description: "Issue or PR that has been placed on hold for now."
83+
- name: "Status: In progress"
84+
color: fbca04
85+
description: "Issue is currently being resolved by a developer."
86+
- name: "Status: Stale"
87+
color: fef2c0
88+
description: "There has not been activity on this issue or PR for quite some time."
89+
- name: "Status: Awaiting response"
90+
color: fef2c0
91+
description: "Issue or PR awaits response from the creator."
92+
- name: "Status: Blocked"
93+
color: fef2c0
94+
description: "Progress on this issue is currently not possible."
95+
96+
# Closing status labels
97+
- name: "Closed: Known limitation"
98+
color: e6e6e6
99+
description: "Issue is closed, it is a known limitation."
100+
- name: "Closed: Expected behavior"
101+
color: e6e6e6
102+
description: "Issues is closed, it is expected behavior."
103+
- name: "Closed: Duplicate"
104+
color: e6e6e6
105+
description: "Issue is closed, duplicate of an existing issue."
106+
- name: "Closed: Invalid"
107+
color: e6e6e6
108+
description: "Issue is closed, marked as not a valid issue (e.g., an user error)."
109+
- name: "Closed: Wrong repository"
110+
color: e6e6e6
111+
description: "Issue is closed, was created in the wrong repository."
112+
- name: "Closed: Won't Fix"
113+
color: e6e6e6
114+
description: "Issue is closed, it won't be fixed."
115+
- name: "Closed: Done"
116+
color: c2e0c6
117+
description: "Issue closed, work on this issue has been marked complete."
118+
119+
# Others
120+
- name: "Beginner Friendly"
121+
color: 0e8a16
122+
description: "Good first issue for people wanting to contribute to the project."
123+
- name: "Help wanted"
124+
color: 0e8a16
125+
description: "We need some extra helping hands or expertise in order to resolve this."
126+
- name: "Hacktoberfest"
127+
description: "Issues/PRs are participating in the Hacktoberfest"
128+
color: fbca04
129+
130+
branches:
131+
- name: master
132+
protection:
133+
required_pull_request_reviews:
134+
# required_approving_review_count: 1
135+
dismiss_stale_reviews: true
136+
require_code_owner_reviews: true
137+
dismissal_restrictions:
138+
users: []
139+
teams:
140+
- Admins
141+
- Masters
142+
required_status_checks:
143+
strict: false
144+
contexts: []
145+
enforce_admins: false
146+
restrictions:
147+
users: []
148+
teams:
149+
- Admins
150+
- Masters

‎.github/stale.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
# Configuration for probot-stale - https://github.com/probot/stale
3+
4+
# Number of days of inactivity before an Issue or Pull Request becomes stale
5+
daysUntilStale: 60
6+
7+
# Number of days of inactivity before a stale Issue or Pull Request is closed.
8+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
9+
daysUntilClose: 7
10+
11+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
12+
exemptLabels:
13+
- "Status: On hold"
14+
- "Status: In progress"
15+
- "Status: Awaiting response"
16+
- "Status: Blocked"
17+
- "Idea"
18+
- "Security"
19+
20+
# Set to true to ignore issues in a project (defaults to false)
21+
exemptProjects: false
22+
23+
# Set to true to ignore issues in a milestone (defaults to false)
24+
exemptMilestones: false
25+
26+
# Label to use when marking as stale
27+
staleLabel: "Status: Stale"
28+
29+
# Comment to post when marking as stale. Set to `false` to disable
30+
markComment: >
31+
This issue has been automatically marked as stale because it has not had
32+
recent activity. It will be closed if no further activity occurs. Thank you
33+
for your contributions.
34+
35+
# Comment to post when removing the stale label.
36+
# unmarkComment: >
37+
# Your comment here.
38+
unmarkComment: false
39+
40+
# Comment to post when closing a stale Issue or Pull Request.
41+
# closeComment: >
42+
# Your comment here.
43+
closeComment: false
44+
45+
# Limit the number of actions per hour, from 1-30. Default is 30
46+
limitPerRun: 30
47+
48+
# Limit to only `issues` or `pulls`
49+
only: issues
50+
51+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
52+
# pulls:
53+
# daysUntilStale: 30
54+
# markComment: >
55+
# This pull request has been automatically marked as stale because it has not had
56+
# recent activity. It will be closed if no further activity occurs. Thank you
57+
# for your contributions.
58+
59+
# issues:
60+
# exemptLabels:
61+
# - confirmed

‎.github/support.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
# Configuration for support-requests - https://github.com/dessant/support-requests
3+
4+
# Label used to mark issues as support requests
5+
supportLabel: "Type: Support"
6+
7+
# Comment to post on issues marked as support requests. Add a link
8+
# to a support page, or set to `false` to disable
9+
supportComment: >
10+
:wave: We use the issue tracker exclusively for bug reports and feature requests.
11+
However, this issue appears to be a support request. Please use our
12+
support channels to get help with the project.
13+
14+
Head over to the
15+
[Home Assistant community forum](https://community.home-assistant.io/?u=frenck)
16+
or join our [Discord](https://discord.gg/c5DvZ4e) chat.
17+
18+
# Close issues marked as support requests
19+
close: true
20+
21+
# Lock issues marked as support requests
22+
lock: false

‎.gitignore

Whitespace-only changes.

‎.mdlrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rules "~MD024"

‎.yamllint

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
rules:
3+
braces:
4+
level: error
5+
min-spaces-inside: 0
6+
max-spaces-inside: 1
7+
min-spaces-inside-empty: -1
8+
max-spaces-inside-empty: -1
9+
brackets:
10+
level: error
11+
min-spaces-inside: 0
12+
max-spaces-inside: 0
13+
min-spaces-inside-empty: -1
14+
max-spaces-inside-empty: -1
15+
colons:
16+
level: error
17+
max-spaces-before: 0
18+
max-spaces-after: 1
19+
commas:
20+
level: error
21+
max-spaces-before: 0
22+
min-spaces-after: 1
23+
max-spaces-after: 1
24+
comments:
25+
level: error
26+
require-starting-space: true
27+
min-spaces-from-content: 2
28+
comments-indentation:
29+
level: error
30+
document-end:
31+
level: error
32+
present: false
33+
document-start:
34+
level: error
35+
present: true
36+
empty-lines:
37+
level: error
38+
max: 1
39+
max-start: 0
40+
max-end: 1
41+
hyphens:
42+
level: error
43+
max-spaces-after: 1
44+
indentation:
45+
level: error
46+
spaces: 2
47+
indent-sequences: true
48+
check-multi-line-strings: false
49+
key-duplicates:
50+
level: error
51+
line-length:
52+
ignore: |
53+
.github/support.yml
54+
level: warning
55+
max: 120
56+
allow-non-breakable-words: true
57+
allow-non-breakable-inline-mappings: true
58+
new-line-at-end-of-file:
59+
level: error
60+
new-lines:
61+
level: error
62+
type: unix
63+
trailing-spaces:
64+
level: error
65+
truthy:
66+
level: error

‎CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Code of conduct
2+
3+
## Our pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention
26+
or advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or
30+
electronic address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate
32+
in a professional setting
33+
34+
## Our responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project lead at frenck@addons.community. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project lead is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71+
version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

‎CONTRIBUTING.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Contributing
2+
3+
When contributing to this repository, please first discuss the change you wish
4+
to make via issue, email, or any other method with the owners of this repository
5+
before making a change.
6+
7+
Please note we have a code of conduct, please follow it in all your interactions
8+
with the project.
9+
10+
## Issues and feature requests
11+
12+
You've found a bug in the source code, a mistake in the documentation or maybe
13+
you'd like a new feature? You can help us by submitting an issue to our
14+
[GitHub Repository][github]. Before you create an issue, make sure you search
15+
the archive, maybe your question was already answered.
16+
17+
Even better: You could submit a pull request with a fix / new feature!
18+
19+
## Pull request process
20+
21+
1. Search our repository for open or closed [pull requests][prs] that relates
22+
to your submission. You don't want to duplicate effort.
23+
24+
1. You may merge the pull request in once you have the sign-off of two other
25+
developers, or if you do not have permission to do that, you may request
26+
the second reviewer to merge it for you.
27+
28+
[github]: https://github.com/hassio-addons/addon-node-red/issues
29+
[prs]: https://github.com/hassio-addons/addon-node-red/pulls

‎LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2018 Franck Nijhof
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)
Please sign in to comment.