Each weekday morning, posts in Slack the open GitLab merge requests waiting more than 2 days, drafts left out.
Uses
GitLab
Slack
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.
waiting.GitLabIf
waiting.count is greater than 0If waiting.count is greater than 0Yes
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.post.Send message to channel. Save it as post.Merge requests waiting more than 2 days:
request_linesNo
No steps