Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor webhook events#33337

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lunny merged 7 commits intogo-gitea:mainfromlunny:lunny/refactor_webhook_event
Jan 23, 2025
Merged

Conversation

@lunny
Copy link
Member

Extract from#33320

This PR uses a map instead of a struct to store webhook event information. It removes many duplicated functions and makes the logic clearer.

@lunnylunny added the type/refactoringExisting code has been cleaned up. There should be no new functionality. labelJan 20, 2025
@GiteaBotGiteaBot added the lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelJan 20, 2025
@github-actionsgithub-actionsbot added modifies/apiThis PR adds API routes or modifies them modifies/goPull requests that update Go code modifies/templatesThis PR modifies the template files labelsJan 20, 2025
@lunnylunnyforce-pushed thelunny/refactor_webhook_event branch from3847665 to76dc755CompareJanuary 21, 2025 02:02
@GiteaBotGiteaBot added lgtm/need 1This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelsJan 23, 2025
@GiteaBotGiteaBot added lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1This PR needs approval from one additional maintainer to be merged. labelsJan 23, 2025
@lunnylunny added the reviewed/wait-mergeThis pull request is part of the merge queue. It will be merged soon. labelJan 23, 2025
@lunnylunnyenabled auto-merge (squash)January 23, 2025 18:26
@lunnylunny merged commite94f37f intogo-gitea:mainJan 23, 2025
26 checks passed
@GiteaBotGiteaBot added this to the1.24.0 milestoneJan 23, 2025
@GiteaBotGiteaBot removed the reviewed/wait-mergeThis pull request is part of the merge queue. It will be merged soon. labelJan 23, 2025
@lunnylunny deleted the lunny/refactor_webhook_event branchJanuary 23, 2025 19:59
lunny added a commit that referenced this pull requestFeb 2, 2025
This PR created a mock webhook server in the tests and added integrationtests for generic webhooks.It also fixes bugs in package webhooks and pull request commentwebhooks.This also corrected an error on the package webhook. The previousimplementation uses a `User` struct as an organization, now it has beencorrected but it will not be consistent with the previousimplementation, some fields which not belong to the organization havebeen removed.Backport#33396Backport part of#33337
@go-giteago-gitea locked asresolvedand limited conversation to collaboratorsApr 23, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

2 more reviewers

@Zettat123Zettat123Zettat123 approved these changes

@hiifonghiifonghiifong approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore.modifies/apiThis PR adds API routes or modifies themmodifies/goPull requests that update Go codemodifies/templatesThis PR modifies the template filestype/refactoringExisting code has been cleaned up. There should be no new functionality.

Projects

None yet

Milestone

1.24.0

Development

Successfully merging this pull request may close these issues.

4 participants

@lunny@Zettat123@hiifong@GiteaBot

[8]ページ先頭

©2009-2025 Movatter.jp