From b9ca37c77aaca3b97395d75e7b66f063fdde25f1 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 7 Nov 2021 11:20:18 +0100 Subject: [PATCH] Migrate JSON config to YAML (#186) --- .github/labels.yml | 85 ------------------------------------- .github/release-drafter.yml | 57 ------------------------- mopidy/build.json | 5 --- mopidy/build.yaml | 3 ++ mopidy/config.json | 42 ------------------ mopidy/config.yaml | 40 +++++++++++++++++ 6 files changed, 43 insertions(+), 189 deletions(-) delete mode 100644 .github/labels.yml delete mode 100644 .github/release-drafter.yml delete mode 100644 mopidy/build.json create mode 100644 mopidy/build.yaml delete mode 100755 mopidy/config.json create mode 100644 mopidy/config.yaml diff --git a/.github/labels.yml b/.github/labels.yml deleted file mode 100644 index 2d0f68a..0000000 --- a/.github/labels.yml +++ /dev/null @@ -1,85 +0,0 @@ ---- -- name: "breaking-change" - color: ee0701 - description: "A breaking change for existing users." -- name: "bugfix" - color: ee0701 - description: "Inconsistencies or issues which will cause a problem for users or implementors." -- name: "documentation" - color: 0052cc - description: "Solely about the documentation of the project." -- name: "enhancement" - color: 1d76db - description: "Enhancement of the code, not introducing new features." -- name: "refactor" - color: 1d76db - description: "Improvement of existing code, not introducing new features." -- name: "performance" - color: 1d76db - description: "Improving performance, not introducing new features." -- name: "new-feature" - color: 0e8a16 - description: "New features or options." -- name: "maintenance" - color: 2af79e - description: "Generic maintenance tasks." -- name: "ci" - color: 1d76db - description: "Work that improves the continue integration." -- name: "dependencies" - color: 1d76db - description: "Upgrade or downgrade of project dependencies." - -- name: "in-progress" - color: fbca04 - description: "Issue is currently being resolved by a developer." -- name: "stale" - color: fef2c0 - description: "There has not been activity on this issue or PR for quite some time." -- name: "no-stale" - color: fef2c0 - description: "This issue or PR is exempted from the stable bot." - -- name: "security" - color: ee0701 - description: "Marks a security issue that needs to be resolved asap." -- name: "incomplete" - color: fef2c0 - description: "Marks a PR or issue that is missing information." -- name: "invalid" - color: fef2c0 - description: "Marks a PR or issue that is missing information." - -- name: "beginner-friendly" - color: 0e8a16 - description: "Good first issue for people wanting to contribute to the project." -- name: "help-wanted" - color: 0e8a16 - description: "We need some extra helping hands or expertise in order to resolve this." - -- name: "hacktoberfest" - description: "Issues/PRs are participating in the Hacktoberfest." - color: fbca04 -- name: "hacktoberfest-accepted" - description: "Issues/PRs are participating in the Hacktoberfest." - color: fbca04 - -- name: "priority-critical" - color: ee0701 - description: "This should be dealt with ASAP. Not fixing this issue would be a serious error." -- name: "priority-high" - color: b60205 - description: "After critical issues are fixed, these should be dealt with before any further issues." -- name: "priority-medium" - color: 0e8a16 - description: "This issue may be useful, and needs some attention." -- name: "priority-low" - color: e4ea8a - description: "Nice addition, maybe... someday..." - -- name: "major" - color: b60205 - description: "This PR causes a major version bump in the version number." -- name: "minor" - color: 0e8a16 - description: "This PR causes a minor version bump in the version number." diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index cb404ea..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -name-template: "v$RESOLVED_VERSION" -tag-template: "v$RESOLVED_VERSION" -change-template: "- $TITLE @$AUTHOR (#$NUMBER)" -sort-direction: ascending - -categories: - - title: "🚨 Breaking changes" - labels: - - "breaking-change" - - title: "✨ New features" - labels: - - "new-feature" - - title: "πŸ› Bug fixes" - labels: - - "bugfix" - - title: "πŸš€ Enhancements" - labels: - - "enhancement" - - "refactor" - - "performance" - - title: "🧰 Maintenance" - labels: - - "maintenance" - - "ci" - - title: "πŸ“š Documentation" - labels: - - "documentation" - - title: "⬆️ Dependency updates" - labels: - - "dependencies" - -version-resolver: - major: - labels: - - "major" - - "breaking-change" - minor: - labels: - - "minor" - - "new-feature" - patch: - labels: - - "bugfix" - - "chore" - - "ci" - - "dependencies" - - "documentation" - - "enhancement" - - "performance" - - "refactor" - default: patch - -template: | - ## What’s changed - - $CHANGES diff --git a/mopidy/build.json b/mopidy/build.json deleted file mode 100644 index 33b71a9..0000000 --- a/mopidy/build.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "build_from": { - "amd64": "ghcr.io/hassio-addons/debian-base/amd64:4.2.2" - } -} diff --git a/mopidy/build.yaml b/mopidy/build.yaml new file mode 100644 index 0000000..dcbf9f9 --- /dev/null +++ b/mopidy/build.yaml @@ -0,0 +1,3 @@ +--- +build_from: + amd64: ghcr.io/hassio-addons/debian-base/amd64:4.2.2 diff --git a/mopidy/config.json b/mopidy/config.json deleted file mode 100755 index 02e677d..0000000 --- a/mopidy/config.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "Mopidy", - "version": "dev", - "slug": "mopidy", - "panel_icon": "mdi:music-circle", - "description": "Mopidy is an extensible music server", - "url": "https://github.com/hassio-addons/addon-mopidy", - "ingress": true, - "ingress_entry": "iris/", - "ingress_stream": true, - "arch": ["amd64"], - "auth_api": true, - "audio": true, - "ports": { - "6600/tcp": 6600, - "5555/udp": 5555, - "80/tcp": null - }, - "ports_description": { - "6600/tcp": "Mopidy", - "5555/udp": "Autoaudiosink", - "80/tcp": "Web interface (Not required for Ingress)" - }, - "map": ["config", "share:rw", "ssl"], - "options": { - "system_packages": [], - "python_packages": [], - "settings": [] - }, - "schema": { - "log_level": "list(trace|debug|info|notice|warning|error|fatal)?", - "system_packages": ["str"], - "python_packages": ["str"], - "settings": [ - { - "name": "str", - "value": "str" - } - ], - "leave_front_door_open": "bool?" - } -} diff --git a/mopidy/config.yaml b/mopidy/config.yaml new file mode 100644 index 0000000..d1fa5b5 --- /dev/null +++ b/mopidy/config.yaml @@ -0,0 +1,40 @@ +--- +name: Mopidy +version: dev +slug: mopidy +panel_icon: mdi:music-circle +description: Mopidy is an extensible music server +url: https://github.com/hassio-addons/addon-mopidy +ingress: true +ingress_entry: iris/ +ingress_stream: true +arch: + - amd64 +auth_api: true +audio: true +ports: + 6600/tcp: 6600 + 5555/udp: 5555 + 80/tcp: null +ports_description: + 6600/tcp: Mopidy + 5555/udp: Autoaudiosink + 80/tcp: Web interface (Not required for Ingress) +map: + - config + - share:rw + - ssl +options: + system_packages: [] + python_packages: [] + settings: [] +schema: + log_level: list(trace|debug|info|notice|warning|error|fatal)? + system_packages: + - str + python_packages: + - str + settings: + - name: str + value: str + leave_front_door_open: bool?