.gitlab-ci.yml 中的规则条件是否有 AND 选项?

Is there an AND option on the rules condition in .gitlab-ci.yml?

我想创建一些嵌套条件:我需要此管道在它是合并或合并请求并以特定名称开始“功能”时工作。那么,作业的 'only' 选项中是否有 AND 条件?

不,没有。您必须使用 rules.

test:
  stage: test
  script:
    - echo "test"
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^feature/'