-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add recursive config option (#61)
- Loading branch information
Showing
20 changed files
with
304 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"📚 documentation": ['docs/*', 'documentation/*'] | ||
"🐛 bug": ['fix/*', 'bugfix/*', 'hotfix/*'] | ||
"✨ enhancement": ["feature/*", "feat/*"] | ||
"🤖 automation": ["ci/*"] | ||
"⚙️ refactoring": ["refactor/*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 🎨 Pull Request Management | ||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
pr-labeler: | ||
name: '➕ Add labels' | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: TimonVS/pr-labeler-action@v4 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
configuration-path: .github/pr_labeler.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import type { Scenario, ScenarioConfig } from './scenario' | ||
|
||
export type ExpositionConfig = Readonly<Record<string, ScenarioConfig<string>>> | ||
export interface ExpositionConfig { | ||
readonly [key: string]: ExpositionConfigOption | ||
} | ||
|
||
export type ExpositionConfigOption = ScenarioConfig<string> | ExpositionConfig | ||
|
||
export type ExpositionState<T extends ExpositionConfig> = { | ||
[K in keyof T]: Scenario<T[K]['options'][number]> | ||
[K in keyof T]: T[K] extends ScenarioConfig<string> ? Scenario<T[K]['options'][number]> : (T[K] extends ExpositionConfig ? ExpositionState<T[K]> : never) | ||
} | ||
|
||
export type ExpositionValues<T extends ExpositionState<ExpositionConfig>> = { | ||
[K in keyof T]: T[K]['options'][number] | ||
[K in keyof T]: T[K] extends Scenario<T[K]['options'][number]> ? T[K]['options'][number] : (T[K] extends ExpositionState<T[K]> ? ExpositionValues<T[K]> : never) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.