Closed DoLearnWhileAlive closed 2 years ago
Thanks for posting webhook payload. Currently Gitea webhook handler in AppVeyor expects commit information presented in a tag payload, but in the payload above both commits
and head_commit
are empty. Is it lightweight or annotated tag? How did you create it?
I created it via the Gitea Web UI. But I also tested tag creation over the command line with lightweight and annotated tags. In all cases Gitea creates a webhook with empty commits
and head_commit
. I will open an issue in the Gitea repo.
Gitea issue is closed now. Thanks to PR https://github.com/go-gitea/gitea/pull/18116 head_commit
is now defined with valid data, but commits
still empty, see example below. Creating a new tag still does not trigger a new build. Comparing a tag webhook payload with a normal commit webhook payload shows the commit webhook payload has defined both head_commit
and commits
with the same commit data.
{
"ref": "refs/tags/v6",
"before": "0000000000000000000000000000000000000000",
"after": "8f774e7bd4e2bc96a1e312987cfa34a4c908e9b9",
"compare_url": "https://giteaserver.local/git-group/test-group/compare/0000000000000000000000000000000000000000...8f774e7bd4e2bc96a1e312987cfa34a4c908e9b9",
"commits": [],
"head_commit": {
"id": "8f774e7bd4e2bc96a1e312987cfa34a4c908e9b9",
"message": "„appveyor.yml“ updated\n",
"url": "https://giteaserver.local/git-group/test-group/commit/8f774e7bd4e2bc96a1e312987cfa34a4c908e9b9",
"author": {
"name": "Test User",
"email": "user.name@company.com",
"username": "git-user"
},
"committer": {
"name": "Test User",
"email": "user.name@company.com",
"username": "git-user"
},
"verification": null,
"timestamp": "2021-12-22T10:07:26+01:00",
"added": [],
"removed": [
"appveyor.yml"
],
"modified": []
},
"repository": {
"id": 53,
...
}
That's great, thanks for the update!
This is AppVeyor Server build that supports head_commit
in the webhook payload: https://appveyordownloads.blob.core.windows.net/appveyor/7.0.3134/appveyor-server-7.0.3134-win-x64.msi
Let me know how it worked for you.
AppVeyor Server 7.0.3134 fixed the issue. Many Thanks!
Cool, thanks for the update!
Environment Information
AppVeyor:
v7.0.3111
OS:Windows Server 2019
Gitea:
gitea-1.15.8-windows-4.0-amd64.exe
OS:Windows Server 2016
GitVersion:2.33.1
DB:SQLite
Issue Description
I have an on-prem gitea instance connected with on-prem AppVeyor server. Creating a new tag for a gitea repo creates below webhook. AppVeyor responsis with 200 but no build is created and also no project event shows up in the AppVeyor Web GUI.
Do not build tags
in GUI andskip_tags
in appveyor.yml are not checked/set to true.Problem occurs at least also with Gitea version 1.15.6. I was not able to test other Gitea version.
Gitea Webhook