Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6689

Closed
Open
Created Apr 03, 2014 by Administrator@rootOwner

Webdoublehooked events for issue and merge request

Created by: qfox

Version 6.7.2.

Create webhook with all checkboxes. And...

Just touching issue create 2 similar requests, dump req.body:

{ object_kind: 'issue',
  object_attributes:
   { id: 2,
     title: '123123',
     assignee_id: 13,
     author_id: 13,
     project_id: 241,
     created_at: '2014-04-03T04:25:05.987+04:00',
     updated_at: '2014-04-03T04:30:45.175+04:00',
     position: 0,
     branch_name: null,
     description: 'asdasdasdasd\r\nyaroshevich/autodeploy-test:master',
     milestone_id: null,
     state: 'closed',
     iid: 1 } }
{ object_kind: 'issue',
  object_attributes:
   { id: 2,
     title: '123123',
     assignee_id: 13,
     author_id: 13,
     project_id: 241,
     created_at: '2014-04-03T04:25:05.987+04:00',
     updated_at: '2014-04-03T04:30:45.175+04:00',
     position: 0,
     branch_name: null,
     description: 'asdasdasdasd\r\nyaroshevich/autodeploy-test:master',
     milestone_id: null,
     state: 'closed',
     iid: 1 } }

Same with merge requests:

{ object_kind: 'merge_request',
  object_attributes:
   { id: 1367,
     target_branch: 'master',
     source_branch: 'feature/add-bingo_bongo-box',
     source_project_id: 241,
     author_id: 13,
     assignee_id: 13,
     title: 'Feature/Add Bingo Bongo Box',
     created_at: '2014-04-03T04:32:17.459+04:00',
     updated_at: '2014-04-03T04:32:17.459+04:00',
     milestone_id: null,
     state: 'opened',
     merge_status: 'unchecked',
     target_project_id: 241,
     iid: 1,
     description: 'zxczxczxc' } }
{ object_kind: 'merge_request',
  object_attributes:
   { id: 1367,
     target_branch: 'master',
     source_branch: 'feature/add-bingo_bongo-box',
     source_project_id: 241,
     author_id: 13,
     assignee_id: 13,
     title: 'Feature/Add Bingo Bongo Box',
     created_at: '2014-04-03T04:32:17.459+04:00',
     updated_at: '2014-04-03T04:32:18.798+04:00',
     milestone_id: null,
     state: 'opened',
     merge_status: 'can_be_merged',
     target_project_id: 241,
     iid: 1,
     description: 'zxczxczxc' } }

But MR not the same, difference in merge_status field.

Is it really correct?

Assignee
Assign to
Time tracking