Retrieves the last pull request id if it exist. Leaves it in a pipeline global variable "LastPullRequestId"
This Task is listed under Utility when add a task through classic UI
There is an authorization it needs, either with a personal access token (PAT) or by enabling the OAuth for the build stage.