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

Turn RepoRef and RepoAssignment back into func(*Context) #15372

Merged
merged 6 commits into from
Apr 10, 2021

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Apr 9, 2021

As revealed on Discord the Wrap PR has revealed the RepoRef and RepoAssignment aren't using next properly.

As both of these function just use Context we should just turn them back to func(*Context) functions.

Signed-off-by: Andrew Thornton [email protected]

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Apr 9, 2021
zeripath added a commit to zeripath/gitea that referenced this pull request Apr 9, 2021
@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 Apr 9, 2021
@techknowlogick techknowlogick merged commit 136a209 into go-gitea:master Apr 10, 2021
@techknowlogick techknowlogick added the backport/done All backports for this PR have been created label Apr 10, 2021
techknowlogick pushed a commit that referenced this pull request Apr 10, 2021
@zeripath zeripath deleted the fix-error-revealed-by-wrap branch April 10, 2021 06:09
zeripath added a commit to zeripath/gitea that referenced this pull request Apr 28, 2021
There was a mistake in go-gitea#15372 where deferral of gitrepo close occurs before it should.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>
6543 pushed a commit that referenced this pull request May 5, 2021
…ons (#15653)

There was a mistake in #15372 where deferral of gitrepo close occurs before it should.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>
zeripath added a commit to zeripath/gitea that referenced this pull request May 6, 2021
…ons (go-gitea#15653)

Backport go-gitea#15653

There was a mistake in go-gitea#15372 where deferral of gitrepo close occurs before it should.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>
6543 pushed a commit that referenced this pull request May 7, 2021
…ons (#15653) (#15746)

* Defer closing the gitrepo until the end of the wrapped context functions (#15653)

Backport #15653

There was a mistake in #15372 where deferral of gitrepo close occurs before it should.

This PR fixes this.
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created 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.

4 participants