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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Do not try displaying local screenshot urls
Christophe Bliard5aefbbc8ddf7
diff --git a/script/github_pr_errors b/script/github_pr_errorsindex f2b4fbc92ac..3eb86c0f04a 100755--- a/script/github_pr_errors+++ b/script/github_pr_errors@@ -128,7 +128,7 @@ class Optionsdef parse_url(url)case url- when %r{^https://github.com/opf/openproject/actions/runs/(\d+)(?:/job/\d+)?$}+ when %r{^https://github.com/opf/openproject/actions/runs/(\d+)(?:/job/\d+(?:\?.*)?)?$}run_id = $1.to_isay_verbose("Extracted run id #{run_id} from #{url}"){ run_id: }@@ -505,6 +505,11 @@ class Formatterdisplay_error_attribute("screenshot", screenshot_url)if Options.display_images+ if screenshot_url.start_with?("/")+ # external pull requests do not have access to AWS credentials to upload screenshots+ warn " (cannot display screenshot: it is local file stored on the runner)".yellow+ return+ endbeginOpen3.popen2e('imgcat', '--width', '50%', '--url', screenshot_url) do |stdin, stdout_and_stderr, _thread|stdin.close