Skip to content

Commit

Permalink
chore: rename variable to allow contributor permit generation
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Dec 12, 2024
1 parent 517c10d commit e67d78e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ with:
incentives:
requirePriceLabel: true
limitRewards: true
allowContributorGeneration: false
collaboratorOnlyPaymentInvocation: false
contentEvaluator:
openAi:
model: "gpt-4o"
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/types/plugin-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
}),
Expand Down

0 comments on commit e67d78e

Please sign in to comment.