Skip to content
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

Avoid sending "0 new commits" webhooks #12212

Merged
merged 7 commits into from
Sep 3, 2020

Conversation

S7evinK
Copy link
Contributor

@S7evinK S7evinK commented Jul 11, 2020

Avoids sending messages containing "0 new commits pushed" to services. Other solutions would probably break integration with eg. drone (see #11397)

Closes #10498

@lafriks
Copy link
Member

lafriks commented Jul 11, 2020

wouldn't this result error being logged?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 11, 2020
@lafriks lafriks added this to the 1.13.0 milestone Jul 11, 2020
@S7evinK
Copy link
Contributor Author

S7evinK commented Jul 11, 2020

Yes, at the moment an error would be logged. Should this be a warning/info instead?

@lafriks
Copy link
Member

lafriks commented Jul 11, 2020

Imho it should be handled somewhere in more central place and ignored silently

@S7evinK
Copy link
Contributor Author

S7evinK commented Jul 11, 2020

Done. Shouldn't result in anything being logged now.

modules/webhook/webhook.go Outdated Show resolved Hide resolved
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 19, 2020
Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope this wont break things again - throug it looks promising

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 1, 2020
@techknowlogick techknowlogick merged commit 7af2ccd into go-gitea:master Sep 3, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slack webhook showing message 0 new commits pushed
6 participants