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

Exclude eslint job from script/github_pr_errors

Christophe Bliarde42155fbd7fa
diff --git a/script/github_pr_errors b/script/github_pr_errors
index e547e62ef60..d70131962ba 100755
--- a/script/github_pr_errors
+++ b/script/github_pr_errors
@@ -16,6 +16,7 @@ GITHUB_API_OPENPROJECT_PREFIX = 'https://api.github.com/repos/opf/openproject'.f
GITHUB_HTML_OPENPROJECT_PREFIX = 'https://github.com/opf/openproject'.freeze
RAILS_ROOT = Pathname.new(__dir__).dirname
SPEC_PATTERN = %r{^\S+ (?:rspec (\S+) #.+|An error occurred while loading (\S+)\.\r?)$}
+EXCLUDED_JOB_NAMES = %w[eslint rubocop]
if !ENV['GITHUB_USERNAME']
raise "Missing GITHUB_USERNAME env"
@@ -267,7 +268,7 @@ get_jobs(workflow_run)
.sort_by { _1['name'] }
.each { |job| warn " #{status_line(job)}" }
.select { _1['conclusion'] == 'failure' }
- .reject { _1['name'] == 'rubocop' }
+ .reject { EXCLUDED_JOB_NAMES.include?(_1['name']) }
.each do |job|
is_successful = false
get_log(job)