MCPcopy Create free account
hub / github.com/Noumena-Network/code / shouldAutoRunIssue

Function shouldAutoRunIssue

src/utils/autoRunIssue.tsx:83–96  ·  view source on GitHub ↗
(reason: AutoRunIssueReason)

Source from the content-addressed store, hash-verified

81 * Determines if /issue should auto-run for Ant users
82 */
83export function shouldAutoRunIssue(reason: AutoRunIssueReason): boolean {
84 // Only for Ant users
85 if ((process.env.NCODE_BUILD_MODE !== 'noumena' && process.env.USER_TYPE !== 'ant')) {
86 return false;
87 }
88 switch (reason) {
89 case 'feedback_survey_bad':
90 return false;
91 case 'feedback_survey_good':
92 return false;
93 default:
94 return false;
95 }
96}
97
98/**
99 * Returns the appropriate command to auto-run based on the reason

Callers 1

REPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected