Skip to main content

New Pull Request

Triggers a workflow on every new pull request opened in a given repository.

info

Automations based on this trigger will search for new events every 5 minutes.

Parameters

ParameterDescription
OwnerThe organization or person who owns the repository. github.com/{owner}/{repo}
RepoName of the repository owned by the owner. github.com/{owner}/{repo}

Sample Event

{
"url": "https://api.github.com/repos/blinkops/blink-http/issues/159",
"repository_url": "https://api.github.com/repos/blinkops/blink-http",
"labels_url": "https://api.github.com/repos/blinkops/blink-http/issues/159/labels{/name}",
"comments_url": "https://api.github.com/repos/blinkops/blink-http/issues/159/comments",
"events_url": "https://api.github.com/repos/blinkops/blink-http/issues/159/events",
"html_url": "https://github.com/blinkops/blink-http/pull/159",
"id": 1277071078,
"node_id": "PR_kwDOF57vEM459Pko",
"number": 159,
"title": "Ron/tsk 4647 missing azure endpoints fix",
"user": {
"login": "Mono2202",
"id": 69368659,
"node_id": "MDQ6VXNlcjY5MzY4NjU5",
"avatar_url": "https://avatars.githubusercontent.com/u/69368659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Mono2202",
"html_url": "https://github.com/Mono2202",
"followers_url": "https://api.github.com/users/Mono2202/followers",
"following_url": "https://api.github.com/users/Mono2202/following{/other_user}",
"gists_url": "https://api.github.com/users/Mono2202/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Mono2202/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mono2202/subscriptions",
"organizations_url": "https://api.github.com/users/Mono2202/orgs",
"repos_url": "https://api.github.com/users/Mono2202/repos",
"events_url": "https://api.github.com/users/Mono2202/events{/privacy}",
"received_events_url": "https://api.github.com/users/Mono2202/received_events",
"type": "User",
"site_admin": false
},
"labels": [],
"state": "open",
"locked": false,
"assignee": null,
"assignees": [],
"milestone": null,
"comments": 0,
"created_at": "2022-06-20T15:09:53Z",
"updated_at": "2022-06-20T15:09:53Z",
"closed_at": null,
"author_association": "CONTRIBUTOR",
"active_lock_reason": null,
"draft": false,
"pull_request": {
"url": "https://api.github.com/repos/blinkops/blink-http/pulls/159",
"html_url": "https://github.com/blinkops/blink-http/pull/159",
"diff_url": "https://github.com/blinkops/blink-http/pull/159.diff",
"patch_url": "https://github.com/blinkops/blink-http/pull/159.patch",
"merged_at": null
},
"body": null,
"reactions": {
"url": "https://api.github.com/repos/blinkops/blink-http/issues/159/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/blinkops/blink-http/issues/159/timeline",
"performed_via_github_app": null,
"state_reason": null,
"score": 1
}