MCPcopy Create free account
hub / github.com/github/awesome-copilot / getCurrentCommitSha

Function getCurrentCommitSha

eng/generate-website-data.mjs:146–152  ·  view source on GitHub ↗

* Get the current commit SHA for the checked-out repository.

()

Source from the content-addressed store, hash-verified

144 * Get the current commit SHA for the checked-out repository.
145 */
146function getCurrentCommitSha() {
147 return execSync("git --no-pager rev-parse HEAD", {
148 cwd: ROOT_FOLDER,
149 encoding: "utf8",
150 stdio: ["pipe", "pipe", "pipe"],
151 }).trim();
152}
153
154/**
155 * Generate agents metadata

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected