다음을 통해 공유


pr 정의

끌어오기 요청 트리거는 끌어오기 요청 빌드가 실행되도록 하는 분기를 지정합니다.

이 정의를 참조하는 정의: 파이프라인

구현

이행 설명
pr: 없음 끌어오기 요청 트리거를 사용하지 않도록 설정합니다.
pr: 문자열 목록 실행을 트리거하는 분기 목록입니다.
pr: autoCancel, 분기, 경로, 초안 완전한 제어를 위한 전체 구문입니다.
이행 설명
pr: 없음 끌어오기 요청 트리거를 사용하지 않도록 설정합니다.
pr: 문자열 목록 실행을 트리거하는 분기 목록입니다.
pr: autoCancel, 분기, 경로 완전한 제어를 위한 전체 구문입니다.

비고

끌어오기 요청 트리거를 지정하지 않으면 모든 분기에 대한 끌어오기 요청이 빌드를 트리거합니다.

pr 키워드에는 포함할 분기 목록, PR 트리거를 사용하지 않도록 설정하는 방법 및 완전한 제어를 위한 전체 구문의 세 가지 고유한 구문 옵션이 있습니다.

중요합니다

YAML PR 트리거는 GitHub 및 Bitbucket Cloud에서만 지원됩니다. Azure Repos Git을 사용하는 경우 빌드 유효성 검사 대한 분기 정책을 구성하여 유효성 검사를 위해 빌드 파이프라인을 트리거할 수 있습니다.

branches 또는 pathsinclude 절 없이 exclude 절을 지정하는 경우 include 절에 * 지정하는 것과 같습니다.

pr: none

끌어오기 요청 트리거를 사용하지 않도록 설정합니다.

pr: none # Disable pull request triggers.

pr 문자열입니다. 허용되는 값: 없음.

끌어오기 요청 트리거를 사용하지 않도록 설정합니다.

예시

사용 안 함 구문:

pr: none # will disable PR builds (but not CI builds)

pr: 문자열 목록

실행을 트리거하는 분기 목록입니다.

pr: [ string ] # List of branches that trigger a run.

목록 형식

유형 설명
문자열 실행을 트리거하는 분기 목록입니다.

비고

목록 구문은 끌어오기 요청이 발생하거나 발생된 끌어오기 요청의 원본 분기에 푸시할 때 실행을 트리거하는 분기 목록을 지정합니다.

예시

목록 구문:

pr:
- main
- develop

pr: autoCancel, 분기, 경로, 초안

끌어오기 요청 트리거를 완전히 제어해야 하는 경우 전체 구문을 사용합니다.

pr:
  autoCancel: boolean # Whether to cancel running PR builds when a new commit lands in the branch. Default: true.
  branches: # Branch names to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.
  paths: # File paths to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.
  drafts: boolean # Whether to start a run when a draft PR is created. Default: true.

속성

부울autoCancel.
새 커밋이 분기에 있을 때 실행 중인 PR 빌드를 취소할지 여부입니다. 기본값: true.

branches 포함ExcludeFilters.
실행 트리거를 포함하거나 제외할 분기 이름입니다.

paths 포함ExcludeFilters.
실행을 트리거하기 위해 포함하거나 제외할 파일 경로를 .

부울drafts.
초안 PR을 만들 때 실행을 시작할지 여부입니다. 기본값: true.

pr: autoCancel, 분기, 경로

완전한 제어를 위한 전체 구문입니다.

pr:
  autoCancel: boolean # Whether to cancel running PR builds when a new commit lands in the branch. Default: true.
  branches: # Branch names to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.
  paths: # File paths to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.

속성

부울autoCancel.
새 커밋이 분기에 있을 때 실행 중인 PR 빌드를 취소할지 여부입니다. 기본값: true.

branches 포함ExcludeFilters.
실행 트리거를 포함하거나 제외할 분기 이름입니다.

paths 포함ExcludeFilters.
실행을 트리거하기 위해 포함하거나 제외할 파일 경로를 .

예시

전체 구문:

pr:
  branches:
    include:
    - features/*
    exclude:
    - features/experimental/*
  paths:
    exclude:
    - README.md

참고하십시오

끌어오기 요청 트리거 지정하는 방법에 대해 자세히 알아봅니다.