forgejo-0.2.0: forgejo query library and cli
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gitea.Forgejo

Synopsis

Documentation

listOrgs Source #

Arguments

:: String

API URL

-> Maybe String

personal access token

-> IO (Either String [Organization]) 

List all visible organizations.

listOrgRepos Source #

Arguments

:: String

API URL

-> Maybe String

personal access token

-> String

org

-> IO (Either String [Repository]) 

List all visible repositories of a Forgejo org with an optional token.

listUserRepos Source #

Arguments

:: String

API URL

-> Maybe String

personal access token

-> String

username

-> IO (Either String [Repository]) 

List visible repositories associated with a user.

searchUsers Source #

Arguments

:: String

API URL

-> Maybe String

personal access token

-> String

search keyword

-> IO (Either String [User]) 

Search for visible users using the server's keyword matching.

getUser Source #

Arguments

:: String

API URL

-> Maybe String

personal access token

-> String

username

-> IO (Either String User) 

Get a user's profile by username.

listRepoIssues Source #

Arguments

:: String

API URL

-> Maybe String

personal access token

-> String

repo owner

-> String

repo

-> RepoIssueOptions

issue filter options

-> IO (Either String [Issue]) 

List all matching issues in a Forgejo repo with an optional token.

data RepoIssueOptions Source #

Constructors

RepoIssueOptions 

Fields

fedoraForge :: String Source #

Fedora Forge api url

data Issue #

Constructors

Issue 

Fields

Instances

Instances details
FromJSON Issue 
Instance details

Defined in Gitea.Model

Methods

parseJSON :: Value -> Parser Issue

parseJSONList :: Value -> Parser [Issue]

ToJSON Issue 
Instance details

Defined in Gitea.Model

Methods

toJSON :: Issue -> Value

toEncoding :: Issue -> Encoding

toJSONList :: [Issue] -> Value

toEncodingList :: [Issue] -> Encoding

Show Issue 
Instance details

Defined in Gitea.Model

Methods

showsPrec :: Int -> Issue -> ShowS

show :: Issue -> String

showList :: [Issue] -> ShowS

Eq Issue 
Instance details

Defined in Gitea.Model

Methods

(==) :: Issue -> Issue -> Bool

(/=) :: Issue -> Issue -> Bool

data Label #

Constructors

Label 

Fields

Instances

Instances details
FromJSON Label 
Instance details

Defined in Gitea.Model

Methods

parseJSON :: Value -> Parser Label

parseJSONList :: Value -> Parser [Label]

ToJSON Label 
Instance details

Defined in Gitea.Model

Methods

toJSON :: Label -> Value

toEncoding :: Label -> Encoding

toJSONList :: [Label] -> Value

toEncodingList :: [Label] -> Encoding

Show Label 
Instance details

Defined in Gitea.Model

Methods

showsPrec :: Int -> Label -> ShowS

show :: Label -> String

showList :: [Label] -> ShowS

Eq Label 
Instance details

Defined in Gitea.Model

Methods

(==) :: Label -> Label -> Bool

(/=) :: Label -> Label -> Bool

data Organization #

Constructors

Organization 

Fields

Instances

Instances details
FromJSON Organization 
Instance details

Defined in Gitea.Model

Methods

parseJSON :: Value -> Parser Organization

parseJSONList :: Value -> Parser [Organization]

ToJSON Organization 
Instance details

Defined in Gitea.Model

Methods

toJSON :: Organization -> Value

toEncoding :: Organization -> Encoding

toJSONList :: [Organization] -> Value

toEncodingList :: [Organization] -> Encoding

Show Organization 
Instance details

Defined in Gitea.Model

Methods

showsPrec :: Int -> Organization -> ShowS

show :: Organization -> String

showList :: [Organization] -> ShowS

Eq Organization 
Instance details

Defined in Gitea.Model

Methods

(==) :: Organization -> Organization -> Bool

(/=) :: Organization -> Organization -> Bool

data Repository #

Constructors

Repository 

Fields

Instances

Instances details
FromJSON Repository 
Instance details

Defined in Gitea.Model

Methods

parseJSON :: Value -> Parser Repository

parseJSONList :: Value -> Parser [Repository]

ToJSON Repository 
Instance details

Defined in Gitea.Model

Methods

toJSON :: Repository -> Value

toEncoding :: Repository -> Encoding

toJSONList :: [Repository] -> Value

toEncodingList :: [Repository] -> Encoding

Show Repository 
Instance details

Defined in Gitea.Model

Methods

showsPrec :: Int -> Repository -> ShowS

show :: Repository -> String

showList :: [Repository] -> ShowS

Eq Repository 
Instance details

Defined in Gitea.Model

Methods

(==) :: Repository -> Repository -> Bool

(/=) :: Repository -> Repository -> Bool

data User #

Constructors

User 

Fields

Instances

Instances details
FromJSON User 
Instance details

Defined in Gitea.Model

Methods

parseJSON :: Value -> Parser User

parseJSONList :: Value -> Parser [User]

ToJSON User 
Instance details

Defined in Gitea.Model

Methods

toJSON :: User -> Value

toEncoding :: User -> Encoding

toJSONList :: [User] -> Value

toEncodingList :: [User] -> Encoding

Show User 
Instance details

Defined in Gitea.Model

Methods

showsPrec :: Int -> User -> ShowS

show :: User -> String

showList :: [User] -> ShowS

Eq User 
Instance details

Defined in Gitea.Model

Methods

(==) :: User -> User -> Bool

(/=) :: User -> User -> Bool