Skip to content

Webhooks: user email property #27918

Closed
@SunnyWolf

Description

@SunnyWolf

Description

I am using gogs webhooks to integrate gitea events to Bitrix24.
I noticed some strange in json POST request.

X-Gogs-Event: pull_request
...
{
  "action": "opened",
  "number": 3,
  "pull_request": {
    ...
    "user": {
      ...
      "email": "[email protected]",
      ...
    },
...
}

All structures with user info contains field email with wrong email. In my case sevice takes NO_REPLY_ADDRESS variable and put it after user name.
In Config Cheats page there is such description:

NO_REPLY_ADDRESS: noreply.DOMAIN Value for the domain part of the user's email address in the Git log if user has set KeepEmailPrivate to true. DOMAIN resolves to the value in server.DOMAIN. The user's email will be replaced with a concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.

I checked KeepEmailPrivate property for account and it is disabled.

Also same could be discovered on test server
https://try.gitea.io/user/settings/hooks/1306

Gitea Version

1.20.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Windows

How are you running Gitea?

Windows build

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions