NoMethodError: undefined method `to_sym' for true:TrueClass

https://sentry.gitlab.net/gitlab/gitlabcom/issues/3146758/?referrer=gitlab_plugin

NoMethodError: undefined method `to_sym' for true:TrueClass
Did you mean?  to_s
  lib/gitlab/ci/config/entry/jobs.rb:18:in `block (3 levels) in <class:Jobs>'
    errors.add(name, 'config should implement a script: or a trigger: keyword')
  lib/gitlab/ci/config/entry/jobs.rb:28:in `block in each_unmatched_job'
    yield(name) unless Jobs.find_type(name, value)
  lib/gitlab/ci/config/entry/jobs.rb:27:in `each'
    config.each do |name, value|
  lib/gitlab/ci/config/entry/jobs.rb:27:in `each_unmatched_job'
    config.each do |name, value|
  lib/gitlab/ci/config/entry/jobs.rb:17:in `block (2 levels) in <class:Jobs>'
    each_unmatched_job do |name|
...
(151 additional frame(s) were not displayed)