-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add Gitea Webhook #1755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Gitea Webhook #1755
Conversation
models/webhook.go
Outdated
@@ -1,4 +1,4 @@ | |||
// Copyright 2014 The Gogs Authors. All rights reserved. | |||
// Copyright 2017 Gitea. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, you can add a line. But the copyright to the old stuff cannot be removed, FMPOV.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For other files, the copyright has been changed, so I did the same way but I do not care
I will wait for the review to be sure I should keep it or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only Gitea copyright is in files that are new and was not in Gogs. In places where new things are added new copyright line is added, see:
Line 2 in a201977
// Copyright 2016 The Gitea Authors. All rights reserved. |
Also it should be
The Gitea Authors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add the copyright above the Gogs-line when changing something :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I took the example from this file https://github.com/go-gitea/gitea/blob/master/models/status.go#L1
These changes will break backwards compatibility with existing integrations and API |
My biggest issue is that the Drone-integration will break, so I'd wait for harness/harness#1978 first :) |
And we need a migration to fix all the current webhooks 🙄 |
There is a PR waiting for integration: harness/harness#2017. Good point for the migration. I won't do it right now because webhook might change. But once the drone PR is merged, I will work on it (if I have free time :p) |
Since harness/harness#2017 has been merged, how we should finish this PR? |
Looks good. |
LGTM |
Make L-G-T-M work! |
LGTM |
make L-G-T-M work |
@appleboy Please check the milestone before merge the PR. |
@lunny ok. my fault. I forgot to check the milestone. |
While checking the webhook code, I saw that there were some gogs information.
So I fix the typo and the webhook test.