summaryrefslogtreecommitdiff
path: root/azure-pipelines/templates/ci-git-rebase.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure-pipelines/templates/ci-git-rebase.yml')
-rw-r--r--azure-pipelines/templates/ci-git-rebase.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/azure-pipelines/templates/ci-git-rebase.yml b/azure-pipelines/templates/ci-git-rebase.yml
new file mode 100644
index 000000000..924302fee
--- /dev/null
+++ b/azure-pipelines/templates/ci-git-rebase.yml
@@ -0,0 +1,9 @@
+steps:
+# Rebase to origin/master for every PR. This means users don't have to
+# rebase every time master changes. As long as the PR applies cleanly, we
+# will validate it.
+- script: |
+ git config user.email 'info@openttd.org'
+ git config user.name 'OpenTTD CI'
+ git rebase origin/master
+ displayName: 'Rebase to master'