Skip to content

Webhook POST data doesn't pass added/modified/removed info in commits section #4313

Closed
@p4a6i

Description

@p4a6i
  • Gitea version (or commit ref): 1.4.2
  • Git version: 2.13
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
      MySQL
      MSSQL
      SQLite
  • Can you reproduce the bug at https://try.gitea.io: (URL is down at the time of issue)
    • Yes (provide example URL)
      No
      Not relevant
  • Log gist:

Description

I created a web hook and pushed a change (Tried with both content types json and xml)
When a looked at payload sent by gitea in commit section
"commits": [
{
"id": "bffeb74224043ba2feb48d137756c8a9331c449a",
"message": "Webhooks Yay!",
"url": "http://localhost:3000/gitea/webhooks/commit/bffeb74224043ba2feb48d137756c8a9331c449a",
"author": {
"name": "Gitea",
"email": "someone@gitea.io",
"username": "gitea"
},
"committer": {
"name": "Gitea",
"email": "someone@gitea.io",
"username": "gitea"
},
"timestamp": "2017-03-13T13:52:11-04:00"
}
]

there is no added/modified/removed info

"commits": [
{
"id": "bffeb74224043ba2feb48d137756c8a9331c449a",
"message": "Webhooks Yay!",
"url": "http://localhost:3000/gitea/webhooks/commit/bffeb74224043ba2feb48d137756c8a9331c449a",
"author": {
"name": "Gitea",
"email": "someone@gitea.io",
"username": "gitea"
},
"committer": {
"name": "Gitea",
"email": "someone@gitea.io",
"username": "gitea"
},
"timestamp": "2017-03-13T13:52:11-04:00"
}
"added": ...

]

Activity

tvvignesh

tvvignesh commented on Dec 28, 2018

@tvvignesh

@lunny First of all thanks for making Gitea awesome. Is there any timeline on when this will get introduced? This is very critical for our CI/CD pipeline - this works in Gogs but Gogs has lot of missing features. Is it possible for you to get the code from Gogs and incorporate it here? Thanks.

lunny

lunny commented on Dec 29, 2018

@lunny
Member

I will investigate this and if it's not very difficult, I will send a PR later.

self-assigned this
on Dec 29, 2018
tvvignesh

tvvignesh commented on Dec 29, 2018

@tvvignesh

@lunny Thanks a lot for your quick reply. Will wait for the release. Love Gitea!

stale

stale commented on Feb 27, 2019

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

added
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implemented
and removed on Feb 27, 2019
added this to the 1.10.0 milestone on Aug 26, 2019
locked and limited conversation to collaborators on Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @lunny@tvvignesh@p4a6i

    Issue actions

      Webhook POST data doesn't pass added/modified/removed info in commits section · Issue #4313 · go-gitea/gitea