Skip to content

Commit 91e69d6

Browse files
Merge updates: PR #104, dependency upgrades, and Hangtools rebranding (#2)
* Rebrand packages to Hangtools and add NuGet publish workflow * Pull in changes from face-it/Hangfire.Tags#104 * Clean up old AppVeyor/FaceIT URLs and repoint to Hangtools * Make NuGet workflow pack each publishable package explicitly * Avoid Hangfire Pro dependency in public publish workflow * Address Copilot PR comments on tag redirect and icon URLs
1 parent 8ef0263 commit 91e69d6

15 files changed

Lines changed: 189 additions & 169 deletions

File tree

.github/workflows/publish-nuget.yml

Lines changed: 59 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,73 @@ jobs:
2121
with:
2222
dotnet-version: "8.0.x"
2323

24-
- name: Restore
25-
run: dotnet restore Hangfire.Tags.sln
24+
- name: Restore public projects
25+
run: |
26+
projects=(
27+
"src/FaceIT.Hangfire.Tags/FaceIT.Hangfire.Tags.csproj"
28+
"src/FaceIT.Hangfire.Tags.Mongo/FaceIT.Hangfire.Tags.Mongo.csproj"
29+
"src/FaceIT.Hangfire.Tags.MySql/FaceIT.Hangfire.Tags.MySql.csproj"
30+
"src/FaceIT.Hangfire.Tags.PostgreSql/FaceIT.Hangfire.Tags.PostgreSql.csproj"
31+
"src/FaceIT.Hangfire.Tags.Redis.StackExchange/FaceIT.Hangfire.Tags.Redis.StackExchange.csproj"
32+
"src/FaceIT.Hangfire.Tags.SQLite/FaceIT.Hangfire.Tags.SQLite.csproj"
33+
"src/FaceIT.Hangfire.Tags.SqlServer/FaceIT.Hangfire.Tags.SqlServer.csproj"
34+
"tests/FaceIT.Hangfire.Tags.Tests/FaceIT.Hangfire.Tags.Tests.csproj"
35+
"tests/FaceIT.Hangfire.Tags.PostgreSql.Tests/FaceIT.Hangfire.Tags.PostgreSql.Tests.csproj"
36+
"tests/FaceIT.Hangfire.Tags.MySql.Tests/FaceIT.Hangfire.Tags.MySql.Tests.csproj"
37+
)
38+
39+
for project in "${projects[@]}"; do
40+
dotnet restore "$project"
41+
done
2642
27-
- name: Build
28-
run: dotnet build Hangfire.Tags.sln -c Release --no-restore /p:ContinuousIntegrationBuild=true
43+
- name: Build public projects
44+
run: |
45+
projects=(
46+
"src/FaceIT.Hangfire.Tags/FaceIT.Hangfire.Tags.csproj"
47+
"src/FaceIT.Hangfire.Tags.Mongo/FaceIT.Hangfire.Tags.Mongo.csproj"
48+
"src/FaceIT.Hangfire.Tags.MySql/FaceIT.Hangfire.Tags.MySql.csproj"
49+
"src/FaceIT.Hangfire.Tags.PostgreSql/FaceIT.Hangfire.Tags.PostgreSql.csproj"
50+
"src/FaceIT.Hangfire.Tags.Redis.StackExchange/FaceIT.Hangfire.Tags.Redis.StackExchange.csproj"
51+
"src/FaceIT.Hangfire.Tags.SQLite/FaceIT.Hangfire.Tags.SQLite.csproj"
52+
"src/FaceIT.Hangfire.Tags.SqlServer/FaceIT.Hangfire.Tags.SqlServer.csproj"
53+
"tests/FaceIT.Hangfire.Tags.Tests/FaceIT.Hangfire.Tags.Tests.csproj"
54+
"tests/FaceIT.Hangfire.Tags.PostgreSql.Tests/FaceIT.Hangfire.Tags.PostgreSql.Tests.csproj"
55+
"tests/FaceIT.Hangfire.Tags.MySql.Tests/FaceIT.Hangfire.Tags.MySql.Tests.csproj"
56+
)
57+
58+
for project in "${projects[@]}"; do
59+
dotnet build "$project" -c Release --no-restore /p:ContinuousIntegrationBuild=true
60+
done
2961
3062
- name: Test
3163
run: |
3264
dotnet test tests/FaceIT.Hangfire.Tags.Tests/FaceIT.Hangfire.Tags.Tests.csproj -c Release --no-build
3365
dotnet test tests/FaceIT.Hangfire.Tags.PostgreSql.Tests/FaceIT.Hangfire.Tags.PostgreSql.Tests.csproj -c Release --no-build
3466
dotnet test tests/FaceIT.Hangfire.Tags.MySql.Tests/FaceIT.Hangfire.Tags.MySql.Tests.csproj -c Release --no-build
3567
36-
- name: Pack
37-
run: dotnet pack Hangfire.Tags.sln -c Release -o artifacts --no-build /p:ContinuousIntegrationBuild=true
68+
- name: Pack public packages
69+
run: |
70+
projects=(
71+
"src/FaceIT.Hangfire.Tags/FaceIT.Hangfire.Tags.csproj"
72+
"src/FaceIT.Hangfire.Tags.Mongo/FaceIT.Hangfire.Tags.Mongo.csproj"
73+
"src/FaceIT.Hangfire.Tags.MySql/FaceIT.Hangfire.Tags.MySql.csproj"
74+
"src/FaceIT.Hangfire.Tags.PostgreSql/FaceIT.Hangfire.Tags.PostgreSql.csproj"
75+
"src/FaceIT.Hangfire.Tags.Redis.StackExchange/FaceIT.Hangfire.Tags.Redis.StackExchange.csproj"
76+
"src/FaceIT.Hangfire.Tags.SQLite/FaceIT.Hangfire.Tags.SQLite.csproj"
77+
"src/FaceIT.Hangfire.Tags.SqlServer/FaceIT.Hangfire.Tags.SqlServer.csproj"
78+
)
79+
80+
for project in "${projects[@]}"; do
81+
dotnet pack "$project" -c Release -o artifacts --no-build /p:ContinuousIntegrationBuild=true
82+
done
83+
84+
- name: Configure Hangfire Pro feed
85+
if: ${{ secrets.HF_FEED_URL != '' && secrets.HF_USER != '' && secrets.HF_PASS != '' }}
86+
run: dotnet nuget add source "${{ secrets.HF_FEED_URL }}" --name ExtHf --username "${{ secrets.HF_USER }}" --password "${{ secrets.HF_PASS }}" --store-password-in-clear-text
87+
88+
- name: Pack Pro.Redis package
89+
if: ${{ secrets.HF_FEED_URL != '' && secrets.HF_USER != '' && secrets.HF_PASS != '' }}
90+
run: dotnet pack src/FaceIT.Hangfire.Tags.Pro.Redis/FaceIT.Hangfire.Tags.Pro.Redis.csproj -c Release -o artifacts /p:ContinuousIntegrationBuild=true
3891

