Skip to content

Commit

Permalink
Development build (12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackyliang committed Aug 15, 2024
1 parent 94d7c2c commit 72021a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ INPUT_ISSUE_LABELS='support'
INPUT_ISSUE_LIMIT_COMMENTER='true'
INPUT_ISSUE_LOCK_ON_CLOSE='true'
INPUT_ISSUE_MESSAGE_NOT_SPONSOR='Apologies! Only sponsoring users are allowed to open issues. Please sponsor the owner of this repository, then try again.'
INPUT_ISSUE_MESSAGE_WELCOME='Thank you for your support! We appreciate your sponsorship and are here to help. We\'ll review your issue and get back to you as soon as possible.\r\n\r\nPlease note that this issue is protected and only you + the contributors can comment on this thread. All other comments will be deleted automatically.'
INPUT_ISSUE_MESSAGE_WELCOME='Thank you for your support! We appreciate your sponsorship and are here to help. We will review your issue and get back to you as soon as possible.'
INPUT_IS_ORGANIZATION='false'
INPUT_SPONSOR_ACTIVE_ONLY='true'
INPUT_SPONSOR_EXEMPT_FILE_LOCATION='./SPONSOR_EXEMPT'
Expand Down
3 changes: 0 additions & 3 deletions SPONSOR_EXEMPT

This file was deleted.

2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ inputs:
ISSUE_MESSAGE_WELCOME:
description: "Message to send when a sponsoring user opens an issue"
required: false
default: "Thank you for your support! We appreciate your sponsorship and are here to help. We'll review your issue and get back to you as soon as possible.\r\n\r\nPlease note that this issue is protected and only you + the contributors can comment on this thread. All other comments will be deleted automatically."
default: "Thank you for your support! We appreciate your sponsorship and are here to help. We will review your issue and get back to you as soon as possible."
IS_ORGANIZATION:
description: "If this workflow is being used on an organization-owned repository"
required: false
Expand Down
7 changes: 5 additions & 2 deletions src/lib/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ export const configuration = z.object({
githubWorkflowToken: z.string()
.startsWith('ghs_'),
issueLabels: z.string()
.transform((value) => ((value === '') ? 'support' : value))
.transform((value) => value.split(',')),
issueLimitCommenter: z.enum(['true', 'false'])
.transform((value) => value === 'true'),
issueLockOnClose: z.enum(['true', 'false'])
.transform((value) => value === 'true'),
issueMessageNotSponsor: z.string(),
issueMessageWelcome: z.string(),
issueMessageNotSponsor: z.string()
.transform((value) => ((value === '') ? 'Apologies! Only sponsoring users are allowed to open issues. Please sponsor the owner of this repository, then try again.' : value)),
issueMessageWelcome: z.string()
.transform((value) => ((value === '') ? 'Thank you for your support! We appreciate your sponsorship and are here to help. We will review your issue and get back to you as soon as possible.' : value)),
isOrganization: z.enum(['true', 'false'])
.transform((value) => value === 'true'),
sponsorActiveOnly: z.enum(['true', 'false'])
Expand Down

0 comments on commit 72021a7

Please sign in to comment.