API calls can fail temporarily. Build in retries for transient failures.
Copy
Ask AI
Try up to 3 times: - Fetch data from API - If successful, proceed - If rate limited, wait 60 seconds and retry - If all attempts fail, log error and notify team
Don’t let one failure stop the whole automation. Process items independently.
Copy
Ask AI
For each PR in the list: - Try to process the PR - If processing fails: - Log the error with PR number - Continue with remaining PRs - Track success/failure countsAt the end: - Report: "Processed 8/10 PRs successfully" - List failed items for manual review
Add a flag to test automations without making real changes.
Copy
Ask AI
If DRY_RUN mode: - Log what would be done - Show the Slack message that would be posted - List the PRs that would be created - Don't make actual changesOtherwise: - Execute normally