RFR: 2304: /backport jdk23 should provide a more helpful message [v2]

Zhao Song zsong at openjdk.org
Wed Jul 3 17:20:10 UTC 2024


> This patch is trying to improve the bot's replies of backport command.
> 
> 1. If the user issued `/backport jdkX`, the bot would check if there is a `jdkX` branch in current repo, if so, the bot would tell the user that to target a backport to `jdkX` branch in current repo, he should issue `/backport :jdkX`.
> 
> 2. When user specified branch name in the command but the branch doesn't exist, the bot will list 10 branch names in the target repo, the branch names are just sorted in reverse alphabetical order, so we can't guarantee they are the most relevant ones.

Zhao Song has updated the pull request incrementally with two additional commits since the last revision:

 - Update bots/pr/src/main/java/org/openjdk/skara/bots/pr/BackportCommand.java
   
   Co-authored-by: Erik Joelsson <37597443+erikj79 at users.noreply.github.com>
 - Update bots/pr/src/main/java/org/openjdk/skara/bots/pr/BackportCommand.java
   
   Co-authored-by: Erik Joelsson <37597443+erikj79 at users.noreply.github.com>

-------------

Changes:
  - all: https://git.openjdk.org/skara/pull/1667/files
  - new: https://git.openjdk.org/skara/pull/1667/files/66d367d7..3788e4c6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=skara&pr=1667&range=01
 - incr: https://webrevs.openjdk.org/?repo=skara&pr=1667&range=00-01

  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/skara/pull/1667.diff
  Fetch: git fetch https://git.openjdk.org/skara.git pull/1667/head:pull/1667

PR: https://git.openjdk.org/skara/pull/1667


More information about the skara-dev mailing list