Skip to content

Commit

Permalink
use settings repo branch when changing repo
Browse files Browse the repository at this point in the history
  • Loading branch information
takhlaq committed Jun 15, 2024
1 parent 919d965 commit 73a5c9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FFXIVMonReborn/Database/GitHub/GitHubApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ private void Update()

private void LoadBranches()
{
Branches = GitHubBranch.FromJson(Request($"/repos/{Repository}/branches"));
Branches = GitHubBranch.FromJson(Request($"/repos/{Settings.Default.Repo}/branches"));
}

private void LoadTags()
{
Tags = GitHubTag.FromJson(Request($"/repos/{Repository}/tags"));
Tags = GitHubTag.FromJson(Request($"/repos/{Settings.Default.Repo}/tags"));

Tags = Tags.OrderBy(tag => decimal.Parse(tag.Name.Substring(1), CultureInfo.InvariantCulture)).ToArray();
}

private void LoadCommits()
{
Commits = GitHubCommit.FromJson(Request($"/repos/{Repository}/commits?sha={Settings.Default.RepoBranch}"));
Commits = GitHubCommit.FromJson(Request($"/repos/{Settings.Default.Repo}/commits?sha={Settings.Default.RepoBranch}"));
}

private string Request(string endpoint, bool ignoreCache = false)
Expand Down

0 comments on commit 73a5c9a

Please sign in to comment.