Skip to content

Commit

Permalink
github: Keep git history intact in Change Log fragment check
Browse files Browse the repository at this point in the history
The next step, Lint git commits, needs access git's history so it can
lint the relevant commits, otherwise it just lints all commits.
See #2707 for more details.
  • Loading branch information
tjanez committed Feb 24, 2020
1 parent bf9e4d9 commit e80756e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/2707.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: Keep git history intact in Change Log fragment check
2 changes: 1 addition & 1 deletion .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Fetch the pull request' base branch so towncrier will be able to
# compare the current branch with the base branch.
# Source: https://github.com/actions/checkout/#fetch-all-branches.
git fetch --no-tags --prune --depth=1 origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH}
git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH}
towncrier check --compare-with origin/${BASE_BRANCH}
env:
BASE_BRANCH: ${{ github.base_ref }}
Expand Down

0 comments on commit e80756e

Please sign in to comment.