models

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepositoryInstance

func RepositoryInstance(r *gitea.Repository) string

Types

type Branch

type Branch struct {
	Ref  string            `json:"ref"`
	Repo *gitea.Repository `json:"repo"`
	SHA  string            `json:"sha"`
}

type Commit

type Commit struct {
	SHA     string `json:"id"`
	Message string `json:"message"`
}

type LocalPR

type LocalPR struct {
	ID        int64 `xorm:"pk autoincr"`
	Index     int64
	RepoID    int64
	CommentID int64
}

type LocalRepo

type LocalRepo struct {
	ID       int64 `xorm:"pk autoincr"`
	Instance string
	Name     string
	Owner    string
}

func LocalRepository

func LocalRepository(r *gitea.Repository) *LocalRepo

type PRHook

type PRHook struct {
	Action      string            `json:"action"`
	Number      int64             `json:"number"`
	Title       string            `json:"title"`
	PullRequest *PullRequest      `json:"pull_request"`
	Repository  *gitea.Repository `json:"repository"`
}

type PullRequest

type PullRequest struct {
	Number int64   `json:"number"`
	Title  string  `json:"title"`
	Base   *Branch `json:"base"`
	Head   *Branch `json:"head"`
}

type RepoHook

type RepoHook struct {
	Ref        string            `json:"ref"`
	HeadCommit *Commit           `json:"head_commit"`
	Repository *gitea.Repository `json:"repository"`
}

type User

type User struct {
	Login string `json:"login"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL