summaryrefslogtreecommitdiff
path: root/azure-pipelines/templates/ci-git-rebase.yml
blob: 514c66744fecac2d4f6d88e6a91487f5beb4d33f (plain)
1
2
3
4
5
6
7
8
9
10
steps:
# Rebase to target branch for every PR. This means users don't have to
# rebase every time target branch changes. As long as the PR applies cleanly, we
# will validate it.
- bash: |
    git config user.email 'info@openttd.org'
    git config user.name 'OpenTTD CI'
    git rebase origin/${SYSTEM_PULLREQUEST_TARGETBRANCH}
  displayName: 'Rebase to $(System.PullRequest.TargetBranch)'
  condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))