Gets id of oldest merge request note where author's username matches GITLAB_BOT_ACCOUNT_NAME defined in env vars
an instance of the GitLabApi class that wraps HTTP requests to and responses from the GitLab API
id of GRDBot note if it exists, or -1 if no GRDBot note exists
Evaluates parameters to one of three outcomes: posts new note from GRDBot to GitLab Merge Request, updates existing GRDBot note, or takes no action.
an instance of the GitLabApi class that wraps HTTP requests to and responses from the GitLab API
the state of the incoming Merge Request event from GitLab
true
updates previous GRDBot comment if exists; false
always posts new comment
BotComment
with no action response when all messages are "NA"BotComment
with new comment response when state is "open"BotComment
with new comment response when state is "update" but no previous GRDBot comment exists on MRBotComment
with update comment response when state is "update" and previous GRDBot comment exists on MRBotComment
with new comment response when state is "merge" and updateToggle
is false
BotComment
with new comment response when state is "merge", updateToggle
is true
, but no previous GRDBot comment exists on MRBotComment
with update comment response when state is "merge", updateToggle
is true
, and previous GRDBot comment exists on MRGenerated using TypeDoc
This abstract class contains the logic for posting comments to end-user's Merge Request.