diff --git a/actions/setup/js/add_labels.cjs b/actions/setup/js/add_labels.cjs index 61d30cbfd5..20e86f6505 100644 --- a/actions/setup/js/add_labels.cjs +++ b/actions/setup/js/add_labels.cjs @@ -5,7 +5,7 @@ const { processSafeOutput } = require("./safe_output_processor.cjs"); const { validateLabels } = require("./safe_output_validator.cjs"); const { getErrorMessage } = require("./error_helpers.cjs"); -async function main(config = {}) { +async function main(handlerConfig = {}) { // Use shared processor for common steps const result = await processSafeOutput( { @@ -17,9 +17,9 @@ async function main(config = {}) { supportsIssue: true, envVars: { // Config values now passed via config object, not env vars - allowed: null, - maxCount: null, - target: null, + allowed: undefined, + maxCount: undefined, + target: undefined, }, }, { @@ -38,7 +38,7 @@ async function main(config = {}) { return content; }, }, - config // Pass handler config as third parameter + handlerConfig // Pass handler config as third parameter ); if (!result.success) { diff --git a/actions/setup/js/safe_output_handler_manager.cjs b/actions/setup/js/safe_output_handler_manager.cjs index b0b9848e34..5305cf759d 100644 --- a/actions/setup/js/safe_output_handler_manager.cjs +++ b/actions/setup/js/safe_output_handler_manager.cjs @@ -97,7 +97,7 @@ async function loadHandlers(config) { * * @param {Map} messageHandlers - Map of message handler functions * @param {Array} messages - Array of safe output messages - * @returns {Promise<{success: boolean, results: Array, temporaryIdMap: Map}>} + * @returns {Promise<{success: boolean, results: Array, temporaryIdMap: Object}>} */ async function processMessages(messageHandlers, messages) { const results = []; diff --git a/actions/setup/js/update_runner.cjs b/actions/setup/js/update_runner.cjs index cc1df2563b..8103002662 100644 --- a/actions/setup/js/update_runner.cjs +++ b/actions/setup/js/update_runner.cjs @@ -30,8 +30,9 @@ const { getErrorMessage } = require("./error_helpers.cjs"); * @property {boolean} supportsStatus - Whether this type supports status updates * @property {boolean} supportsOperation - Whether this type supports operation (append/prepend/replace) * @property {(item: any, index: number) => string} renderStagedItem - Function to render item for staged preview - * @property {(github: any, context: any, targetNumber: number, updateData: any) => Promise} executeUpdate - Function to execute the update API call + * @property {(github: any, context: any, targetNumber: number, updateData: any, handlerConfig?: any) => Promise} executeUpdate - Function to execute the update API call * @property {(result: any) => string} getSummaryLine - Function to generate summary line for an updated item + * @property {Object} [handlerConfig] - Optional handler configuration passed from safe output processor */ /**