gitea-repository-provider

repository provider for gitea


Keywords
git, gitea, repository-provider
License
BSD-2-Clause
Install
npm install gitea-repository-provider@4.2.1

Documentation

npm License Typed with TypeScript bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

gitea-repository-provider

repository provider for gitea

usage

API

Table of Contents

GiteaBranch

Extends Branch

writeEntry

Writes content into the branch.

Parameters

  • entry ContentEntry
  • message string

Returns Promise<ContentEntry> written content with sha values set

commit

Commit entries.

Parameters

  • message string commit message
  • entries Array<ContentEntry> content to be commited
  • options Object?

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 Repository

  • filter Object (optional, default {})

    • filter.source Branch?
    • filter.destination Branch?
    • filter.states Set<string>?

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