[Rev 01] RFR: 199: Set fixVersion in an issue when a commit is integrated

Robin Westberg rwestberg at openjdk.java.net
Fri Dec 13 11:07:33 UTC 2019


On Fri, 13 Dec 2019 11:04:46 GMT, Erik Helin <ehelin at openjdk.org> wrote:

>> The pull request has been updated with 1 additional commit.
> 
> bots/notify/src/main/java/org/openjdk/skara/bots/notify/IssueUpdater.java line 81:
> 
>> 80: 
>> 81:                 if (fixVersion != null) {
>> 82:                     if (fixVersion.equals("<repo>")) {
> 
> How about turning this around a bit into:
> 
> if (fixVersion == null) {
>    // Try to find fixVersion from .jceck/conf
> }
> if (fixVersion != null) {
>     issue.get().addFixVersion(fixVersion)
> }
> If you don't sent the `fixVersion` via the bot configuration, then it will be `null`, and then we will read it from `.jcheck/conf`. This avoids the need for the special `<repo>` version.

Right, but if you create a fork where you don't want to change the .jcheck/conf file (for merge reasons) you may perhaps not want the fixVersion updated?

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

PR: https://git.openjdk.java.net/skara/pull/324


More information about the skara-dev mailing list