Define if a commit is expected to have a pipeline
Description
Pipelines are created asynchronously when a commit is done, so it may take some time to find if a commit is expected to have one or not. As soon as the pipeline is created it is reported in the commit information, but it is still useful to know it in advance, for example when showing status as described in https://gitlab.com/gitlab-org/gitlab-ce/issues/35779.
Proposal
Add a new attribute to commits, that states if the commit is expected to have a pipeline or not. It can be determined by looking at the presence of .gitlab-ci.yml
(or equivalent) in the current branch, or looking at Auto DevOps settings for the project.
This is a boolean flag: information about the pipeline will be added and updated as usual as soon as it is created.