3992
- name: NuGet Sign-in (OIDC to Temp API Key)
4093
uses: NuGet/login@v1

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Hangfire.Tags
22

3-
[![Build status](https://ci.appveyor.com/api/projects/status/hqrtav24894dtjcp/branch/main?svg=true)](https://ci.appveyor.com/project/faceit/hangfire-tags/branch/main)
3+
[![NuGet Publish](https://github.com/Hangtools/Hangfire.Tags/actions/workflows/publish-nuget.yml/badge.svg)](https://github.com/Hangtools/Hangfire.Tags/actions/workflows/publish-nuget.yml)
44
[![NuGet](https://img.shields.io/nuget/v/Hangtools.Hangfire.Tags.svg)](https://www.nuget.org/packages/Hangtools.Hangfire.Tags/)
55
![MIT License](https://img.shields.io/badge/license-MIT-orange.svg)
66
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=HYKKSJL8B7XE4&currency_code=EUR&source=url)
77

88
Inspired by the lack of searching and grouping, Hangfire.Tags provides a way to search and group different jobs.
99

10-
![sidemenu](https://raw.githubusercontent.com/face-it/Hangfire.Tags/main/Sidemenu-dark.png)
11-
![dashboard](https://raw.githubusercontent.com/face-it/Hangfire.Tags/main/Dashboard.png)
10+
![sidemenu](https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Sidemenu-dark.png)
11+
![dashboard](https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Dashboard.png)
1212

1313
## Contributers
1414

@@ -138,7 +138,7 @@ config.UseTagsWithSql(options);
138138
```
139139

140140
The result will look like this:
141-
![tagsearch](https://raw.githubusercontent.com/face-it/Hangfire.Tags/main/Tagsearch.png)
141+
![tagsearch](https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Tagsearch.png)
142142

143143
## License
144144

src/FaceIT.Hangfire.Tags.Mongo/FaceIT.Hangfire.Tags.Mongo.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<Version>1.9.2</Version>
1010
<Description>Support for MongoDB for Hangfire.Tags. This separate library is required in order to search for tags, and proper cleanup.</Description>
1111
<Copyright />
12-
<PackageProjectUrl>https://github.com/face-it/Hangfire.Tags</PackageProjectUrl>
12+
<PackageProjectUrl>https://github.com/Hangtools/Hangfire.Tags</PackageProjectUrl>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14-
<PackageIconUrl>https://raw.githubusercontent.com/face-it/Hangfire.Tags/master/Icon.png</PackageIconUrl>
15-
<RepositoryUrl>https://github.com/face-it/Hangfire.Tags</RepositoryUrl>
14+
<PackageIconUrl>https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Icon.png</PackageIconUrl>
15+
<RepositoryUrl>https://github.com/Hangtools/Hangfire.Tags</RepositoryUrl>
1616
<RepositoryType>Git</RepositoryType>
1717
<PackageTags>hangfire tags mongo</PackageTags>
1818
<RootNamespace>Hangfire.Tags.Mongo</RootNamespace>

src/FaceIT.Hangfire.Tags.MySql/FaceIT.Hangfire.Tags.MySql.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<Version>1.9.1</Version>
1010
<Description>Support for MySql for Hangfire.Tags. This separate library is required in order to search for tags, and proper cleanup.</Description>
1111
<Copyright />
12-
<PackageProjectUrl>https://github.com/face-it/Hangfire.Tags</PackageProjectUrl>
12+
<PackageProjectUrl>https://github.com/Hangtools/Hangfire.Tags</PackageProjectUrl>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14-
<PackageIconUrl>https://raw.githubusercontent.com/face-it/Hangfire.Tags/master/Icon.png</PackageIconUrl>
15-
<RepositoryUrl>https://github.com/face-it/Hangfire.Tags</RepositoryUrl>
14+
<PackageIconUrl>https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Icon.png</PackageIconUrl>
15+
<RepositoryUrl>https://github.com/Hangtools/Hangfire.Tags</RepositoryUrl>
1616
<RepositoryType>Git</RepositoryType>
1717
<PackageTags>hangfire tags MySql</PackageTags>
1818
<RootNamespace>Hangfire.Tags.MySql</RootNamespace>

src/FaceIT.Hangfire.Tags.PostgreSql/FaceIT.Hangfire.Tags.PostgreSql.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<Version>1.9.8</Version>
1010
<Description>Support for PostgreSql for Hangfire.Tags. This separate library is required in order to search for tags, and proper cleanup.</Description>
1111
<Copyright />
12-
<PackageProjectUrl>https://github.com/face-it/Hangfire.Tags</PackageProjectUrl>
12+
<PackageProjectUrl>https://github.com/Hangtools/Hangfire.Tags</PackageProjectUrl>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14-
<PackageIconUrl>https://raw.githubusercontent.com/face-it/Hangfire.Tags/master/Icon.png</PackageIconUrl>
15-
<RepositoryUrl>https://github.com/face-it/Hangfire.Tags</RepositoryUrl>
14+
<PackageIconUrl>https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Icon.png</PackageIconUrl>
15+
<RepositoryUrl>https://github.com/Hangtools/Hangfire.Tags</RepositoryUrl>
1616
<RepositoryType>Git</RepositoryType>
1717
<PackageTags>hangfire tags PostgreSql</PackageTags>
1818
<RootNamespace>Hangfire.Tags.PostgreSql</RootNamespace>

src/FaceIT.Hangfire.Tags.Pro.Redis/FaceIT.Hangfire.Tags.Pro.Redis.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
<Version>3.0.1</Version>
1111
<Description>Support for Redis for Hangfire.Tags. This separate library is required in order to search for tags, and proper cleanup.</Description>
1212
<Copyright />
13-
<PackageProjectUrl>https://github.com/face-it/Hangfire.Tags</PackageProjectUrl>
13+
<PackageProjectUrl>https://github.com/Hangtools/Hangfire.Tags</PackageProjectUrl>
1414
<PackageLicenseExpression>MIT</PackageLicenseExpression>
15-
<PackageIconUrl>https://raw.githubusercontent.com/face-it/Hangfire.Tags/master/Icon.png</PackageIconUrl>
16-
<RepositoryUrl>https://github.com/face-it/Hangfire.Tags</RepositoryUrl>
15+
<PackageIconUrl>https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Icon.png</PackageIconUrl>
16+
<RepositoryUrl>https://github.com/Hangtools/Hangfire.Tags</RepositoryUrl>
1717
<RepositoryType>Git</RepositoryType>
1818
<PackageTags>hangfire tags redis</PackageTags>
1919
<RootNamespace>Hangfire.Tags.Pro.Redis</RootNamespace>

src/FaceIT.Hangfire.Tags.Redis.StackExchange/FaceIT.Hangfire.Tags.Redis.StackExchange.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
<Description>Support for Redis for Hangfire.Tags. This separate library is required in order to search for tags, and proper cleanup.</Description>
1111
<Copyright />
1212
<AssemblyName>FaceIT.Hangfire.Tags.Redis.StackExchange</AssemblyName>
13-
<PackageProjectUrl>https://github.com/face-it/Hangfire.Tags</PackageProjectUrl>
13+
<PackageProjectUrl>https://github.com/Hangtools/Hangfire.Tags</PackageProjectUrl>
1414
<PackageLicenseExpression>MIT</PackageLicenseExpression>
15-
<PackageIconUrl>https://raw.githubusercontent.com/face-it/Hangfire.Tags/master/Icon.png</PackageIconUrl>
16-
<RepositoryUrl>https://github.com/face-it/Hangfire.Tags</RepositoryUrl>
15+
<PackageIconUrl>https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Icon.png</PackageIconUrl>
16+
<RepositoryUrl>https://github.com/Hangtools/Hangfire.Tags</RepositoryUrl>
1717
<RepositoryType>Git</RepositoryType>
1818
<PackageTags>hangfire tags redis</PackageTags>
1919
<RootNamespace>Hangfire.Tags.Redis.StackExchange</RootNamespace>

src/FaceIT.Hangfire.Tags.SQLite/FaceIT.Hangfire.Tags.SQLite.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<Version>1.9.1</Version>
1010
<Description>Support for SQLite for Hangfire.Tags. This separate library is required in order to search for tags, and proper cleanup.</Description>
1111
<Copyright />
12-
<PackageProjectUrl>https://github.com/face-it/Hangfire.Tags</PackageProjectUrl>
12+
<PackageProjectUrl>https://github.com/Hangtools/Hangfire.Tags</PackageProjectUrl>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14-
<PackageIconUrl>https://raw.githubusercontent.com/face-it/Hangfire.Tags/master/Icon.png</PackageIconUrl>
15-
<RepositoryUrl>https://github.com/face-it/Hangfire.Tags</RepositoryUrl>
14+
<PackageIconUrl>https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Icon.png</PackageIconUrl>
15+
<RepositoryUrl>https://github.com/Hangtools/Hangfire.Tags</RepositoryUrl>
1616
<RepositoryType>Git</RepositoryType>
1717
<PackageTags>hangfire tags sqlite</PackageTags>
1818
<RootNamespace>Hangfire.Tags.SQLite</RootNamespace>

src/FaceIT.Hangfire.Tags.SqlServer/FaceIT.Hangfire.Tags.SqlServer.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<Version>1.9.16</Version>
1010
<Description>Support for SQL Server for Hangfire.Tags. This seperate library is required in order to search for tags, and proper cleanup.</Description>
1111
<Copyright />
12-
<PackageProjectUrl>https://github.com/face-it/Hangfire.Tags</PackageProjectUrl>
12+
<PackageProjectUrl>https://github.com/Hangtools/Hangfire.Tags</PackageProjectUrl>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14-
<PackageIconUrl>https://raw.githubusercontent.com/face-it/Hangfire.Tags/master/Icon.png</PackageIconUrl>
15-
<RepositoryUrl>https://github.com/face-it/Hangfire.Tags</RepositoryUrl>
14+
<PackageIconUrl>https://raw.githubusercontent.com/Hangtools/Hangfire.Tags/main/Icon.png</PackageIconUrl>
15+
<RepositoryUrl>https://github.com/Hangtools/Hangfire.Tags</RepositoryUrl>
1616
<RepositoryType>Git</RepositoryType>
1717
<PackageTags>hangfire tags sql server</PackageTags>
1818
<PackageReleaseNotes>Initial release with support for adding tags to background jobs. The tags are visible on the job details page. It's possible to select a tag, and get a list of all jobs containing the selected tag.</PackageReleaseNotes>

src/FaceIT.Hangfire.Tags/Dashboard/Pages/TagsJobsPage.cshtml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@
5757

5858
}
5959

60-
@if (tagsListStyle == TagsListStyle.Dropdown && tags.Length == 1 && relatedTags.Any())
61-
{
62-
<script>
63-
function go(tag) {
64-
var baseUrl = "@Url.To("/tags/search/" + tags.First() + ",")";
65-
window.location = baseUrl + tag;
66-
}
67-
</script>
68-
}
6960
<div class="row">
7061
<div class="col-md-3">
7162
@Html.JobsSidebar()
@@ -97,7 +88,7 @@
9788
<input class="form-control" id="selectedTag" list="hangfireTagsList" autocomplete="off" placeholder="Select a related tag" />
9889
</div>
9990
<div class="col-md-2">
100-
<button id="btn_go" class="btn" onclick="go(document.getElementById('selectedTag').value)">Go</button>
91+
<button id="btn_tags_go" class="btn" data-base-url="@Url.To("/tags/search/" + tags.First() + ",")">Go</button>
10192
</div>
10293
</div>
10394
}

0 commit comments

Comments
 (0)