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

Closed
opened 2025-11-02 04:19:53 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @p4a6i on GitHub (Jun 25, 2018).

Originally assigned to: @lunny on GitHub.

  • 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": "bffeb74224",
"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": "bffeb74224",
"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": ...

]

Originally created by @p4a6i on GitHub (Jun 25, 2018). Originally assigned to: @lunny on GitHub. - Gitea version (or commit ref): 1.4.2 - Git version: 2.13 - Operating system: Linux - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: (URL is down at the time of issue) - [X] 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": ... ]
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 04:19:53 -06:00
Author
Owner

@tvvignesh commented on GitHub (Dec 28, 2018):

@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.

@tvvignesh commented on GitHub (Dec 28, 2018): @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.
Author
Owner

@lunny commented on GitHub (Dec 29, 2018):

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

@lunny commented on GitHub (Dec 29, 2018): I will investigate this and if it's not very difficult, I will send a PR later.
Author
Owner

@tvvignesh commented on GitHub (Dec 29, 2018):

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

@tvvignesh commented on GitHub (Dec 29, 2018): @lunny Thanks a lot for your quick reply. Will wait for the release. Love Gitea!
Author
Owner

@stale[bot] commented on GitHub (Feb 27, 2019):

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.

@stale[bot] commented on GitHub (Feb 27, 2019): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1973