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 fail github_pr_errors if PR is closed or merged
Christophe Bliardc46e674b4c77
diff --git a/script/github_pr_errors b/script/github_pr_errorsindex fd2c3d05a02..6d3c94331c5 100755--- a/script/github_pr_errors+++ b/script/github_pr_errors@@ -485,12 +485,14 @@ class Formatterdef display_pull_request_info(workflow_run)return unless workflow_run['event'] == 'pull_request'- pr = workflow_run['pull_requests'].first or- raise "Pull Request info cannot be found, perhaps it is already merged or closed?"- pr_number = "##{pr['number']}"- pr_html_url = "#{GITHUB_HTML_OPENPROJECT_PREFIX}/pull/#{pr['number']}"- pr_display_title = "#{workflow_run['display_title']} #{pr_number.white.dark} #{pr_html_url.white.dark}"- warn " Pull Request: #{pr_display_title} "+ if pr = workflow_run['pull_requests'].first+ pr_number = "##{pr['number']}"+ pr_html_url = "#{GITHUB_HTML_OPENPROJECT_PREFIX}/pull/#{pr['number']}"+ pr_display_title = "#{workflow_run['display_title']} #{pr_number.white.dark} #{pr_html_url.white.dark}"+ warn " Pull Request: #{pr_display_title} "+ else+ warn " Pull Request: not found; perhaps it is already merged or closed?"+ endenddef commit_message(workflow_run)