|
| 1 | +declare module '~build/git' { |
| 2 | + /** Github repo url */ |
| 3 | + export const github: string | null; |
| 4 | + |
| 5 | + /** The current branch */ |
| 6 | + export const branch: string; |
| 7 | + |
| 8 | + /** SHA of the current commit */ |
| 9 | + export const sha: string; |
| 10 | + |
| 11 | + /** The first 10 chars of the current SHA */ |
| 12 | + export const abbreviatedSha: string; |
| 13 | + |
| 14 | + /** The tag for the current SHA (or `null` if no tag exists) */ |
| 15 | + export const tag: string | null; |
| 16 | + |
| 17 | + /** The tags for the current SHA*/ |
| 18 | + export const tags: string[]; |
| 19 | + |
| 20 | + /** Tag for the closest tagged ancestor (or `null` if no ancestor is tagged) */ |
| 21 | + export const lastTag: string | null; |
| 22 | + |
| 23 | + /** The committer of the current SHA */ |
| 24 | + export const committer: string; |
| 25 | + |
| 26 | + /** The committer email of the current SHA */ |
| 27 | + export const committerEmail: string; |
| 28 | + |
| 29 | + /** The commit date of the current SHA */ |
| 30 | + export const committerDate: string; |
| 31 | + |
| 32 | + /** The author for the current SHA */ |
| 33 | + export const author: string; |
| 34 | + |
| 35 | + /** The author email for the current SHA */ |
| 36 | + export const authorEmail: string; |
| 37 | + |
| 38 | + /** The authored date for the current SHA */ |
| 39 | + export const authorDate: string; |
| 40 | + |
| 41 | + /** The commit message for the current SHA */ |
| 42 | + export const commitMessage: string; |
| 43 | + |
| 44 | + /** Gets whether this represents a clean working branch. */ |
| 45 | + export const isClean: boolean; |
| 46 | +} |
| 47 | + |
1 | 48 | declare module '~build/meta' {
|
2 | 49 | export const message: string;
|
3 | 50 | }
|
0 commit comments