From e67d78e5f5c108f32a542c1564588774ba90f69a Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Fri, 13 Dec 2024 01:36:01 +0900 Subject: [PATCH] chore: rename variable to allow contributor permit generation --- README.md | 2 +- manifest.json | 2 +- src/run.ts | 2 +- src/types/plugin-input.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c58f5fb0..4d0d5e3b 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ with: incentives: requirePriceLabel: true limitRewards: true - allowContributorGeneration: false + collaboratorOnlyPaymentInvocation: false contentEvaluator: openAi: model: "gpt-4o" diff --git a/manifest.json b/manifest.json index a78e0e9f..65fd06f8 100644 --- a/manifest.json +++ b/manifest.json @@ -40,7 +40,7 @@ "description": "Should the rewards of non-assignees be limited to the task reward?", "type": "boolean" }, - "allowContributorGeneration": { + "collaboratorOnlyPaymentInvocation": { "default": false, "description": "If true, will allow contributors to generate permits.", "type": "boolean" diff --git a/src/run.ts b/src/run.ts index dd2bd65b..e836d8f2 100644 --- a/src/run.ts +++ b/src/run.ts @@ -40,7 +40,7 @@ export async function run(context: ContextPlugin) { return result.logMessage.raw; } - if (!config.incentives.allowContributorGeneration && !(await isUserAllowedToGeneratePermits(context))) { + if (!config.incentives.collaboratorOnlyPaymentInvocation && !(await isUserAllowedToGeneratePermits(context))) { const result = logger.error("You are not allowed to generate permits."); await postComment(context, result); return result.logMessage.raw; diff --git a/src/types/plugin-input.ts b/src/types/plugin-input.ts index 952a58b5..0d245c3c 100644 --- a/src/types/plugin-input.ts +++ b/src/types/plugin-input.ts @@ -46,7 +46,7 @@ export const pluginSettingsSchema = T.Object( default: true, description: "Should the rewards of non-assignees be limited to the task reward?", }), - allowContributorGeneration: T.Boolean({ + collaboratorOnlyPaymentInvocation: T.Boolean({ default: false, description: "If true, will allow contributors to generate permits.", }),