Skip to content

Commit

Permalink
[DATALAD RUNCMD] run codespell throughout fixing typo automagically
Browse files Browse the repository at this point in the history
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information
yarikoptic committed Sep 13, 2023
1 parent 1314b78 commit ea087a4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Existing vulnerability reports are being tracked in [Gogs Vulnerability Reports]
## Vulnerability lifecycle

1. Report a vulnerability:
- We strongly enourage to use https://huntr.dev/ for submitting and managing status of vulnerability reports.
- We strongly encourage to use https://huntr.dev/ for submitting and managing status of vulnerability reports.
- Alternatively, you may send vulnerability reports through emails to [security@gogs.io](mailto:security@gogs.io).
1. Create a [dummy issue](https://github.com/gogs/gogs/issues/6901) with high-level description of the security vulnerability for credibility and tracking purposes.
1. Project maintainers review the report and either:
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func runWeb(c *cli.Context) error {
m.Get("/milestones", repo.Milestones)
}, ignSignIn, context.RepoAssignment(true))
m.Group("/:username/:reponame", func() {
// FIXME: should use different URLs but mostly same logic for comments of issue and pull reuqest.
// FIXME: should use different URLs but mostly same logic for comments of issue and pull request.
// So they can apply their own enable/disable logic on routers.
m.Group("/issues", func() {
m.Combo("/new", repo.MustEnableIssues).Get(context.RepoRef(), repo.NewIssue).
Expand All @@ -502,7 +502,7 @@ func runWeb(c *cli.Context) error {
}, ignSignIn, context.RepoAssignment(false, true))

m.Group("/:username/:reponame", func() {
// FIXME: should use different URLs but mostly same logic for comments of issue and pull reuqest.
// FIXME: should use different URLs but mostly same logic for comments of issue and pull request.
// So they can apply their own enable/disable logic on routers.
m.Group("/issues", func() {
m.Group("/:index", func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/route/user/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func LoginTwoFactorRecoveryCodePost(c *context.Context) {

func SignOut(c *context.Context) {
_ = c.Session.Flush()
_ = c.Session.Destory(c.Context)
_ = c.Session.Destroy(c.Context)
c.SetCookie(conf.Security.CookieUsername, "", -1, conf.Server.Subpath)
c.SetCookie(conf.Security.CookieRememberName, "", -1, conf.Server.Subpath)
c.SetCookie(conf.Session.CSRFCookieName, "", -1, conf.Server.Subpath)
Expand Down
2 changes: 1 addition & 1 deletion internal/sync/exclusive_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewExclusivePool() *ExclusivePool {
}

// CheckIn checks in an instance to the pool and hangs while instance
// with same indentity is using the lock.
// with same identity is using the lock.
func (p *ExclusivePool) CheckIn(identity string) {
p.lock.Lock()

Expand Down
2 changes: 1 addition & 1 deletion internal/sync/unique_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (q *UniqueQueue) Queue() <-chan string {
return q.queue
}

// Exist returns true if there is an instance with given indentity
// Exist returns true if there is an instance with given identity
// exists in the queue.
func (q *UniqueQueue) Exist(id any) bool {
return q.table.IsRunning(com.ToStr(id))
Expand Down
2 changes: 1 addition & 1 deletion scripts/windows/install-as-service.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:: this script.
:: And, please, read carefully the installation docs first:
:: https://gogs.io/docs/installation
:: To unistall the service, run "nssm remove gogs" and restart Windows.
:: To uninstall the service, run "nssm remove gogs" and restart Windows.

:: Set the folder where you extracted Gogs. Omit the last slash.
SET gogspath=C:\gogs
Expand Down

0 comments on commit ea087a4

Please sign in to comment.