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
  • Merge requests
  • !8603

Merged
Created Jan 18, 2015 by Administrator@rootOwner

Add action property to merge request hook

  • Overview 18
  • Commits 1
  • Changes 12

Created by: jubianchi

Issue hook provide a usefull information: in its JSON payload, there is the action property which gives information on what exactly happened on the issue.

With this patch, the merge request hook will provide the same information. The action property will have the following values:

  • open when the merge request is created
  • close when the merge request is closed
  • merge when the merge request is merged
  • reopen when the merge request is reopened
  • update when the merge request is updated

This will let hook consumers behave differently depending on what's happening on the merge request.

For example, I'm working on a hubot scripts which will notify events on channels. Actually, I'm not able to filter notification without complex logic.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/jubianchi/hook-merge-request-action