MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / stash

Function stash

@commitlint/travis-cli/src/cli.ts:103–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103async function stash() {
104 if (await isClean()) {
105 return () => Promise.resolve();
106 }
107 await git(["stash", "-k", "-u", "--quiet"]);
108 return () => git(["stash", "pop", "--quiet"]);
109}
110
111function validate() {
112 if (process.env.CI !== "true" || process.env.TRAVIS !== "true") {

Callers 1

mainFunction · 0.85

Calls 3

isCleanFunction · 0.85
gitFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected