Commit f25a582
Add digger:force label to bypass impacted projects limit (#2549)
* Auto-succeed digger/apply check when plan shows zero changes
This change implements automatic success for the digger/apply check when
all plan jobs complete with zero infrastructure changes, eliminating the
need for manual intervention in no-change scenarios.
Changes:
- Create both digger/plan and digger/apply checks when PR opens with plan jobs
- The apply check starts in "queued" state with message indicating it will
auto-succeed if no changes are detected
- After plan batch completes successfully, detect if all jobs have zero changes
(ResourcesCreated = 0, ResourcesUpdated = 0, ResourcesDeleted = 0)
- If all jobs have zero changes, automatically update apply check to "completed"
with "success" conclusion
- Add GetCheckRunsForCommit() method to query check runs for a commit SHA
Benefits:
- Improved UX: Users see both checks immediately when PR opens
- Automation: No manual action needed for zero-change plans
- Clear communication: Check messages explain the automatic behavior
- No breaking changes: Existing behavior for plans with changes unchanged
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* feat: add digger:force label to bypass impacted projects limit
Add support for the 'digger:force' label on pull requests to bypass
the ImpactedProjectsPerChange limit. This allows users to intentionally
proceed with plan/apply operations on PRs that impact more projects than
the configured limit.
Changes:
- Check for 'digger:force' label in both PR and comment event handlers
- Update error messages to inform users about the bypass option
- Add warning logs when limit is bypassed for audit purposes
- Add slices import to github_comment.go for label checking
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
---------
Co-authored-by: substrate-bot <bot@substrate.run>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 88d866b commit f25a582
File tree
2 files changed
+23
-4
lines changed- backend/controllers
2 files changed
+23
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
362 | | - | |
| 363 | + | |
| 364 | + | |
363 | 365 | | |
364 | 366 | | |
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
368 | 370 | | |
369 | | - | |
| 371 | + | |
370 | 372 | | |
371 | 373 | | |
372 | 374 | | |
| |||
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
381 | 391 | | |
382 | 392 | | |
383 | 393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
271 | | - | |
| 272 | + | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
283 | 292 | | |
284 | 293 | | |
285 | 294 | | |
| |||
0 commit comments