Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3d88ea1

Browse filesBrowse files
Trotttargos
authored andcommitted
build: fix workflow access to git history
Refs: #41466 PR-URL: #41472 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Tierney Cyren <hello@bnb.im>
1 parent b7b0631 commit 3d88ea1
Copy full SHA for 3d88ea1

File tree

Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎.github/workflows/find-inactive-tsc.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/find-inactive-tsc.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- name: Checkout the repo
2020
uses: actions/checkout@v2
2121
with:
22+
fetch-depth: 0
2223
persist-credentials: false
2324

2425
- name: Clone nodejs/TSC repository
Collapse file

‎tools/find-inactive-tsc.mjs‎

Copy file name to clipboardExpand all lines: tools/find-inactive-tsc.mjs
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ async function moveTscToEmeritus(peopleToMove) {
211211
// only been on the TSC for a week and therefore hasn't attended any meetings.
212212
const tscMembersAtEnd = await getTscFromReadme();
213213

214-
await runGitCommand(`git checkout 'HEAD@{${SINCE}}' -- README.md`);
214+
const startCommit = await runGitCommand(`git rev-list -1 --before '${SINCE}' HEAD`);
215+
await runGitCommand(`git checkout ${startCommit} -- README.md`);
215216
const tscMembersAtStart = await getTscFromReadme();
216217
await runGitCommand('git reset HEAD README.md');
217218
await runGitCommand('git checkout -- README.md');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.