Skip to content

Commit

Permalink
Fix changelog url using the github api one instead of the human reabl…
Browse files Browse the repository at this point in the history
…e pr (#7)
  • Loading branch information
VasilisThePikachu authored Feb 10, 2024
1 parent edbca25 commit 5cfaf1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SS14.Changelog/Controllers/WebhookController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion SS14.Changelog/GitHubData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5cfaf1f

Please sign in to comment.