From 3e8f5b83e28335534b6aea70e6b0ecced606f8a9 Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Sun, 8 May 2022 15:07:17 +0200 Subject: [PATCH] Fix for PR feature not using the correct username for the repository --- src/cmd/pr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/pr.cpp b/src/cmd/pr.cpp index 5f56957..5b73fd8 100644 --- a/src/cmd/pr.cpp +++ b/src/cmd/pr.cpp @@ -328,7 +328,7 @@ pr_command::pr_info pr_command::get_pr_info( json = nlohmann::json::parse(output); const std::string repo = json["head"]["repo"]["name"]; - const std::string author = json["head"]["repo"]["owner"]["login"]; + const std::string author = json["head"]["repo"]["user"]["login"]; const std::string branch = json["head"]["ref"]; return {repo, author, branch};