refactor: Rename project & links in scripts, code, etc

pull/63/head
Robert Dailey 2 years ago
parent 00d9ec2f33
commit 10600ae4f1

@ -55,7 +55,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: trash-${{ matrix.runtime }}
name: recyclarr-${{ matrix.runtime }}
path: publish/${{ matrix.runtime }}/*
smoke:
@ -79,11 +79,11 @@ jobs:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: trash-${{ matrix.runtime }}
name: recyclarr-${{ matrix.runtime }}
- name: Run Smoke Test
shell: pwsh
run: ci/SmokeTest.ps1 ./trash
run: ci/SmokeTest.ps1 ./recyclarr
release:
name: Release
@ -124,7 +124,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
files: publish-zip/trash-*.zip
files: publish-zip/recyclarr-*.zip
body: ${{ steps.changelog.outputs.release_notes }}
tag_name: ${{ github.event.create.ref }}
draft: false

@ -48,8 +48,8 @@ jobs:
run: >
dotnet sonarscanner begin
-o:"rcdailey"
-k:"rcdailey_trash-updater"
-n:"Trash Updater"
-k:"rcdailey_recyclarr"
-n:"Recyclarr"
-v:"${{ steps.gitversion.outputs.fullSemVer }}"
-d:sonar.login="${{ secrets.SONAR_TOKEN }}"
-d:sonar.host.url="https://sonarcloud.io"

@ -8,9 +8,9 @@ $version = dotnet-gitversion /showvariable SemVer
# Requires: Install-Module -Name ChangelogManagement
Update-Changelog -ReleaseVersion $version -LinkMode Automatic -LinkPattern @{
FirstRelease = "https://github.com/rcdailey/trash-updater/releases/tag/v{CUR}"
NormalRelease = "https://github.com/rcdailey/trash-updater/compare/v{PREV}...v{CUR}"
Unreleased = "https://github.com/rcdailey/trash-updater/compare/v{CUR}...HEAD"
FirstRelease = "https://github.com/rcdailey/recyclarr/releases/tag/v{CUR}"
NormalRelease = "https://github.com/rcdailey/recyclarr/compare/v{PREV}...v{CUR}"
Unreleased = "https://github.com/rcdailey/recyclarr/compare/v{CUR}...HEAD"
}
# Read & Write the file after updating the changelog to force a newline at the end of the file. The

@ -6,7 +6,7 @@ param (
$ErrorActionPreference = "Stop"
dotnet publish src\Trash `
dotnet publish src\Recyclarr `
--output publish\$runtime `
--configuration Release `
--runtime $runtime `

@ -1,19 +1,19 @@
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[string] $PathToTrashExe
[string] $PathToExe
)
$ErrorActionPreference = "Stop"
if (Get-Command chmod -errorAction SilentlyContinue) {
"The chmod command was found. Setting read + execute permission."
& chmod +rx $PathToTrashExe
& chmod +rx $PathToExe
}
"Execute trash command to ensure basic functionality is working"
& $PathToTrashExe -h
"Execute recyclarr command to ensure basic functionality is working"
& $PathToExe -h
if ($LASTEXITCODE -ne 0) {
"Trash executable failed to run with exit code: $LASTEXITCODE"
"Recyclarr executable failed to run with exit code: $LASTEXITCODE"
exit -1
}

@ -26,17 +26,17 @@ mkdown_desc = f'''
embed = DiscordEmbed(
title=f'New Release {version}',
description=mkdown_desc,
url=f'https://github.com/rcdailey/trash-updater/releases/tag/{version}'
url=f'https://github.com/rcdailey/recyclarr/releases/tag/{version}'
)
embed.set_author(
name='Trash Updater',
url='https://github.com/rcdailey/trash-updater',
icon_url='https://github.com/rcdailey/trash-updater/blob/master/ci/notify/trash-icon.png?raw=true')
name='Recyclarr',
url='https://github.com/rcdailey/recyclarr',
icon_url='https://github.com/rcdailey/recyclarr/blob/master/ci/notify/trash-icon.png?raw=true')
def add_links(os_name, archs, os):
url_base = f'https://github.com/rcdailey/trash-updater/releases/download/{version}'
download_links = ', '.join(f'[{arch}]({url_base}/trash-{os}-{arch}.zip)' for arch in archs)
url_base = f'https://github.com/rcdailey/recyclarr/releases/download/{version}'
download_links = ', '.join(f'[{arch}]({url_base}/recyclarr-{os}-{arch}.zip)' for arch in archs)
embed.add_embed_field(name=os_name, value=f'[{download_links}]')
add_links('Linux', ('x64', 'arm', 'arm64'), 'linux')

@ -5,8 +5,8 @@
"Settings": {
"type": "object",
"additionalProperties": false,
"title": "Trash Updater Settings",
"description": "Optional settings to control the behavior of Trash Updater",
"title": "Recyclarr Settings",
"description": "Optional settings to control the behavior of Recyclarr",
"properties": {
"repository": {
"$ref": "#/definitions/Repository"
@ -27,7 +27,7 @@
"clone_url": {
"type": "string",
"title": "Clone URL to the trash guides git repository",
"description": "A URL compatible with `git clone` that is used to clone the Trash Guides repository. This setting exists for enthusiasts that may want to instead have Trash Updater pull data from a fork instead of the official repository.",
"description": "A URL compatible with `git clone` that is used to clone the Trash Guides repository. This setting exists for enthusiasts that may want to instead have Recyclarr pull data from a fork instead of the official repository.",
"format": "uri",
"qt-uri-protocols": [
"http",

@ -1,11 +1,11 @@
# A starter config to use with Trash Updater. Most values are set to "reasonable defaults".
# Update the values below as needed for your instance. You will be required to update the
# API Key and URL for each instance you want to use.
# A starter config to use with Recyclarr. Most values are set to "reasonable defaults". Update the
# values below as needed for your instance. You will be required to update the API Key and URL for
# each instance you want to use.
#
# Many optional settings have been omitted to keep this template simple.
#
# For more details on the configuration, see the Configuration Reference on the wiki here:
# https://github.com/rcdailey/trash-updater/wiki/Configuration-Reference
# https://github.com/rcdailey/recyclarr/wiki/Configuration-Reference
# Configuration specific to Sonarr
sonarr:

@ -42,11 +42,11 @@ public class SettingsPersister : ISettingsPersister
private void CreateDefaultSettingsFile()
{
const string fileData =
"# yaml-language-server: $schema=https://raw.githubusercontent.com/rcdailey/trash-updater/master/schemas/settings-schema.json\n" +
"# yaml-language-server: $schema=https://raw.githubusercontent.com/rcdailey/recyclarr/master/schemas/settings-schema.json\n" +
"\n" +
"# Edit this file to customize the behavior of Trash Updater beyond its defaults\n" +
"# Edit this file to customize the behavior of Recyclarr beyond its defaults\n" +
"# For the settings file reference guide, visit the link to the wiki below:\n" +
"# https://github.com/rcdailey/trash-updater/wiki/Settings-Reference\n";
"# https://github.com/rcdailey/recyclarr/wiki/Settings-Reference\n";
_fileSystem.File.WriteAllText(_paths.SettingsPath, fileData);
}

@ -137,7 +137,7 @@ internal class CustomFormatUpdater : ICustomFormatUpdater
if (_guideProcessor.DuplicatedCustomFormats.Count > 0)
{
Log.Warning("One or more of the custom formats you want are duplicated in the guide. These custom " +
"formats WILL BE SKIPPED. Trash Updater is not able to choose which one you actually " +
"formats WILL BE SKIPPED. Recyclarr is not able to choose which one you actually " +
"wanted. To resolve this ambiguity, use the `trash_ids` property in your YML " +
"configuration to refer to the custom format using its Trash ID instead of its name");

@ -101,7 +101,7 @@ internal class ReleaseProfileUpdater : IReleaseProfileUpdater
}
}
// Any profiles with `[Trash]` in front of their name are managed exclusively by Trash Updater. As such, if
// Any profiles with `[Trash]` in front of their name are managed exclusively by Recyclarr. As such, if
// there are any still in Sonarr that we didn't update, those are most certainly old and shouldn't be kept
// around anymore.
await DeleteOldManagedProfiles(profilesAndTags, existingProfiles);

Loading…
Cancel
Save