Skip to content

Commit

Permalink
Pull request create part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dnestoro committed Mar 7, 2025
1 parent 25547af commit e1a3a8e
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,15 @@ private void createPullRequest(Map<PullRequestInfo, Object> info) {
invokeCommand("git add .", "Cannot add changes");

InteractiveTaskUtils.printUserInfo("Committing changes");
String output = invokeCommand("git", List.of("commit", "-m", "Add metadata for " + coordinates), "Cannot commit changes", null);
System.out.println(output);
invokeCommand("git", List.of("commit", "-m", "Add metadata for " + coordinates), "Cannot commit changes", null);

// InteractiveTaskUtils.printUserInfo("Pushing changes");
// invokeCommand("git push origin " + branch, "Cannot push to origin");
// String output = invokeCommand("git push origin " + branch, "Cannot push to origin");
//
// List<String> outputLines = List.of(output.split("\n"));
// for (var line : outputLines) {
//
// }
}

private void writeToFile(Path path, String content, StandardOpenOption writeOption) throws IOException {
Expand Down

0 comments on commit e1a3a8e

Please sign in to comment.