From 73a5c9a525f9744011b38806cc7b6433fd67df77 Mon Sep 17 00:00:00 2001 From: Tahir Date: Sat, 15 Jun 2024 01:22:15 +0100 Subject: [PATCH] use settings repo branch when changing repo --- FFXIVMonReborn/Database/GitHub/GitHubApi.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FFXIVMonReborn/Database/GitHub/GitHubApi.cs b/FFXIVMonReborn/Database/GitHub/GitHubApi.cs index c7d3251..86d318b 100644 --- a/FFXIVMonReborn/Database/GitHub/GitHubApi.cs +++ b/FFXIVMonReborn/Database/GitHub/GitHubApi.cs @@ -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)