Skip to content

fix parsing of PRs that have been forked #1

@bdangit

Description

@bdangit
api_1    | WOOF: header {
api_1    |   "content-type": "application/json",
api_1    |   "x-gitlab-event": "Merge Request Hook",
api_1    |   "connection": "close",
api_1    |   "host": "192.168.79.140:9001",
api_1    |   "content-length": "3275"
api_1    | }
api_1    | WOOF: payload {
api_1    |   "object_kind": "merge_request",
api_1    |   "user": {
api_1    |     "name": "wooflab",
api_1    |     "username": "wooflab",
api_1    |     "avatar_url": "http://www.gravatar.com/avatar/3aa7ca48582a80075023efdd29db3960?s=80&d=identicon"
api_1    |   },
api_1    |   "project": {
api_1    |     "name": "quickstart-generic",
api_1    |     "description": "",
api_1    |     "web_url": "http://192.168.7.30/bdangit/quickstart-generic",
api_1    |     "avatar_url": null,
api_1    |     "git_ssh_url": "git@192.168.7.30:bdangit/quickstart-generic.git",
api_1    |     "git_http_url": "http://192.168.7.30/bdangit/quickstart-generic.git",
api_1    |     "namespace": "bdangit",
api_1    |     "visibility_level": 20,
api_1    |     "path_with_namespace": "bdangit/quickstart-generic",
api_1    |     "default_branch": "master",
api_1    |     "homepage": "http://192.168.7.30/bdangit/quickstart-generic",
api_1    |     "url": "git@192.168.7.30:bdangit/quickstart-generic.git",
api_1    |     "ssh_url": "git@192.168.7.30:bdangit/quickstart-generic.git",
api_1    |     "http_url": "http://192.168.7.30/bdangit/quickstart-generic.git"
api_1    |   },
api_1    |   "object_attributes": {
api_1    |     "id": 11,
api_1    |     "target_branch": "master",
api_1    |     "source_branch": "new-file",
api_1    |     "source_project_id": 6,
api_1    |     "author_id": 3,
api_1    |     "assignee_id": null,
api_1    |     "title": "Add new file",
api_1    |     "created_at": "2017-03-09 14:49:04 UTC",
api_1    |     "updated_at": "2017-03-09 14:49:04 UTC",
api_1    |     "milestone_id": null,
api_1    |     "state": "opened",
api_1    |     "merge_status": "unchecked",
api_1    |     "target_project_id": 3,
api_1    |     "iid": 7,
api_1    |     "description": "",
api_1    |     "position": 0,
api_1    |     "locked_at": null,
api_1    |     "updated_by_id": null,
api_1    |     "merge_error": null,
api_1    |     "merge_params": {
api_1    |       "force_remove_source_branch": "0"
api_1    |     },
api_1    |     "merge_when_build_succeeds": false,
api_1    |     "merge_user_id": null,
api_1    |     "merge_commit_sha": null,
api_1    |     "deleted_at": null,
api_1    |     "in_progress_merge_commit_sha": null,
api_1    |     "lock_version": null,
api_1    |     "time_estimate": 0,
api_1    |     "source": {
api_1    |       "name": "quickstart-generic",
api_1    |       "description": "",
api_1    |       "web_url": "http://192.168.7.30/wooflab/quickstart-generic",
api_1    |       "avatar_url": null,
api_1    |       "git_ssh_url": "git@192.168.7.30:wooflab/quickstart-generic.git",
api_1    |       "git_http_url": "http://192.168.7.30/wooflab/quickstart-generic.git",
api_1    |       "namespace": "wooflab",
api_1    |       "visibility_level": 20,
api_1    |       "path_with_namespace": "wooflab/quickstart-generic",
api_1    |       "default_branch": "master",
api_1    |       "homepage": "http://192.168.7.30/wooflab/quickstart-generic",
api_1    |       "url": "git@192.168.7.30:wooflab/quickstart-generic.git",
api_1    |       "ssh_url": "git@192.168.7.30:wooflab/quickstart-generic.git",
api_1    |       "http_url": "http://192.168.7.30/wooflab/quickstart-generic.git"
api_1    |     },
api_1    |     "target": {
api_1    |       "name": "quickstart-generic",
api_1    |       "description": "",
api_1    |       "web_url": "http://192.168.7.30/bdangit/quickstart-generic",
api_1    |       "avatar_url": null,
api_1    |       "git_ssh_url": "git@192.168.7.30:bdangit/quickstart-generic.git",
api_1    |       "git_http_url": "http://192.168.7.30/bdangit/quickstart-generic.git",
api_1    |       "namespace": "bdangit",
api_1    |       "visibility_level": 20,
api_1    |       "path_with_namespace": "bdangit/quickstart-generic",
api_1    |       "default_branch": "master",
api_1    |       "homepage": "http://192.168.7.30/bdangit/quickstart-generic",
api_1    |       "url": "git@192.168.7.30:bdangit/quickstart-generic.git",
api_1    |       "ssh_url": "git@192.168.7.30:bdangit/quickstart-generic.git",
api_1    |       "http_url": "http://192.168.7.30/bdangit/quickstart-generic.git"
api_1    |     },
api_1    |     "last_commit": {
api_1    |       "id": "9e7f71e836098f51921c8c3225a961ff7102ee48",
api_1    |       "message": "Add new file",
api_1    |       "timestamp": "2017-03-09T14:48:54+00:00",
api_1    |       "url": "http://192.168.7.30/bdangit/quickstart-generic/commit/9e7f71e836098f51921c8c3225a961ff7102ee48",
api_1    |       "author": {
api_1    |         "name": "wooflab",
api_1    |         "email": "bendang@gmail.com"
api_1    |       }
api_1    |     },
api_1    |     "work_in_progress": false,
api_1    |     "url": "http://192.168.7.30/bdangit/quickstart-generic/merge_requests/7",
api_1    |     "action": "open"
api_1    |   },
api_1    |   "repository": {
api_1    |     "name": "quickstart-generic",
api_1    |     "url": "git@192.168.7.30:bdangit/quickstart-generic.git",
api_1    |     "description": "",
api_1    |     "homepage": "http://192.168.7.30/bdangit/quickstart-generic"
api_1    |   }
api_1    | }
api_1    | 170309/144905.411, (1489070945408:315cfc4336cd:17:j02h2683:10254) [request,webhook,11] data: Received event type pr
api_1    | 170309/144905.412, (1489070945408:315cfc4336cd:17:j02h2683:10254) [request,webhook,11] data: PR #7 opened for http://192.168.7.30/wooflab/quickstart-generic.git#master
api_1    | 170309/144905.423, (1489070945408:315cfc4336cd:17:j02h2683:10254) [request,server,error] data: TypeError: Cannot read property 'unsealToken' of null
api_1    |     at userFactory.get.then.buildBotUser (/usr/src/app/plugins/webhooks/index.js:214:55)
api_1    | 170309/144905.408, [response,api,webhook] http://192.168.79.140:9001: post /v4/webhooks {} 500 (18ms)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions