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
Raise an error in the github pr errors script when the PR cannot be found on the workflow, this happens when a PR is closed or merged
Dombi Attila4bf9f5380204
diff --git a/script/github_pr_errors b/script/github_pr_errorsindex a736da9daaf..46ea2a30bfd 100755--- a/script/github_pr_errors+++ b/script/github_pr_errors@@ -206,7 +206,8 @@ enddef display_pull_request_info(workflow_run)return unless workflow_run['event'] == 'pull_request'- pr = workflow_run['pull_requests'].first+ 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}"