From a156c987111a7ec61545d31c910b844c17377010 Mon Sep 17 00:00:00 2001 From: Vasilis The Pikachu Date: Sat, 10 Feb 2024 20:01:42 +0100 Subject: [PATCH] Fix changelog url using the github api one instead of the human reable pr --- SS14.Changelog/Controllers/WebhookController.cs | 2 +- SS14.Changelog/GitHubData.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SS14.Changelog/Controllers/WebhookController.cs b/SS14.Changelog/Controllers/WebhookController.cs index 105c438..f3c6c9b 100644 --- a/SS14.Changelog/Controllers/WebhookController.cs +++ b/SS14.Changelog/Controllers/WebhookController.cs @@ -217,7 +217,7 @@ private void HandlePullRequest(GHPullRequestEvent eventData) return new ChangelogData(author, finalCategories, pr.MergedAt ?? DateTimeOffset.Now) { Number = pr.Number, - HtmlUrl = pr.Url + HtmlUrl = pr.Html_url }; } } diff --git a/SS14.Changelog/GitHubData.cs b/SS14.Changelog/GitHubData.cs index 1026d4b..d90c6ac 100644 --- a/SS14.Changelog/GitHubData.cs +++ b/SS14.Changelog/GitHubData.cs @@ -18,7 +18,7 @@ public sealed record GHPullRequest( DateTimeOffset? MergedAt, GHPullRequestBase Base, int Number, - string Url); + string Html_url); public sealed record GHPullRequestBase(string Ref);