Repository navigation
Store and restore "failed" configuration if init step aborts
#4225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
cf8f7b9
309f6af
317f264
19445dd
5136039
4fdbb71
f4a15a1
409be01
ecfc96e
ac8654a
bed4cc0
be78e02
e3aeabd
26c6f91
67f44bc
6a9f7e7
9645acc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,3 +126,30 @@ export interface Config { | |
| */ | ||
| enableFileCoverageInformation: boolean; | ||
| } | ||
|
|
||
| /** Properties available in `Config`. */ | ||
| export type ActionConfigProperties = keyof Config; | ||
|
|
||
| /** | ||
| * The CodeQL Action configuration state that is persisted | ||
| * between steps of the CodeQL Action in a CodeQL workflow. | ||
| * | ||
| * By default, this is equivalent to `Config`. By explicitly | ||
| * providing required property names for `T` this can be restricted | ||
| * to requiring only those. For example, in `ActionConfig<"codeqlCmd">` | ||
|
mbg marked this conversation as resolved.
Outdated
|
||
| * all properties except `codeqlCmd` are optional. | ||
| */ | ||
| export type ActionConfig< | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bikeshed: Also, we should be careful with properties that might be optional, e.g.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some time ago we talked about how
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My one comment about
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point and I have fixed that in the PR description now. I can't really think of a better name right now, but open to suggestions (and happy to rename as a follow-up). |
||
| T extends ActionConfigProperties = ActionConfigProperties, | ||
| > = Partial<Config> & Pick<Config, T>; | ||
|
|
||
| /** A minimal configuration that we can make available even when `init` aborts. */ | ||
| export type AbortedInitConfig = ActionConfig< | ||
| | "version" | ||
| | "tempDir" | ||
| | "gitHubVersion" | ||
| | "debugMode" | ||
| | "languages" | ||
| | "analysisKinds" | ||
| | "codeQLCmd" | ||
| >; | ||
Uh oh!
There was an error while loading. Please reload this page.