Skip to content

Commit 043fb06

Browse files
committed
Use short hash
1 parent 9e89a2a commit 043fb06

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

repositories.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
[
22
{
33
"repository": "babel/babel",
4-
"commit": "7958603449cf9b17296f6bce58801a832bc55b09"
4+
"commit": "b4c84b23917fe5acd74221c6bc622a3ccc842ff2"
55
},
66
{
77
"repository": "vuejs/eslint-plugin-vue",
8-
"commit": "701bb0931778a63b1b0a85f0d68d4390a222f359"
8+
"commit": "5023e75dd7aa4b059b72e84b47a1e195ec6ac94a"
99
},
1010
{
1111
"repository": "excalidraw/excalidraw",
12-
"commit": "210dc85c8cd43da0f78b84b59b650de7db1a00a8",
12+
"commit": "bf4c65f4835f5ce13d0c807797b849ad5d6b0121",
1313
"ignoreFile": ".eslintignore"
1414
},
1515
{
1616
"repository": "mdn/content",
17-
"commit": "ca26363fcc6fc861103d40ac0205e5c5b79eb2fa"
17+
"commit": "d21d8f39b72a01d929f690b8517032c9248aa1a9"
1818
},
1919
{
2020
"repository": "prettier/prettier",
21-
"commit": "363a20e1c182784de7664d8c782137daf5548312"
21+
"commit": "c2ab62e8d2bcd2197435ee3b224420e883537a50"
2222
},
2323
{
2424
"repository": "marmelab/react-admin",
25-
"commit": "905f248948e443a75c91da82bf28efe446117b79",
25+
"commit": "63640767df781441964f435348a5389afb2ee198",
2626
"glob": [
2727
"packages/*/src/**/*.{js,json,ts,tsx,css,md}",
2828
"examples/*/src/**/*.{js,ts,json,tsx,css,md}",
@@ -31,20 +31,20 @@
3131
},
3232
{
3333
"repository": "typescript-eslint/typescript-eslint",
34-
"commit": "906cc3c892cbd7cc929a797557a234f64e8bf539",
34+
"commit": "dd969477e8cb10a4402eccc051a1d1206853e3b0",
3535
"ignore": ["**/fixtures/**/*"]
3636
},
3737
{
3838
"repository": "vega/vega-lite",
39-
"commit": "e7f55118e7c149c42436c800d053423cdd10bb1a"
39+
"commit": "bf84e14e3b029562aa86d961751d30fb69da5afa"
4040
},
4141
{
4242
"repository": "vuejs/core",
43-
"commit": "25ebe3a42cd80ac0256355c2740a0258cdd7419d"
43+
"commit": "f51d3e2789bb2f1700ec28d44a4953de1bdf7d71"
4444
},
4545
{
4646
"repository": "microsoft/vscode",
47-
"commit": "9bd6a8310aea6ada3e02a307c31ed05e5e4dabec",
47+
"commit": "2630664bd2739889e84d7f8c26ba80389fe04fab",
4848
"ignore": [
4949
"**/build/*/**/*.js",
5050
"**/dist/**/*.js",
@@ -94,6 +94,6 @@
9494
},
9595
{
9696
"repository": "vitejs/vite",
97-
"commit": "df5a30d2690a2ebc4824a79becdcef30538dc602"
97+
"commit": "2f9428d1ffd988e30cb253d5bb84844fb1654e86"
9898
}
9999
]

scripts/utilities.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ export async function getRepositoryCommitHash(repository) {
1515
`https://github.com/${repository}`,
1616
"HEAD",
1717
]);
18+
1819
const [commit] = stdout.trim().split(/\s/);
1920
return commit;
2021
}
2122

2223
export async function updatedRepositories(processFunction) {
23-
const updated = processFunction(repositories);
24+
const updated = await processFunction(repositories);
2425

2526
await fs.writeFile(
2627
REPOSITORIES_JSON_FILE,

src/report.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export function getReport({
5959
);
6060

6161
const formattedResults = result.map(({ repository, diff: rawDiff }) => {
62-
const head = `[${repository.repository}@${repository.commit}](https://github.com/${repository.repository}/tree/{repository.commit})`;
62+
const shortHash = repository.commit.slice(0, 7);
63+
const head = `[${repository.repository}@${shortHash}](https://github.com/${repository.repository}/tree/${shortHash})`;
6364
const diff = formatDiff(rawDiff);
6465
const length =
6566
title.length +

src/repositories.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ export function getRepositories(): Repository[] {
5050
const directoryName = rawRepository.repository.replaceAll("/", "__");
5151

5252
result.push({
53-
...rawRepository,
53+
repository: rawRepository.repository,
54+
commit: rawRepository.commit,
5455
glob,
5556
ignore,
5657
directoryName,

0 commit comments

Comments
 (0)