Scout Worker API.
Redocly Scout agent (1.0)
URL that shows the changes in this ref update, from the before commit to the after commit. For a newly created ref that is directly based on the default branch, this is the comparison between the head of the default branch and the after commit. Otherwise, this shows all commits until the after commit.
An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare between the before commit and the after commit.) The array includes a maximum of 20 commits. If necessary, you can use the Commits API to fetch additional commits. This limit is applied to timeline events only and isn't applied to webhook deliveries.
Whether this commit is distinct from any that have been pushed before.
Metaproperties for Git author/committer information.
Metaproperties for Git author/committer information.
For pushes where after is or points to a commit object, an expanded representation of that commit. For pushes where after refers to an annotated tag object, an expanded representation of the commit pointed to by the annotated tag.
For pushes where after is or points to a commit object, an expanded representation of that commit. For pushes where after refers to an annotated tag object, an expanded representation of the commit pointed to by the annotated tag.
Whether this commit is distinct from any that have been pushed before.
Metaproperties for Git author/committer information.
Metaproperties for Git author/committer information.
A git repository.
The URL to get more information about the repository from the GitHub API.
A template for the API URL to get information about deploy keys on the repository.
A template for the API URL to get information about collaborators of the repository.
A template for the API URL to get information about issue events on the repository.
A template for the API URL to list the available assignees for issues in the repository.
A template for the API URL to get information about branches in the repository.
A template for the API URL to create or retrieve a raw Git blob in the repository.
A template for the API URL to get information about Git tags of the repository.
A template for the API URL to get information about Git refs of the repository.
A template for the API URL to create or retrieve a raw Git tree of the repository.
A template for the API URL to get information about statuses of a commit.
The API URL to get information about the languages of the repository.
A template for the API URL to list the contributors to the repository.
The API URL to list the subscribers on the repository.
The API URL to subscribe to notifications for this repository.
A template for the API URL to get information about commits on the repository.
A template for the API URL to get information about Git commits of the repository.
A template for the API URL to get information about comments on the repository.
A template for the API URL to get information about issue comments on the repository.
A template for the API URL to get the contents of the repository.
A template for the API URL to compare two commits or refs.
A template for the API URL to download the repository as an archive.
A template for the API URL to get information about issues on the repository.
A template for the API URL to get information about pull requests on the repository.
A template for the API URL to get information about milestones of the repository.
A template for the API URL to get information about notifications on the repository.
A template for the API URL to get information about labels of the repository.
A template for the API URL to get information about releases on the repository.
The API URL to list the deployments of the repository.
Whether to delete head branches when pull requests are merged.
Metaproperties for Git author/committer information.
- Mock serverhttps://redocly.com/_mock/docs/realm/scout/agent-api/openapi/webhooks/github
- https://redocly.com/http://localhost/webhooks/github
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://redocly.com/_mock/docs/realm/scout/agent-api/openapi/webhooks/github \
-H 'Content-Type: application/json' \
-H 'x-hub-signature-256: YOUR_API_KEY_HERE' \
-d '{
"ref": "string",
"before": "string",
"after": "string",
"created": true,
"deleted": true,
"forced": true,
"base_ref": "string",
"compare": "string",
"commits": [
{
"id": "string",
"tree_id": "string",
"distinct": true,
"message": "string",
"timestamp": "2019-08-24T14:15:22Z",
"url": "http://example.com",
"author": {
"name": "string",
"email": "user@example.com",
"date": "2019-08-24T14:15:22Z",
"username": "string"
},
"committer": {
"name": "string",
"email": "user@example.com",
"date": "2019-08-24T14:15:22Z",
"username": "string"
},
"added": [
"string"
],
"modified": [
"string"
],
"removed": [
"string"
]
}
],
"head_commit": {
"id": "string",
"tree_id": "string",
"distinct": true,
"message": "string",
"timestamp": "2019-08-24T14:15:22Z",
"url": "http://example.com",
"author": {
"name": "string",
"email": "user@example.com",
"date": "2019-08-24T14:15:22Z",
"username": "string"
},
"committer": {
"name": "string",
"email": "user@example.com",
"date": "2019-08-24T14:15:22Z",
"username": "string"
},
"added": [
"string"
],
"modified": [
"string"
],
"removed": [
"string"
]
},
"repository": {
"id": 0,
"node_id": "string",
"name": "string",
"full_name": "string",
"private": true,
"owner": {
"login": "string",
"id": 0,
"node_id": "string",
"name": "string",
"email": "string",
"avatar_url": "http://example.com",
"gravatar_id": "string",
"url": "http://example.com",
"html_url": "http://example.com",
"followers_url": "http://example.com",
"following_url": "http://example.com/{endpoint}",
"gists_url": "http://example.com/{endpoint}",
"starred_url": "http://example.com/{endpoint}",
"subscriptions_url": "http://example.com",
"organizations_url": "http://example.com",
"repos_url": "http://example.com",
"events_url": "http://example.com/{endpoint}",
"received_events_url": "http://example.com",
"type": "Bot",
"site_admin": true
},
"html_url": "http://example.com",
"description": "string",
"fork": true,
"url": "http://example.com",
"forks_url": "http://example.com",
"keys_url": "http://example.com/{endpoint}",
"collaborators_url": "http://example.com/{endpoint}",
"teams_url": "http://example.com",
"hooks_url": "http://example.com",
"issue_events_url": "http://example.com/{endpoint}",
"events_url": "http://example.com",
"assignees_url": "http://example.com/{endpoint}",
"branches_url": "http://example.com/{endpoint}",
"tags_url": "http://example.com",
"blobs_url": "http://example.com/{endpoint}",
"git_tags_url": "http://example.com/{endpoint}",
"git_refs_url": "http://example.com/{endpoint}",
"trees_url": "http://example.com/{endpoint}",
"statuses_url": "http://example.com/{endpoint}",
"languages_url": "http://example.com",
"stargazers_url": "http://example.com",
"contributors_url": "http://example.com",
"subscribers_url": "http://example.com",
"subscription_url": "http://example.com",
"commits_url": "http://example.com/{endpoint}",
"git_commits_url": "http://example.com/{endpoint}",
"comments_url": "http://example.com/{endpoint}",
"issue_comment_url": "http://example.com/{endpoint}",
"contents_url": "http://example.com/{endpoint}",
"compare_url": "http://example.com/{endpoint}",
"merges_url": "http://example.com",
"archive_url": "http://example.com/{endpoint}",
"downloads_url": "http://example.com",
"issues_url": "http://example.com/{endpoint}",
"pulls_url": "http://example.com/{endpoint}",
"milestones_url": "http://example.com/{endpoint}",
"notifications_url": "http://example.com/{endpoint}",
"labels_url": "http://example.com/{endpoint}",
"releases_url": "http://example.com/{endpoint}",
"deployments_url": "http://example.com",
"created_at": 0,
"updated_at": "2019-08-24T14:15:22Z",
"pushed_at": 0,
"git_url": "http://example.com",
"ssh_url": "string",
"clone_url": "http://example.com",
"svn_url": "http://example.com",
"homepage": "string",
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": "string",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": true,
"forks_count": 0,
"mirror_url": "http://example.com",
"archived": false,
"disabled": true,
"open_issues_count": 0,
"license": {
"key": "string",
"name": "string",
"spdx_id": "string",
"url": "http://example.com",
"node_id": "string"
},
"forks": 0,
"open_issues": 0,
"watchers": 0,
"stargazers": 0,
"default_branch": "string",
"allow_squash_merge": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"allow_auto_merge": false,
"allow_forking": true,
"allow_update_branch": true,
"use_squash_pr_title_as_default": true,
"is_template": true,
"web_commit_signoff_required": true,
"topics": [
"string"
],
"visibility": "public",
"delete_branch_on_merge": false,
"master_branch": "string",
"permissions": {
"pull": true,
"push": true,
"admin": true,
"maintain": true,
"triage": true
},
"public": true,
"organization": "string"
},
"pusher": {
"name": "string",
"email": "user@example.com",
"date": "2019-08-24T14:15:22Z",
"username": "string"
},
"sender": {
"login": "string",
"id": 0,
"node_id": "string",
"name": "string",
"email": "string",
"avatar_url": "http://example.com",
"gravatar_id": "string",
"url": "http://example.com",
"html_url": "http://example.com",
"followers_url": "http://example.com",
"following_url": "http://example.com/{endpoint}",
"gists_url": "http://example.com/{endpoint}",
"starred_url": "http://example.com/{endpoint}",
"subscriptions_url": "http://example.com",
"organizations_url": "http://example.com",
"repos_url": "http://example.com",
"events_url": "http://example.com/{endpoint}",
"received_events_url": "http://example.com",
"type": "Bot",
"site_admin": true
},
"installation": {
"id": 0,
"node_id": "string"
},
"organization": {
"login": "string",
"id": 0,
"node_id": "string",
"url": "http://example.com",
"html_url": "http://example.com",
"repos_url": "http://example.com",
"events_url": "http://example.com",
"hooks_url": "http://example.com",
"issues_url": "http://example.com",
"members_url": "http://example.com/{endpoint}",
"public_members_url": "http://example.com/{endpoint}",
"avatar_url": "http://example.com",
"description": "string"
}
}'{ "message": "Job created", "event": "push", "jobId": "sjob_01h4gev6h1j50ge5z3yn28ge5e" }
The SHA of the most recent commit on ref before the push.
The SHA of the most recent commit on ref after the push.
The full git ref that is pushed. Example: refs/heads/main.
The SHA of the most recent commit on ref after the push.
User avatar url.
GitLab Project details.
The URL to view the repository.
Repository avatar url.
SSH url of a project.
Url of a project.
Project path including namespace.
Project homepage url.
Url of a project.
SSH url of a project.
GitLab repository details.
Repository git url.
The description of the project.
Project homepage url.
Git url of a project.
SSH url of a project.
The URL to view the repository.
Avatar url of the repository.
An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the compare between the before commit and the after commit.) The array includes a maximum of 20 commits.
URL that points to the commit API resource.
Author details.
An array of files added in the commit.
An array of files modified by the commit.
- Mock serverhttps://redocly.com/_mock/docs/realm/scout/agent-api/openapi/webhooks/gitlab
- https://redocly.com/http://localhost/webhooks/gitlab
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://redocly.com/_mock/docs/realm/scout/agent-api/openapi/webhooks/gitlab \
-H 'Content-Type: application/json' \
-H 'x-gitlab-token: YOUR_API_KEY_HERE' \
-d '{
"object_kind": "push",
"before": "95790bf891e76fee5e1747ab589903a6a1f80f22",
"after": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
"ref": "refs/heads/main",
"checkout_sha": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
"user_id": 1,
"user_name": "John",
"user_username": "john87",
"user_email": "john87@email.com",
"user_avatar": "https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80",
"project_id": 15,
"project": {
"id": 0,
"name": "string",
"description": "string",
"web_url": "http://example.com/gitlabhq/gitlab-test",
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=40&d=identicon",
"git_ssh_url": "ssh://git@example.com/gitlabhq/gitlab-test.git",
"git_http_url": "http://example.com/gitlabhq/gitlab-test.git",
"namespace": "GitlabHQ",
"visibility_level": 20,
"path_with_namespace": "gitlabhq/gitlab-test",
"default_branch": "develop",
"homepage": "http://example.com/gitlabhq/gitlab-test",
"url": "http://example.com/gitlabhq/gitlab-test.git",
"ssh_url": "ssh://git@example.com/gitlabhq/gitlab-test.git",
"http_url": "http://example.com/gitlabhq/gitlab-test.git"
},
"repository": {
"name": "Awesome project",
"url": "http://example.com/gitlabhq/awesome-project.git",
"description": "Awesome project description.",
"homepage": "http://example.com/gitlabhq/awesome-project",
"git_http_url": "http://example.com/gitlabhq/gitlab-test.git",
"git_ssh_url": "ssh://git@example.com/gitlabhq/gitlab-test.git",
"web_url": "http://example.com/gitlabhq/awesome-project",
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=40&d=identicon",
"visibility_level": 20
},
"commits": [
{
"id": "b6568db1bc1dcd7f8b4d5a946b0b91f9dacd7327",
"message": "fixed readme",
"timestamp": "2019-08-24T14:15:22Z",
"url": "http://example.com/mike/diaspora/commit/da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
"author": {
"name": "John",
"email": "john.doe@email.com"
},
"added": [
"CHANGELOG"
],
"modified": [
"app/controller/application.rb"
],
"removed": [
"app/controller/product.rb"
]
}
],
"total_commits_count": 34
}'{ "message": "Job created", "event": "push", "jobId": "sjob_01h4gev6h1j50ge5z3yn28ge5e" }