gitea-repository-provider
v4.2.5
Published
repository provider for gitea
Downloads
1,976
Readme
gitea-repository-provider
repository provider for gitea
usage
API
Table of Contents
- GiteaBranch
- GiteaContentEntry
- GiteaMasterOnlyContentEntry
- GiteaOrganization
- GiteaProvider
- GiteaPullRequest
- GiteaRepository
- GiteaUser
GiteaBranch
Extends Branch
writeEntry
Writes content into the branch.
Parameters
entry
ContentEntrymessage
string
Returns Promise<ContentEntry> written content with sha values set
commit
Commit entries.
Parameters
Returns Promise<CommitResult>
GiteaContentEntry
Extends BufferContentEntryMixin(ContentEntry)
works for all branches
Parameters
name
mode
branch
GiteaMasterOnlyContentEntry
Extends StreamContentEntryMixin(ContentEntry)
only works for master branch
Parameters
name
mode
branch
GiteaOrganization
Extends RepositoryGroup
GiteaProvider
Extends MultiGroupProvider
Gitea provider. Known environment variables:
- GITEA_TOKEN api token
- GITEA_API api url
initializeRepositories
repositoryBases
All possible base urls.
Returns Array<string> common base urls of all repositories
name
We are called gitea.
Returns string gitea
instanceIdentifier
Returns string default env name prefix
GiteaPullRequest
Extends PullRequest
states
possible states
list
List all pull request for a given repo. Result will be filtered by source branch, destination branch and states.
Parameters
respository
Repositoryfilter
Object (optional, default{}
)
Returns AsyncIterable<PullRequest>
GiteaRepository
Extends Repository
update
https://try.gitea.io/api/swagger#/repository/repoEdit
GiteaUser
Extends RepositoryGroup
install
With npm do:
npm install gitea-repository-provider
license
BSD-2-Clause