We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f455f3 commit 5b73da2Copy full SHA for 5b73da2
1 file changed
.github/workflows/lint-changed.yml
@@ -20,7 +20,9 @@ jobs:
20
- name: Count commits between merge base and HEAD
21
id: count
22
run: |
23
+ # Fetch the number of commits from base up to and including main.
24
RAW_COUNT="$(gh api "repos/$REPO/compare/${BASE}...main" | jq -r '.total_commits')"
25
+ # When fetching we need to fetch the history + base + temp merge commit, thus +2.
26
ADJUSTED_COUNT=$((RAW_COUNT + 2))
27
echo "count=$ADJUSTED_COUNT" >> "$GITHUB_OUTPUT"
28
env:
0 commit comments