the state of the Merge Request: open
, update
, or merge
an instance of GitLabApi
an instance of BotActionConfig
data about the success or failure of the GitLab API request and resulting properties calculated by Branch Age analysis
Invoked when Bot Action analysis was successful. Constructs a BotAction object containing goodGitPractice and conditional feedback message.
the state of the Merge Request: open
, update
, or merge
represents whether or not the Merge Request event meets the criteria for good Branch Age practice
if true, positive feedback will not be provided
SuccessfulBotActionWithMessage instance containing feedback for user. If no feedback is warranted, an instance of SuccessfulBotActionWithNothingToSay is returned.
Array of all Commits associated with the Merge Request
the oldest Commit in the array
a single Commit object
the number of days to compare the age of the Commit to
true
if age of oldestCommit is less than threshold
Generated using TypeDoc
This Bot Action class analyzes the age of the Commits contained in the GitLab Merge Request and determines what, if any, feedback to provide to user.