Skip to content

Commit 71c384f

Browse files
committed
more debugging.
1 parent 0262a8a commit 71c384f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/activity-report.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ echo "# Repository Activity Report ($REPO)"
2121
echo "Date range covered by this report: $SINCE_TS .. $UNTIL_TS"
2222

2323
echo "## Commits and issue summary:"
24-
echo -n "* The number of commits to the main branch: "
25-
git log main --pretty='format:%h,%as,%an,%s' --since="$SINCE" --before="$UNTIL" | wc -l
24+
echo -n "* The number of commits to the current branch: "
25+
git log HEAD --pretty='format:%h,%as,%an,%s' --since="$SINCE" --before="$UNTIL" | wc -l
2626

2727
echo -n "* The number of commits to any branch: "
2828
git log --all --pretty='format:%h,%as,%an,%s' --since="$SINCE" --before="$UNTIL" | wc -l
@@ -62,8 +62,8 @@ gh issue list --state all --search "created:$SINCE_TS..$UNTIL_TS" --repo $REPO -
6262
echo '```'
6363

6464
echo
65-
echo "## All commits to the main branch, including hash, author, commit title (one-liners):"
65+
echo "## All commits to the current branch, including hash, author, commit title (one-liners):"
6666
echo '```'
67-
git log main --pretty='format:%h %as %<(20)%an %s' --since="$SINCE_TS" --before="$UNTIL_TS"
67+
git log HEAD --pretty='format:%h %as %<(20)%an %s' --since="$SINCE_TS" --before="$UNTIL_TS"
6868
echo
6969
echo '```'

.github/workflows/activity-report.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ jobs:
2929
env:
3030
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
run: |
32-
gh issue list --state all --repo apache/lucene --limit 100
32+
REPO=apache/lucene
33+
gh issue list --state all --repo $REPO --limit 10 --json id
34+
gh issue list --state all --repo $REPO --limit 10 --json id | jq length
35+
3336
SINCE="${{ inputs.since }}" UNTIL="${{ inputs.until }}" bash ./.github/workflows/activity-report.sh >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)