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 Diff Size 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
total lines of diff in the Merge Request
represents whether or not the Merge Request event meets the criteria for good Diff Size 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.
Calculates the total lines of diff as the sum of additions and deletions across all of the Change objects.
array of GitLab Change objects
total lines of diff across all of the changes
Generated using TypeDoc
This Bot Action class analyzes how many lines of diff are contained in the GitLab Merge Request and determines what, if any, feedback to provide to user.