-
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #5 from s0/subdir
✨ Add support for specifying FOLDER
- Loading branch information
Showing
7 changed files
with
141 additions
and
28 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @s0 |
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,9 +1,17 @@ | ||
import * as t from 'io-ts'; | ||
|
||
export const ENVIRONMENT = t.type({ | ||
/** Implicit environment variable passed by GitHub */ | ||
GITHUB_EVENT_PATH: t.string, | ||
GITHUB_EVENT_NAME: t.string, | ||
}); | ||
export const ENVIRONMENT = t.intersection([ | ||
t.type({ | ||
/** Implicit environment variable passed by GitHub */ | ||
GITHUB_EVENT_PATH: t.string, | ||
GITHUB_EVENT_NAME: t.string, | ||
}), | ||
t.partial({ | ||
/** | ||
* Folder within the repository to run libyear on | ||
*/ | ||
FOLDER: t.string, | ||
}), | ||
]); | ||
|
||
export type Environment = t.TypeOf<typeof ENVIRONMENT>; |
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