Skip to content

Doc updated list of supported webhooks and added example #8388

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

Merged
merged 6 commits into from
Oct 9, 2019
Merged

Doc updated list of supported webhooks and added example #8388

merged 6 commits into from
Oct 9, 2019

Conversation

8ctopus
Copy link
Contributor

@8ctopus 8ctopus commented Oct 6, 2019

The list of supported webhooks was not up-to-date and I added an example of how to receive the hook.

}

// check authorization
if ($decoded['secret'] != $secret_key) {
Copy link
Member

Choose a reason for hiding this comment

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

You shouldn't rely on this field existing, it is currently deprecated as we are migrating towards using the checksum header to validate hook content. Would you be able to update this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't know and I actually just learnt about it from you. How does the new system work? Is there any doc about it yet?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, this https://togithub.com/gogs/gogs/issues/4233 and this #3901 should provide details you are looking for :)

Copy link
Contributor Author

@8ctopus 8ctopus Oct 6, 2019

Choose a reason for hiding this comment

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

interesting indeed, let me check that and make changes to the script

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@techknowlogick I've updated the code snippet and tested it. It works. I hope that's what you had in mind.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 6, 2019
@codecov-io
Copy link

codecov-io commented Oct 6, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@5109d18). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #8388   +/-   ##
=========================================
  Coverage          ?   41.79%           
=========================================
  Files             ?      497           
  Lines             ?    65639           
  Branches          ?        0           
=========================================
  Hits              ?    27436           
  Misses            ?    34685           
  Partials          ?     3518

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5109d18...42dcfda. Read the comment docs.

@lunny lunny added the type/docs This PR mainly updates/creates documentation label Oct 6, 2019
Copy link
Member

@techknowlogick techknowlogick left a comment

Choose a reason for hiding this comment

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

Thanks for all the docs improvements you are doing :)

@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 Oct 6, 2019
@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 Oct 9, 2019
@zeripath zeripath merged commit e270896 into go-gitea:master Oct 9, 2019
@zeripath zeripath added this to the 1.10.0 milestone Oct 9, 2019
@8ctopus 8ctopus deleted the webhook branch October 10, 2019 04:20
@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/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants