Skip to content

pull request merged / closed webhook contains empty body #15993

@jpraet

Description

@jpraet

The body is empty in the webhook payload for pull request merged / closed events.

This is causing a problem with the redmine_merge_request_links plugin: tf/redmine_merge_request_links#27

At first I thought that this behavior maybe was intentional, but looking at the code, I don't think it is:

pr.Issue.Content = ""

The pr.Issue.Content is emptied in the e-mail notification code, and as a side-effect the issue content is also empty for notifiers that are called afterwards (indexer, webhook and action).

Such unexpected manipulations of the notification input also happens here:

issue.Content = ""

comment.Content = ""

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