Function
shouldAutoRunIssue
(reason: AutoRunIssueReason)
Source from the content-addressed store, hash-verified
| 80 | * Determines if /issue should auto-run for Ant users |
| 81 | */ |
| 82 | export function shouldAutoRunIssue(reason: AutoRunIssueReason): boolean { |
| 83 | // Only for Ant users |
| 84 | if ("external" !== 'ant') { |
| 85 | return false; |
| 86 | } |
| 87 | switch (reason) { |
| 88 | case 'feedback_survey_bad': |
| 89 | return false; |
| 90 | case 'feedback_survey_good': |
| 91 | return false; |
| 92 | default: |
| 93 | return false; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Returns the appropriate command to auto-run based on the reason |
Tested by
no test coverage detected