Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

AD: Support custom limit on number of open pull requests #1043

Merged

Commits on Nov 23, 2020

  1. feat: Support specifying threshold for open PRs

    Before, NuKeeper would only generate a single pull request as it would
    reselect the same updateset every single time, unless some outside
    factors would influence the result of its prioritization algorithm.
    
    Now, you can specify the max number of open pull requests on a
    per-repository basis. This is currently only supported for Azure
    Devops/TFS, however only Azure Devops Server has been tested.
    
    Since there are no straightforward APIs for figuring out the number of
    open pull requests, especially when using a PAT with `Code (Read &
    Write)`, heuristics are used to figure out the number of open pull
    requests as best as possible.
    
    First, the current user is fetched. If this fails, a user by the name of
    `nukeeper@bot.com` will be fetched. If this fails, all pull requests in
    the repository will be considered that have the label `nukeeper`. If
    none of these things were possible, it's assumed that there are 0 open
    pull requests.
    
    When the parameter `--consolidate` is specified, the default value for
    `--maxopenpullrequests` is 1, otherwise it is `maxpackageupdates`.
    CrispyDrone committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    6db80f8 View commit details
    Browse the repository at this point in the history