mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
Fix for PR feature not using the correct username for the repository
This commit is contained in:
+1
-1
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user