Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,7 @@ jobs:
submodules: 'false'
show-progress: 'false'
- name: Install JBang
run: |
curl -Ls https://sh.jbang.dev | bash -s - app setup
echo "$HOME/.jbang/bin" >> $GITHUB_PATH
uses: jbangdev/setup-jbang@main
- run: jbang build .jbang/CheckoutPR.java
- run: jbang build .jbang/CloneJabRef.java
- run: jbang build .jbang/JabKitLauncher.java
Expand Down
3 changes: 3 additions & 0 deletions .jbang/CheckoutPR.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public static void main(String[] args) throws Exception {
pr = repo.getPullRequest(prNumber);
}

System.out.println("Determined PR URL is " + pr.getUrl());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added logging statement uses an exclamation mark at the end of the sentence, which is discouraged as it can be perceived as shouting. Use a period instead.


if (pr.isMerged()) {
System.out.println("Pull request is already merged - checking out main branch...");
checkoutUpstreamMain();
Expand Down Expand Up @@ -145,6 +147,7 @@ public static void main(String[] args) throws Exception {
}

System.out.println("Checked out PR #" + pr.getNumber() + " (" + pr.getTitle() + ") to branch '" + localBranchName + "'.");
System.out.println("Checked out commit " + pr.getHead().getSha() + "'.");
}

private static void checkoutUpstreamMain() throws Exception {
Expand Down
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ run-jabkit *FLAGS:
run-jabsrv *FLAGS:
.\gg.cmd gradle :jabsrv-cli:run --args="{{FLAGS}}"

run-main:
just run main

run-pr pr-id:
just checkout-pr {{pr-id}}
just run-gui