Skip to content

Fix some typos #26031

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

Closed
wants to merge 9 commits into from
Closed

Fix some typos #26031

wants to merge 9 commits into from

Conversation

harryzcy
Copy link
Contributor

As title

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

be overridden ?

@wolfogre
Copy link
Member

image

Now I'm sure it was fixed by some spell check tools, PrecendingCharacter is function defined in external packages.

I'm not a fan of doing this for a big repo all at once. It comes with more risks than benefits.

@harryzcy
Copy link
Contributor Author

Ok, sure. It's checked by spell checker and replaced manually in the editor.

@@ -11,7 +11,7 @@ The default version will read from `docs/config.yml`. You can override this
using the option `--version`.

The upstream branches will be fetched, using the remote `origin`. This can
be overrided using `--upstream`, and fetching can be avoided using
be overrode using `--upstream`, and fetching can be avoided using
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
be overrode using `--upstream`, and fetching can be avoided using
be overridden using `--upstream`, and fetching can be avoided using

@@ -1305,7 +1305,7 @@ Defaultly every storage has their default base path like below
| actions_log | actions_log/ |
| actions_artifacts | actions_artifacts/ |

And bucket, basepath or `SERVE_DIRECT` could be special or overrided, if you want to use a different you can:
And bucket, basepath or `SERVE_DIRECT` could be special or overriden, if you want to use a different you can:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
And bucket, basepath or `SERVE_DIRECT` could be special or overriden, if you want to use a different you can:
And bucket, basepath or `SERVE_DIRECT` could be special or overridden, if you want to use a different you can:

PropertyMetadata = "rpm.metdata"
PropertyMetadata = "rpm.metadata"
Copy link
Member

Choose a reason for hiding this comment

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

Is that change really possible?
I'm not sure if it isn't breaking.

@@ -22008,7 +22008,7 @@
"author": {
"$ref": "#/definitions/CommitUser"
},
"commiter": {
"committer": {
Copy link
Member

Choose a reason for hiding this comment

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

Not good.
That means we have a breaking change in this PR.

@@ -9,7 +9,7 @@ import (
"code.gitea.io/gitea/modules/log"
)

// doMergeStyleMerge merges the tracking into the current HEAD - which is assumed to tbe staging branch (equal to the pr.BaseBranch)
// doMergeStyleMerge merges the tracking into the current HEAD - which is assumed to the staging branch (equal to the pr.BaseBranch)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// doMergeStyleMerge merges the tracking into the current HEAD - which is assumed to the staging branch (equal to the pr.BaseBranch)
// doMergeStyleMerge merges the tracking into the current HEAD - which is assumed to be the staging branch (equal to the pr.BaseBranch)

Copy link
Member

@delvh delvh left a comment

Choose a reason for hiding this comment

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

Meant to request changes, the API change must be reverted.

@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 21, 2023
@puni9869
Copy link
Member

puni9869 commented Jul 21, 2023

Q. Don't we have spell checker in github action which checks all typos?

@silverwind
Copy link
Member

silverwind commented Jul 21, 2023

There is misspell-check running during checks-backend, but it doesn't catch much. Something better would be appreciated.

gitea/Makefile

Lines 311 to 313 in 2f0e79e

.PHONY: misspell-check
misspell-check:
go run $(MISSPELL_PACKAGE) -error $(GO_DIRS) $(WEB_DIRS)

@silverwind
Copy link
Member

I think it's worth a try to add https://github.com/facelessuser/pyspelling via poetry and run that in addition to misspell.

@puni9869
Copy link
Member

puni9869 commented Jul 21, 2023

I think it's worth a try to add https://github.com/facelessuser/pyspelling via poetry and run that in addition to misspell.

May be we can consider https://github.com/super-linter/super-linter, but its a lil bit heavy, a monolith, we can customize it specfic to our use case.

@puni9869
Copy link
Member

I think it's worth a try to add https://github.com/facelessuser/pyspelling via poetry and run that in addition to misspell.

I can give a try in next PR

@silverwind
Copy link
Member

silverwind commented Jul 21, 2023

May be we can consider https://github.com/super-linter/super-linter, but its a lil bit heavy, a monolith, we can customize it specfic to our use case.

No, because every task needs to be runnable locally and once you add something specific to GH Actions, you lose the ability to run checks locally which is very important.

super-linter is for lazy projects. We are not lazy 😉.

@puni9869
Copy link
Member

puni9869 commented Jul 21, 2023

May be we can consider https://github.com/super-linter/super-linter, but its a lil bit heavy, a monolith, we can customize it specfic to our use case.

No, because every task needs to be runnable locally and once you add something specific to GH Actions, you lose the ability to run checks locally which is very important.

Yup, thats true. Let's stick to your suggested package then. No worries

@silverwind
Copy link
Member

silverwind commented Jul 21, 2023

Ideally it should be something we can install and lock down via npm, poetry, golang or even cargo. pyspelling is not ideal because it does not ship aspell so we can not lock it down to a version.

@yardenshoham
Copy link
Member

It's on npm

@silverwind
Copy link
Member

Ah yes, I was just about to post cspell as well.

@harryzcy
Copy link
Contributor Author

I was using typos.

@silverwind
Copy link
Member

silverwind commented Jul 21, 2023

I wonder how those two compare. Using rust crate for a tool should be in the realm of possibilites at least, even thought I have not done that so far 😉.

@harryzcy harryzcy closed this Sep 15, 2023
@puni9869 puni9869 reopened this Sep 16, 2023
@puni9869 puni9869 closed this Sep 16, 2023
@github-actions github-actions bot added type/docs This PR mainly updates/creates documentation modifies/api This PR adds API routes or modifies them topic/packages labels Sep 16, 2023
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Dec 15, 2023
@harryzcy harryzcy deleted the fix-typos branch January 14, 2024 23:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged modifies/api This PR adds API routes or modifies them topic/packages type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants