Skip to content

Commit

Permalink
Update for 10.8 and code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowghost committed Mar 29, 2022
1 parent 7e2ef37 commit d4e1139
Show file tree
Hide file tree
Showing 28 changed files with 783 additions and 713 deletions.
26 changes: 0 additions & 26 deletions .github/dependabot.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
_extends: jellyfin-meta-plugins

template: |
<!-- Optional: add a release summary here -->
## :sparkles: What's New
$CHANGES
23 changes: 23 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": [
"config:base"
],
"labels": ["dependencies"],
"packageRules": [
{
"matchManagers": ["github-actions"],
"addLabels": ["github_actions"]
},
{
"matchManagers": ["git-submodules"],
"addLabels": ["git-submodules"],
"automerge": true,
"automergeType": "branch"
}
],
"git-submodules": {
"enabled": true
},
"timezone": "Etc/UTC",
"schedule": ["before 2am"]
}
27 changes: 0 additions & 27 deletions .github/workflows/build-dotnet.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: '🏗️ Build Plugin'

on:
push:
branches:
- master
paths-ignore:
- '**/*.md'
pull_request:
branches:
- master
paths-ignore:
- '**/*.md'
workflow_dispatch:

jobs:
call:
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/build.yaml@master
14 changes: 14 additions & 0 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "🆙 Bump Version"

on:
release:
types:
- published
workflow_dispatch:

jobs:
call:
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/bump-version.yaml@master
with:
csproj-name: Jellyfin.Plugin.ITunes
is-unstable: ${{ github.event.release.prerelease }}
20 changes: 20 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: '📝 Create/Update Release Draft & Release Bump PR'

on:
push:
branches:
- master
paths-ignore:
- build.yaml
workflow_dispatch:
repository_dispatch:
types:
- update-prep-command

jobs:
call:
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/changelog.yaml@master
with:
repository-name: Shadowghost/jellyfin-plugin-itunes
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
40 changes: 0 additions & 40 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: '🚀 Publish Plugin'

on:
release:
types:
- released
workflow_dispatch:

jobs:
call:
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/publish.yaml@master
with:
version: ${{ github.event.release.tag_name }}
is-unstable: ${{ github.event.release.prerelease }}
secrets:
deploy-host: ${{ secrets.DEPLOY_HOST }}
deploy-user: ${{ secrets.DEPLOY_USER }}
deploy-key: ${{ secrets.DEPLOY_KEY }}
12 changes: 12 additions & 0 deletions .github/workflows/scan-codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: '🔬 Run CodeQL'

on:
push:
pull_request:
workflow_dispatch:

jobs:
call:
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/scan-codeql.yaml@master
with:
repository-name: Shadowghost/jellyfin-plugin-itunes
18 changes: 18 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: '🧪 Test Plugin'

on:
push:
branches:
- master
paths-ignore:
- '**/*.md'
pull_request:
branches:
- master
paths-ignore:
- '**/*.md'
workflow_dispatch:

jobs:
call:
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/test.yaml@master
23 changes: 3 additions & 20 deletions Jellyfin.Plugin.ITunes/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,10 @@

namespace Jellyfin.Plugin.ITunes.Configuration
{
public enum SomeOptions
{
OneOption,
AnotherOption
}

/// <summary>
/// The (empty) plugin configuration.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
// store configurable settings your plugin might need
public bool TrueFalseSetting { get; set; }
public int AnInteger { get; set; }
public string AString { get; set; }
public SomeOptions Options { get; set; }

public PluginConfiguration()
{
// set default options here
Options = SomeOptions.AnotherOption;
TrueFalseSetting = true;
AnInteger = 2;
AString = "string";
}
}
}
78 changes: 0 additions & 78 deletions Jellyfin.Plugin.ITunes/Configuration/configPage.html

This file was deleted.

Loading

0 comments on commit d4e1139

Please sign in to comment.