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

Display workflow run start time in github_pr_errors

Christophe Bliard76f2989a3b10
diff --git a/script/github_pr_errors b/script/github_pr_errors
index 3bd6042f200..6dbef958d69 100755
--- a/script/github_pr_errors
+++ b/script/github_pr_errors
@@ -10,6 +10,7 @@ require "optparse"
require "base64"
require "pathname"
require "pry"
+require "time"
require "yaml"
require "httpx"
@@ -274,6 +275,7 @@ class Report
:head_branch,
:head_sha,
:commit_message,
+ :run_started_at,
:merge_branch_sha
end
@@ -453,9 +455,11 @@ class Formatter
report.head_branch = workflow_run["head_branch"]
report.head_sha = workflow_run["head_sha"]
report.commit_message = commit_message(workflow_run)
+ report.run_started_at = Time.parse(workflow_run["run_started_at"]).utc
warn " Branch: #{report.head_branch.bold}"
warn " Commit SHA: #{report.head_sha.bold}"
warn " Commit message: #{report.commit_message.bold}"
+ warn " Run started at: #{report.run_started_at.localtime.to_s.bold}"
display_pull_request_info(workflow_run)
end