repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/api.go | internal/route/api/v1/api.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package v1
import (
"net/http"
"strings"
"github.com/go-macaron/binding"
"gopkg.in/macaron.v1"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/in... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/misc/markdown.go | internal/route/api/v1/misc/markdown.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package misc
import (
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/markup"
)
func Markdown(c *context.API... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/user/access_tokens.go | internal/route/api/v1/user/access_tokens.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package user
import (
gocontext "context"
"net/http"
api "github.com/gogs/go-gogs-client"
"gopkg.in/macaron.v1"
"gogs.io/gogs/internal/context"
"gogs... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/user/follower.go | internal/route/api/v1/user/follower.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package user
import (
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
)
func responseAPIUsers(c *c... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/user/email.go | internal/route/api/v1/user/email.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package user
import (
"net/http"
api "github.com/gogs/go-gogs-client"
"github.com/pkg/errors"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/cont... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/user/user.go | internal/route/api/v1/user/user.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package user
import (
"net/http"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
"gogs.io/gogs/i... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/user/key.go | internal/route/api/v1/user/key.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package user
import (
"net/http"
api "github.com/gogs/go-gogs-client"
"github.com/pkg/errors"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/cont... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/admin/org_repo.go | internal/route/api/v1/admin/org_repo.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package admin
import (
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
)
func GetRepositoryByParams(c *context.APIContext) *database.Repo... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/admin/org_team.go | internal/route/api/v1/admin/org_team.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package admin
import (
"net/http"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
"gogs.io/gogs/... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/admin/repo.go | internal/route/api/v1/admin/repo.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package admin
import (
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/route/api/v1/repo"
"gogs.io/gogs/inte... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/admin/user.go | internal/route/api/v1/admin/user.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package admin
import (
"net/http"
api "github.com/gogs/go-gogs-client"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/c... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/admin/org.go | internal/route/api/v1/admin/org.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package admin
import (
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/route/api/v1/org"
"gogs.io/gogs/inter... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/contents.go | internal/route/api/v1/repo/contents.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"encoding/base64"
"fmt"
"net/http"
"path"
"github.com/gogs/git-module"
"github.com/pkg/errors"
"gogs.io/gogs/internal/context"... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/hook.go | internal/route/api/v1/repo/hook.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
"github.com/unknwon/com"
api "github.com/gogs/go-gogs-... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/tree.go | internal/route/api/v1/repo/tree.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"fmt"
"github.com/gogs/git-module"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/gitutil"
)
func GetRepoGitTree(c *cont... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/milestone.go | internal/route/api/v1/repo/milestone.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
"time"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
)
func ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/file.go | internal/route/api/v1/repo/file.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"github.com/gogs/git-module"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
"gogs.io/gogs/internal/gitutil"
"go... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/issue_comment.go | internal/route/api/v1/repo/issue_comment.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
"time"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
)
func L... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/issue.go | internal/route/api/v1/repo/issue.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"fmt"
"net/http"
"strings"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/context"
"... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/collaborators.go | internal/route/api/v1/repo/collaborators.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
)
func ListColl... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/repo.go | internal/route/api/v1/repo/repo.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
"path"
api "github.com/gogs/go-gogs-client"
"github.com/pkg/errors"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/tag.go | internal/route/api/v1/repo/tag.go | // Copyright 2021 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/route/api/v1/convert"
)
func ListTags(c *context.APIContext) {
tags, err := ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/branch.go | internal/route/api/v1/repo/branch.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/route/api/v1/convert"
)
// https://git... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/issue_label.go | internal/route/api/v1/repo/issue_label.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
)
func ListIssu... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/commits.go | internal/route/api/v1/repo/commits.go | // Copyright 2018 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
"strings"
"time"
"github.com/gogs/git-module"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/conf"
"go... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/key.go | internal/route/api/v1/repo/key.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
api "github.com/gogs/go-gogs-client"
"github.com/pkg/errors"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/cont... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/blob.go | internal/route/api/v1/repo/blob.go | package repo
import (
"encoding/base64"
"fmt"
"github.com/gogs/git-module"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/gitutil"
"gogs.io/gogs/internal/repoutil"
)
func RepoGitBlob(c *context.APIContext) {
gitRepo, err := git.Open(repoutil.RepositoryPath(c.Params(":username"), c.Params(":reponame")... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/repo/label.go | internal/route/api/v1/repo/label.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
api "github.com/gogs/go-gogs-client"
"github.com/unknwon/com"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/org/team.go | internal/route/api/v1/org/team.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package org
import (
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/route/api/v1/convert"
)
func ListTeams(... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/org/org.go | internal/route/api/v1/org/org.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package org
import (
"net/http"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
"gogs.io/gogs/in... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/convert/utils.go | internal/route/api/v1/convert/utils.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package convert
import (
"gogs.io/gogs/internal/conf"
)
// ToCorrectPageSize makes sure page size is in allowed range.
func ToCorrectPageSize(size int) int... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/api/v1/convert/convert.go | internal/route/api/v1/convert/convert.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package convert
import (
"context"
"fmt"
"github.com/unknwon/com"
"github.com/gogs/git-module"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/in... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/view.go | internal/route/repo/view.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"bytes"
"fmt"
gotemplate "html/template"
"path"
"strings"
"time"
"github.com/gogs/git-module"
"github.com/unknwon/paginater"
... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/commit.go | internal/route/repo/commit.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
gocontext "context"
"path"
"time"
"github.com/gogs/git-module"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/context"
"g... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/editor.go | internal/route/repo/editor.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"fmt"
"net/http"
"path"
"strings"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/context"
"gog... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/webhook.go | internal/route/repo/webhook.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"fmt"
"net/http"
"net/url"
"strings"
"time"
"github.com/gogs/git-module"
api "github.com/gogs/go-gogs-client"
jsoniter "github... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/setting.go | internal/route/repo/setting.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"fmt"
"io"
"strings"
"time"
"github.com/gogs/git-module"
"github.com/unknwon/com"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/int... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/release.go | internal/route/repo/release.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"fmt"
"strings"
"github.com/gogs/git-module"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/cont... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/issue.go | internal/route/repo/issue.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"fmt"
"net/http"
"net/url"
"strings"
"time"
"github.com/unknwon/com"
"github.com/unknwon/paginater"
log "unknwon.dev/clog/v2"
... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/wiki.go | internal/route/repo/wiki.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"strings"
"time"
"github.com/gogs/git-module"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
"gogs.io/gogs/in... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/repo.go | internal/route/repo/repo.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
"os"
"path"
"path/filepath"
"strings"
"github.com/unknwon/com"
log "unknwon.dev/clog/v2"
"github.com/gogs/git-modu... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/store.go | internal/route/repo/store.go | package repo
import (
"context"
"gogs.io/gogs/internal/database"
)
// Store is the data layer carrier for context middleware. This interface is
// meant to abstract away and limit the exposure of the underlying data layer to
// the handler through a thin-wrapper.
type Store interface {
// GetAccessTokenBySHA1 ret... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/http.go | internal/route/repo/http.go | // Copyright 2017 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"bytes"
"compress/gzip"
"fmt"
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"strconv"
"strings"
"time"
"gopkg.in/macaro... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/branch.go | internal/route/repo/branch.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"time"
log "unknwon.dev/clog/v2"
"github.com/gogs/git-module"
api "github.com/gogs/go-gogs-client"
"gogs.io/gogs/internal/conte... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/pull.go | internal/route/repo/pull.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
"path"
"strings"
"time"
"github.com/unknwon/com"
log "unknwon.dev/clog/v2"
"github.com/gogs/git-module"
"gogs.io/... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/tasks.go | internal/route/repo/tasks.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"net/http"
"gopkg.in/macaron.v1"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/cryptoutil"
"gogs.io/gogs/internal/database"
)... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/download.go | internal/route/repo/download.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"fmt"
"net/http"
"path"
"github.com/gogs/git-module"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/context"
"gogs.io/gog... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/repo/webhook_test.go | internal/route/repo/webhook_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"testing"
"github.com/stretchr/testify/assert"
"gogs.io/gogs/internal/database"
"gogs.io/gogs/internal/mocks"
)
func Test_valida... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/org/members.go | internal/route/org/members.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package org
import (
"github.com/unknwon/com"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/inte... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/org/teams.go | internal/route/org/teams.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package org
import (
"net/http"
"path"
"github.com/unknwon/com"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/data... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/org/setting.go | internal/route/org/setting.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package org
import (
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/auth"
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/org/org.go | internal/route/org/org.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package org
import (
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/database"
"gogs.io/gogs/internal/form"
)
const (
... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/lfs/batch_test.go | internal/route/lfs/batch_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfs
import (
"bytes"
"encoding/json"
"io"
"net/http"
"net/http/httptest"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/lfs/basic.go | internal/route/lfs/basic.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfs
import (
"encoding/json"
"io"
"net/http"
"strconv"
"gopkg.in/macaron.v1"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/database"
"go... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/lfs/basic_test.go | internal/route/lfs/basic_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfs
import (
"bytes"
"io"
"net/http"
"net/http/httptest"
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testi... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/lfs/route_test.go | internal/route/lfs/route_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfs
import (
"context"
"fmt"
"io"
"net/http"
"net/http/httptest"
"testing"
"github.com/stretchr/testify/assert"
"gopkg.in/macaron.v1"
"gog... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/lfs/main_test.go | internal/route/lfs/main_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfs
import (
"flag"
"fmt"
"os"
"testing"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/testutil"
)
func TestMain(m *testing.M) {
flag.Pa... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/lfs/mocks_test.go | internal/route/lfs/mocks_test.go | // Code generated by go-mockgen 2.1.1; DO NOT EDIT.
//
// This file was generated by running `go-mockgen` at the root of this repository.
// To add additional mocks to this or another package, add a new entry to the
// mockgen.yaml file in the root of this repository.
package lfs
import (
"context"
"sync"
databas... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | true |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/lfs/store.go | internal/route/lfs/store.go | package lfs
import (
"context"
"gogs.io/gogs/internal/database"
"gogs.io/gogs/internal/lfsutil"
)
// Store is the data layer carrier for LFS endpoints. This interface is meant to
// abstract away and limit the exposure of the underlying data layer to the
// handler through a thin-wrapper.
type Store interface {
... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/lfs/route.go | internal/route/lfs/route.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfs
import (
"net/http"
"strings"
"gopkg.in/macaron.v1"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/auth"
"gogs.io/gogs/internal/authuti... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/route/lfs/batch.go | internal/route/lfs/batch.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfs
import (
"fmt"
"net/http"
jsoniter "github.com/json-iterator/go"
"gopkg.in/macaron.v1"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/c... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/cryptoutil/aes.go | internal/cryptoutil/aes.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package cryptoutil
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"errors"
)
// AESGCMEncrypt encrypts plaintext with the given key using AES in GC... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/cryptoutil/aes_test.go | internal/cryptoutil/aes_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package cryptoutil
import (
"crypto/rand"
"testing"
"github.com/stretchr/testify/assert"
)
func TestAESGCM(t *testing.T) {
key := make([]byte, 16) // A... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/cryptoutil/sha.go | internal/cryptoutil/sha.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package cryptoutil
import (
"crypto/sha1"
"crypto/sha256"
"encoding/hex"
)
// SHA1 encodes string to hexadecimal of SHA1 checksum.
func SHA1(str string) ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/cryptoutil/md5_test.go | internal/cryptoutil/md5_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package cryptoutil
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestMD5(t *testing.T) {
tests := []struct {
input string
output s... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/cryptoutil/sha_test.go | internal/cryptoutil/sha_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package cryptoutil
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestSHA1(t *testing.T) {
tests := []struct {
input string
output ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/cryptoutil/md5.go | internal/cryptoutil/md5.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package cryptoutil
import (
"crypto/md5"
"encoding/hex"
)
// MD5 encodes string to hexadecimal of MD5 checksum.
func MD5(str string) string {
return hex.... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/mocks.go | internal/gitutil/mocks.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"testing"
"github.com/gogs/git-module"
)
var _ ModuleStore = (*MockModuleStore)(nil)
type MockModuleStore struct {
remoteAdd ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/error.go | internal/gitutil/error.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"github.com/gogs/git-module"
"github.com/pkg/errors"
"gogs.io/gogs/internal/errutil"
)
var _ errutil.NotFound = (*Error)(nil)
... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/tag_test.go | internal/gitutil/tag_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"testing"
"github.com/gogs/git-module"
"github.com/stretchr/testify/assert"
)
func TestModuler_ListTagsAfter(t *testing.T) {
S... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/error_test.go | internal/gitutil/error_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"os"
"testing"
"github.com/gogs/git-module"
"github.com/stretchr/testify/assert"
"gogs.io/gogs/internal/errutil"
)
func Test... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/pull_request_test.go | internal/gitutil/pull_request_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"fmt"
"testing"
"github.com/gogs/git-module"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
)
func TestModuler_... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/pull_request.go | internal/gitutil/pull_request.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"fmt"
"strconv"
"time"
"github.com/gogs/git-module"
"github.com/pkg/errors"
log "unknwon.dev/clog/v2"
)
// PullRequestMeta c... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/tag.go | internal/gitutil/tag.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"github.com/pkg/errors"
)
// TagsPage contains a list of tags and pagination information.
type TagsPage struct {
// List of tags ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/diff.go | internal/gitutil/diff.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"bytes"
"fmt"
"html"
"html/template"
"io"
"sync"
"github.com/sergi/go-diff/diffmatchpatch"
"golang.org/x/net/html/charset"
... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/module.go | internal/gitutil/module.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"github.com/gogs/git-module"
)
// ModuleStore is the interface for Git operations.
type ModuleStore interface {
// RemoteAdd adds... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/submodule_test.go | internal/gitutil/submodule_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"testing"
"github.com/gogs/git-module"
"github.com/stretchr/testify/assert"
)
func TestInferSubmoduleURL(t *testing.T) {
tests... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/diff_test.go | internal/gitutil/diff_test.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"html/template"
"testing"
dmp "github.com/sergi/go-diff/diffmatchpatch"
"github.com/stretchr/testify/assert"
"github.com/gogs... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/gitutil/submodule.go | internal/gitutil/submodule.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitutil
import (
"fmt"
"net/url"
"strings"
"github.com/gogs/git-module"
"gogs.io/gogs/internal/lazyregexp"
)
var scpSyntax = lazyregexp.New(`... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/pathutil/pathutil_test.go | internal/pathutil/pathutil_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package pathutil
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestClean(t *testing.T) {
tests := []struct {
path string
wantVal... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/pathutil/pathutil.go | internal/pathutil/pathutil.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package pathutil
import (
"path"
"strings"
)
// Clean cleans up given path and returns a relative path that goes straight
// down to prevent path traversa... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/dbutil/dsn.go | internal/dbutil/dsn.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package dbutil
import (
"fmt"
"strings"
"github.com/pkg/errors"
"gorm.io/driver/mysql"
"gorm.io/driver/postgres"
"gorm.io/driver/sqlite"
"gorm.io/dri... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/dbutil/dsn_test.go | internal/dbutil/dsn_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package dbutil
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gogs.io/gogs/internal/conf"
)
fun... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/dbutil/string.go | internal/dbutil/string.go | // Copyright 2022 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package dbutil
import (
"fmt"
"gogs.io/gogs/internal/conf"
)
// Quote adds surrounding double quotes for all given arguments before being
// formatted if... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/dbutil/logger.go | internal/dbutil/logger.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package dbutil
import (
"fmt"
"io"
)
// Logger is a wrapper of io.Writer for the GORM's logger.Writer.
type Logger struct {
io.Writer
}
func (l *Logger)... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/dbutil/string_test.go | internal/dbutil/string_test.go | // Copyright 2022 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package dbutil
import (
"testing"
"github.com/stretchr/testify/assert"
"gogs.io/gogs/internal/conf"
)
func TestQuote(t *testing.T) {
conf.UsePostgreSQ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/strutil/strutil.go | internal/strutil/strutil.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package strutil
import (
"crypto/rand"
"math/big"
"unicode"
)
// ToUpperFirst returns s with only the first Unicode letter mapped to its upper case.
func... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/strutil/strutil_test.go | internal/strutil/strutil_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package strutil
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestToUpperFirst(t *testing.T) {
tests := []struct {
name string
s ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/lfsutil/storage.go | internal/lfsutil/storage.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfsutil
import (
"io"
"os"
"path/filepath"
"github.com/pkg/errors"
"gogs.io/gogs/internal/osutil"
)
var ErrObjectNotExist = errors.New("Objec... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/lfsutil/oid_test.go | internal/lfsutil/oid_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfsutil
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestValidOID(t *testing.T) {
tests := []struct {
name string
oid ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/lfsutil/oid.go | internal/lfsutil/oid.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfsutil
import (
"github.com/pkg/errors"
"gogs.io/gogs/internal/lazyregexp"
)
// OID is an LFS object ID.
type OID string
// An OID is a 64-char... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/lfsutil/storage_test.go | internal/lfsutil/storage_test.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package lfsutil
import (
"bytes"
"io"
"os"
"path/filepath"
"runtime"
"strings"
"testing"
"github.com/stretchr/testify/assert"
)
func TestLocalStora... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/template/template.go | internal/template/template.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package template
import (
"fmt"
"html/template"
"mime"
"path/filepath"
"strings"
"sync"
"time"
"github.com/editorconfig/editorconfig-core-go/v2"
js... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/template/highlight/highlight.go | internal/template/highlight/highlight.go | // Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package highlight
import (
"path"
"strings"
"gogs.io/gogs/internal/conf"
)
var (
// File name should ignore highlight.
ignoreFileNames = map[string]bo... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/database/organizations.go | internal/database/organizations.go | // Copyright 2022 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package database
import (
"context"
"github.com/pkg/errors"
"gorm.io/gorm"
"gogs.io/gogs/internal/dbutil"
)
// OrganizationsStore is the storage layer... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/database/webhook_discord.go | internal/database/webhook_discord.go | // Copyright 2017 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package database
import (
"fmt"
"strconv"
"strings"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
"github.com/gogs/git-module"
api ... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/database/repo_editor.go | internal/database/repo_editor.go | // Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package database
import (
"fmt"
"io"
"mime/multipart"
"os"
"os/exec"
"path"
"path/filepath"
"strings"
"time"
"github.com/pkg/errors"
gouuid "gith... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/database/actions.go | internal/database/actions.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package database
import (
"context"
"fmt"
"path"
"strconv"
"strings"
"time"
"unicode"
"github.com/gogs/git-module"
api "github.com/gogs/go-gogs-cli... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/database/lfs.go | internal/database/lfs.go | // Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package database
import (
"context"
"errors"
"fmt"
"time"
"gorm.io/gorm"
"gogs.io/gogs/internal/errutil"
"gogs.io/gogs/internal/lfsutil"
)
// LFSOb... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
gogs/gogs | https://github.com/gogs/gogs/blob/e68949dd1307d1b72a2fe885976ea0be72ee31d5/internal/database/actions_test.go | internal/database/actions_test.go | // Copyright 2022 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package database
import (
"context"
"os"
"testing"
"time"
"github.com/gogs/git-module"
"github.com/stretchr/testify/assert"
"github.com/stretchr/test... | go | MIT | e68949dd1307d1b72a2fe885976ea0be72ee31d5 | 2026-01-07T08:35:43.578986Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.