generated from JoshuaKGoldberg/create-typescript-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: featureNew enhancement or request 🚀New enhancement or request 🚀
Description
Feature Request Checklist
- I have pulled the latest
main
branch of the repository. - I have searched for related issues and found none that matched my issue.
Overview
Lint rules often need to be configured. For example, in pr-linked-issue
, requiring a configurable list of labels on the linked issue. OctoGuide will need to allow:
- Defining a schema of options on a rule
- Allowing repos to define values for options as
with:
options
Both the action and CLI will need to read from that file, including fetching it.
Additional Info
I'm envisioning the end user config experience will be like:
jobs:
octoguide:
if: ${{ !endsWith(github.actor, '[bot]') }}
runs-on: ubuntu-latest
steps:
- uses: JoshuaKGoldberg/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
rules:
my-rule:
option: true
Rules would then have an options
field in their about
that's set to an object of Zod schemas:
export const myRule = {
about: {
config: "strict",
// ...
options: {
"some-option": z.string().optional()
},
},
// ...
} satisfies Rule;
~Blocked on #19 - implementing an action in the first place.~ ✅
🗺
Metadata
Metadata
Assignees
Labels
status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: featureNew enhancement or request 🚀New enhancement or request 🚀