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

Use on/trigger event #24098

Closed
wants to merge 2 commits into from
Closed

Conversation

yp05327
Copy link
Contributor

@yp05327 yp05327 commented Apr 13, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2023

Codecov Report

Merging #24098 (892beb8) into main (f521e88) will decrease coverage by 0.06%.
The diff coverage is 39.34%.

❗ Current head 892beb8 differs from pull request most recent head 55667d3. Consider uploading reports for the commit 55667d3 to get more accurate results

@@            Coverage Diff             @@
##             main   #24098      +/-   ##
==========================================
- Coverage   47.14%   47.09%   -0.06%     
==========================================
  Files        1149     1161      +12     
  Lines      151446   153912    +2466     
==========================================
+ Hits        71397    72479    +1082     
- Misses      71611    72910    +1299     
- Partials     8438     8523      +85     
Impacted Files Coverage Δ
cmd/dump.go 0.64% <0.00%> (-0.03%) ⬇️
cmd/embedded.go 0.00% <0.00%> (ø)
cmd/mailer.go 0.00% <0.00%> (ø)
cmd/manager.go 0.00% <0.00%> (ø)
cmd/manager_logging.go 0.00% <0.00%> (ø)
cmd/migrate_storage.go 5.76% <0.00%> (-0.12%) ⬇️
cmd/restore_repo.go 0.00% <0.00%> (ø)
cmd/web.go 0.00% <0.00%> (ø)
models/actions/run.go 1.63% <0.00%> (-0.10%) ⬇️
models/actions/runner.go 1.44% <ø> (ø)
... and 57 more

... and 140 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 13, 2023
@wxiaoguang
Copy link
Contributor

I think it's correct 👍

@yardenshoham
Copy link
Member

What's the benefit?

@yardenshoham yardenshoham added this to the 1.20.0 milestone Apr 13, 2023
@yardenshoham yardenshoham added type/refactoring Existing code has been cleaned up. There should be no new functionality. javascript labels Apr 13, 2023
@lunny
Copy link
Member

lunny commented Apr 15, 2023

What's the benefit?

on could work on those dynamiclly added elements but click not.

@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 Apr 15, 2023
@silverwind
Copy link
Member

silverwind commented Apr 19, 2023

What's the benefit?

on could work on those dynamiclly added elements but click not.

No, that would only go for delegated listeners which these are not, so this is a pure refactor.

Still I think it's a good change and we should probably install this eslint rule to find and eliminate such cases. @yp05327 want to try adding it?

@silverwind
Copy link
Member

Actually I think that eslint plugin can come later. Adding new plugin is a bit of a more involved task as each rule needs to be evalutated etc.

@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 19, 2023
@yp05327
Copy link
Contributor Author

yp05327 commented Apr 19, 2023

@silverwind
Try adding it in #24198

@yp05327 yp05327 marked this pull request as draft April 19, 2023 08:11
@yp05327
Copy link
Contributor Author

yp05327 commented Apr 19, 2023

Change to draft as I think we need to fix all lint error in #24198

@silverwind
Copy link
Member

Let's continue in #24198, it's more thorough and does the same.

@silverwind silverwind closed this Apr 19, 2023
silverwind added a commit that referenced this pull request Apr 20, 2023
#24098 (comment)

---------

Co-authored-by: silverwind <me@silverwind.io>
@GiteaBot GiteaBot removed this from the 1.20.0 milestone Apr 23, 2023
@yp05327 yp05327 deleted the convert-click-into-on-click branch April 25, 2023 06:04
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jul 31, 2023
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/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants