Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Simpler instructions to run on same commit as CI

Christophe Bliard13082c14a1ed
diff --git a/script/github_pr_errors b/script/github_pr_errors
index 5af12dbb487..e21bd7b18e7 100755
--- a/script/github_pr_errors
+++ b/script/github_pr_errors
@@ -564,14 +564,10 @@ class Formatter
def display_checkout_test_commit_information(report)
if report.merge_branch_sha
warn <<~INSTRUCTIONS.white.dark
- To be with the exact same source files as CI, use these commands:
- git branch --force repro/head_branch #{report.head_sha}
- git branch --force repro/merge_branch #{report.merge_branch_sha}
- git checkout repro/merge_branch
- git merge --no-commit --no-verify repro/head_branch
- git checkout --detach
- git branch --delete repro/head_branch
- git branch --delete repro/merge_branch
+ GitHub Action run merged #{report.merge_branch_sha} into #{report.head_sha} before running.
+ To be with the exact same source files as CI, use these commands (warning: stash your modifications first):
+ git checkout --force -b repro_ci_failures #{report.head_sha}
+ git merge --no-edit --no-verify #{report.merge_branch_sha}
INSTRUCTIONS
else
warn <<~INSTRUCTIONS.white.dark