Each weekday morning, posts in Slack the open GitLab merge requests waiting more than 2 days, drafts left out.

UsesGitLabSlack

Weekday list of GitLab merge requests waiting for review

Merge requests that sit unreviewed slow everyone down. Each weekday morning this posts the open ones in your GitLab project that have waited more than 2 days, longest first, with who opened each and a link.

Drafts are left out, since they are not ready for review, and on a day with nothing waiting nothing is posted.

Run every weekday at 09:00.Run every weekday at 09:00.
GitLabOpen merge requests waiting more than 2 daysList merge requests. Save it as waiting.GitLab
If waiting.count is greater than 0If waiting.count is greater than 0
Yes
One line per merge requestWrite each item in waiting.merge_requests as “• @item.title by @item.author_name, open @item.days_open days: @item.web_url”, one per line and save it as request_lines.
SlackSlackSend message to channel. Save it as post.Send message to channel. Save it as post.Merge requests waiting more than 2 days: request_lines
No
No steps