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 b4a80db

Browse filesBrowse files
aduh95BethGriggs
authored andcommitted
tools: avoid fetch extra commits when validating commit messages
PR-URL: #39128 Reviewed-By: Mary Marchini <oss@mmarchini.me>
1 parent 2c8a6ec commit b4a80db
Copy full SHA for b4a80db

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Open diff view settings
Collapse file

‎.github/workflows/commit-lint.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/commit-lint.yml
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ jobs:
99
lint-commit-message:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Compute number of commits in the PR
13+
id: nb-of-commits
14+
run: echo "::set-output name=nb::$((${{ github.event.pull_request.commits }} + 1))"
1215
- uses: actions/checkout@v2
1316
with:
14-
# Last 100 commits should be enough for a PR
15-
fetch-depth: 100
17+
fetch-depth: ${{ steps.nb-of-commits.outputs.nb }}
1618
- name: Install Node.js
1719
uses: actions/setup-node@v2
1820
with:

0 commit comments

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