the state of the Merge Request: open
, update
, or merge
an instance of GitLabApi
data about the success or failure of the GitLab API request and resulting properties calculated by Commit Messages 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 Commit Messages practice
SuccSuccessfulBotActionWithMessageessfulBotAction instance containing feedback for user. If no feedback is warranted, an instance of SuccessfulBotActionWithNothingToSay is returned.
Computes the threshold (number of offenses required to give a "nudge") Since MRs can be of many different sizes, it makes sense to evaluate the user based on the percentage of correct commits.
If we do this, though, we run into strange behavior when there are very few commits.
So, we define both a universal minimum threshold and a percentage of commits. The "threshold" is the higher of these two numbers.
Number of commits used in this merge request
Returns whether a string follows the length convention
True if the string has at least 4 alphanumeric characters and at most 50 of any type of character.
Ordered array indicating whether each commit followed (true) or violated (false) this convention
Obtained by the calculateThreshold
function
Generated using TypeDoc
This Bot Action class analyzes the titles of the Commits contained in the GitLab Merge Request and determines what, if any, feedback to provide to user.