Git repository type: Azure DevOps (Repos) or GitHub. When you choose GitHub you need to choose from the list the GitHub service connection (that use PAT authorization.)
GitHub Connection (authorized with PAT): When you choose GitHub in Git repository type you need to specify here the GitHub service connection.
Source branch name: The source branch that will be merged. The default value is the build source branch - $(Build.SourceBranch).
Target branch name: The target branch name that the source branch will be merge to him. For example: master. Supports also multi target branch with *, for example: test/*.
Title: The Pull Request title.
Description: The Pull Request description. (Optional).
Reviewers: The Pull Request reviewers (Optional) . For Azure DevOps - one or more email addresses separated by semicolon. For example: email@example.com;firstname.lastname@example.org. For GitHub: one or more usernames separated by semicolon. For example: test;user.
In yaml piepline:
- task: CreatePullRequest@1
repoType: Azure DevOps / GitHub
githubEndpoint: 'my-github' # When you choose GitHub in `repoType` you need to specify here the GitHub service connection
description: 'Test' # Optional
reviewers: For Azure DevOps: 'email@example.com'. For GitHub: `username` # Optional
In Azure DevOps Server (TFS) you can't use reviewers. still can create a PR without it.