Fix for PR feature not using the correct username for the repository

This commit is contained in:
AL
2022-05-08 15:07:17 +02:00
parent b98e4ae653
commit 3e8f5b83e2
+1 -1
View File
@@ -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};