-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from stoplightio/ntk/proper_sha
fix: use dedicated sha extractions per kind of event
- Loading branch information
Showing
8 changed files
with
165 additions
and
98 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
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,6 @@ | ||
module.exports = { | ||
printWidth: 120, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
arrowParens: 'avoid', | ||
}; |
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,12 +1,12 @@ | ||
import * as t from 'io-ts'; | ||
import * as D from 'io-ts/lib/Decoder'; | ||
|
||
export const Config = t.strict({ | ||
GITHUB_EVENT_PATH: t.string, | ||
INPUT_REPO_TOKEN: t.string, | ||
GITHUB_WORKSPACE: t.string, | ||
INPUT_FILE_GLOB: t.string, | ||
INPUT_EVENT_NAME: t.string, | ||
INPUT_SPECTRAL_RULESET: t.string, | ||
export const Config = D.type({ | ||
GITHUB_EVENT_PATH: D.string, | ||
INPUT_REPO_TOKEN: D.string, | ||
GITHUB_WORKSPACE: D.string, | ||
INPUT_FILE_GLOB: D.string, | ||
INPUT_EVENT_NAME: D.string, | ||
INPUT_SPECTRAL_RULESET: D.string, | ||
}); | ||
|
||
export type Config = t.TypeOf<typeof Config>; | ||
export type Config = D.TypeOf<typeof Config>; |
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.