Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Create and Close GitLab Merge Requests on a Schedule
On a schedule, it checks the API for existing merge requests, closes outdated ones and creates new merge requests with custom settings.
What it does
# Httprequest Workflow ## Overview Automated workflow: Httprequest Workflow. This workflow processes data and performs automated tasks. ## Workflow Details - Total Nodes: 21 - Node Types: 8 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - API to Check existing merge request: httpRequest - Is Exists: if - Create New Merge Request: httpRequest - Loop Over Items: splitInBatches - API to CLOSE existing Merge Request: httpRequest - Add Custom Notes To Merge Request: httpRequest - 30 secs wait to approve merge request and pipeline to finish1: wait - Merge When Pipeline Succeeds: httpRequest - setValueForMerge: set - Schedule Trigger: scheduleTrigger - ... and 11 more nodes ## Usage Instructions 1. Configure Credentials: Set up all required API keys and credentials 2. Update Variables: Replace any placeholder values with actual data 3. Test Workflow: Run in test mode to verify functionality 4. Deploy: Activate the workflow for production use ## Security Notes - All sensitive data has been removed or replaced with placeholders - Error handling is implemented for reliability - Follow security best practices when configuring credentials ## Troubleshooting - Check error logs if workflow fails - Verify all credentials are properly configured - Ensure all required services are accessible
The steps
- API to Check existing merge request
- Is Exists
- Create New Merge Request
- Loop Over Items
- API to CLOSE existing Merge Request
- Add Custom Notes To Merge Request
- 30 secs wait to approve merge request and pipeline to finish
- Merge When Pipeline Succeeds
- setValueForMerge
- Schedule Trigger
- Error Handler
- Stopanderror 1
- Stopanderror 2
- Stopanderror 3
36 steps in total.
Similar automations
Code, Git & Developer ToolsReview GitLab Merge Requests and Assess Risk with Claude14 stepsCode, Git & Developer ToolsReview GitLab Merge Requests with Claude, Email Reports33 stepsCode, Git & Developer ToolsAutomate GitLab Merge Requests via the API10 stepsCode, Git & Developer ToolsReview GitLab Merge Requests Automatically with ChatGPT10 steps