github.com/go-playground/webhooks/v6@v6.3.0/testdata/gitlab/pipeline-event.json (about)

     1  {
     2     "object_kind": "pipeline",
     3     "object_attributes":{
     4        "id": 31,
     5        "iid": 3,
     6        "name": "pipeline_name",
     7        "ref": "master",
     8        "tag": false,
     9        "sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
    10        "before_sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
    11        "source": "merge_request_event",
    12        "status": "success",
    13        "stages":[
    14           "build",
    15           "test",
    16           "deploy"
    17        ],
    18        "created_at": "2016-08-12 15:23:28 UTC",
    19        "finished_at": "2016-08-12 15:26:29 UTC",
    20        "duration": 63,
    21        "variables": [
    22          {
    23            "key": "NESTOR_PROD_ENVIRONMENT",
    24            "value": "us-west-1"
    25          }
    26        ],
    27        "url": "http://192.168.64.1:3005/gitlab-org/gitlab-test/-/pipelines/31"
    28     },
    29      "merge_request": {
    30        "id": 1,
    31        "iid": 1,
    32        "title": "Test",
    33        "source_branch": "test",
    34        "source_project_id": 1,
    35        "target_branch": "master",
    36        "target_project_id": 1,
    37        "state": "opened",
    38        "merge_status": "can_be_merged",
    39        "url": "http://192.168.64.1:3005/gitlab-org/gitlab-test/merge_requests/1"
    40     },
    41     "user":{
    42        "name": "Administrator",
    43        "username": "root",
    44        "avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon",
    45        "email": "user_email@gitlab.com"
    46     },
    47     "project":{
    48        "id": 1,
    49        "name": "Gitlab Test",
    50        "description": "Atque in sunt eos similique dolores voluptatem.",
    51        "web_url": "http://192.168.64.1:3005/gitlab-org/gitlab-test",
    52        "avatar_url": null,
    53        "git_ssh_url": "git@192.168.64.1:gitlab-org/gitlab-test.git",
    54        "git_http_url": "http://192.168.64.1:3005/gitlab-org/gitlab-test.git",
    55        "namespace": "Gitlab Org",
    56        "visibility_level": 20,
    57        "path_with_namespace": "gitlab-org/gitlab-test",
    58        "default_branch": "master"
    59     },
    60     "commit":{
    61        "id": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
    62        "message": "test\n",
    63        "timestamp": "2016-08-12T17:23:21+02:00",
    64        "url": "http://example.com/gitlab-org/gitlab-test/commit/bcbb5ec396a2c0f828686f14fac9b80b780504f2",
    65        "author":{
    66           "name": "User",
    67           "email": "user@gitlab.com"
    68        }
    69     },
    70     "builds":[
    71        {
    72           "id": 380,
    73           "stage": "deploy",
    74           "name": "production",
    75           "status": "skipped",
    76           "created_at": "2016-08-12 15:23:28 UTC",
    77           "started_at": null,
    78           "finished_at": null,
    79           "when": "manual",
    80           "manual": true,
    81           "allow_failure": false,
    82           "user":{
    83              "name": "Administrator",
    84              "username": "root",
    85              "avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
    86           },
    87           "runner": null,
    88           "artifacts_file":{
    89              "filename": null,
    90              "size": null
    91           }
    92        },
    93        {
    94           "id": 377,
    95           "stage": "test",
    96           "name": "test-image",
    97           "status": "success",
    98           "created_at": "2016-08-12 15:23:28 UTC",
    99           "started_at": "2016-08-12 15:26:12 UTC",
   100           "finished_at": null,
   101           "when": "on_success",
   102           "manual": false,
   103           "allow_failure": false,
   104           "user":{
   105              "name": "Administrator",
   106              "username": "root",
   107              "avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
   108           },
   109           "runner": {
   110              "id":380987,
   111              "description":"shared-runners-manager-6.gitlab.com",
   112              "active":true,
   113              "is_shared":true
   114           },
   115           "artifacts_file":{
   116              "filename": null,
   117              "size": null
   118           }
   119        },
   120        {
   121           "id": 378,
   122           "stage": "test",
   123           "name": "test-build",
   124           "status": "success",
   125           "created_at": "2016-08-12 15:23:28 UTC",
   126           "started_at": "2016-08-12 15:26:12 UTC",
   127           "finished_at": "2016-08-12 15:26:29 UTC",
   128           "when": "on_success",
   129           "manual": false,
   130           "allow_failure": false,
   131           "user":{
   132              "name": "Administrator",
   133              "username": "root",
   134              "avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
   135           },
   136           "runner": {
   137              "id":380987,
   138              "description":"shared-runners-manager-6.gitlab.com",
   139              "active":true,
   140              "is_shared":true
   141           },
   142           "artifacts_file":{
   143              "filename": null,
   144              "size": null
   145           }
   146        },
   147        {
   148           "id": 376,
   149           "stage": "build",
   150           "name": "build-image",
   151           "status": "success",
   152           "created_at": "2016-08-12 15:23:28 UTC",
   153           "started_at": "2016-08-12 15:24:56 UTC",
   154           "finished_at": "2016-08-12 15:25:26 UTC",
   155           "when": "on_success",
   156           "manual": false,
   157           "allow_failure": false,
   158           "user":{
   159              "name": "Administrator",
   160              "username": "root",
   161              "avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
   162           },
   163           "runner": {
   164              "id":380987,
   165              "description":"shared-runners-manager-6.gitlab.com",
   166              "active":true,
   167              "is_shared":true
   168           },
   169           "artifacts_file":{
   170              "filename": null,
   171              "size": null
   172           }
   173        },
   174        {
   175           "id": 379,
   176           "stage": "deploy",
   177           "name": "staging",
   178           "status": "created",
   179           "created_at": "2016-08-12 15:23:28 UTC",
   180           "started_at": null,
   181           "finished_at": null,
   182           "when": "on_success",
   183           "manual": false,
   184           "allow_failure": false,
   185           "user":{
   186              "name": "Administrator",
   187              "username": "root",
   188              "avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
   189           },
   190           "runner": null,
   191           "artifacts_file":{
   192              "filename": null,
   193              "size": null
   194           }
   195        }
   196     ]
   197  }