RFR: 1852: Make it possible to disable backport PRs for repository [v3]

Erik Joelsson erikj at openjdk.org
Tue May 2 22:28:20 UTC 2023


On Tue, 2 May 2023 21:25:41 GMT, Zhao Song <zsong at openjdk.org> wrote:

>> In this patch, PR bot has been added with the capability to control whether backport pr is allowed in specific repositories.
>> 
>> By default, backport is enabled.
>> 
>> However, if it is desired to disable backport in a repo, the configuration can be added to the PR bot configuration as follows:
>> 
>> {
>>   "pr": {
>>       "repositories": {
>>           "repo1": {
>>                "backport": false
>>           }
>>        }
>>   }
>> }
>> 
>> 
>> If backport pr is disabled and the title of the pr matches the pattern of backport pr, the pr bot would reply a warning message to the user and prompt for the next steps.
>
> Zhao Song has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains seven commits:
> 
>  - Merge branch 'master' into SKARA-1852
>    
>    # Conflicts:
>    #	bots/pr/src/main/java/org/openjdk/skara/bots/pr/PullRequestBot.java
>    #	bots/pr/src/main/java/org/openjdk/skara/bots/pr/PullRequestBotBuilder.java
>    #	bots/pr/src/test/java/org/openjdk/skara/bots/pr/PullRequestBotFactoryTest.java
>  - fix a problem
>  - fix problems
>  - Merge branch 'master' into SKARA-1852
>    
>    # Conflicts:
>    #	bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckWorkItem.java
>    #	bots/pr/src/main/java/org/openjdk/skara/bots/pr/PullRequestBot.java
>    #	bots/pr/src/main/java/org/openjdk/skara/bots/pr/PullRequestBotBuilder.java
>    #	bots/pr/src/main/java/org/openjdk/skara/bots/pr/PullRequestBotFactory.java
>    #	bots/pr/src/test/java/org/openjdk/skara/bots/pr/CheckTests.java
>    #	bots/pr/src/test/java/org/openjdk/skara/bots/pr/PullRequestBotFactoryTest.java
>  - Update bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckWorkItem.java
>    
>    Co-authored-by: Erik Joelsson <37597443+erikj79 at users.noreply.github.com>
>  - fix a problem
>  - SKARA-1852

Marked as reviewed by erikj (Lead).

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

PR Review: https://git.openjdk.org/skara/pull/1497#pullrequestreview-1409967281


More information about the skara-dev mailing list