Skip to content

Commit

Permalink
fix: fetch all Git commit history
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Jul 29, 2024
1 parent a691419 commit 8fbdfdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/count-task-completion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
repository: ${{ env.REPO_NAME }}
ref: ${{ env.REPO_BRANCH }}
fetch-depth: 0
# token: ${{ secrets.GH_TOKEN }}
persist-credentials: false
- name: Install Node.js
Expand All @@ -32,7 +33,7 @@ jobs:
- name: Install npm dependencies
run: npm i
- name: Count students
run: npm run pmc count:student
run: npm run pmc count:student git
- name: Count task completion
run: node scripts/count.js
- name: Commit changes
Expand Down
2 changes: 0 additions & 2 deletions .knosys/scripts/command/pmc/count.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ function resolveTask({ rewardDeadline, studentRewardPatches, readingModifiedTime
}

function countStudents(readingModifiedTimeBy = getOsType() === 'Linux' ? 'fs' : 'git') {
console.log(`[KNOSYS_INFO] current OS is:`, getOsType());

const MEMBER_ROOT = joinPath(repoRoot, 'members');
const taskMetadata = { ...readTaskMetadata(), readingModifiedTimeBy };

Expand Down

0 comments on commit 8fbdfdc

Please sign in to comment.