drone-gitea-pr/README.md

4.0 KiB

ODIT Logo

Drone Gitea PR

Drone (self-hosted) with branch

Generates gitea pull requests from a source to a target branch. It is also able to merge the pull request after creation (see Settings).

Settings 🛠️

  • DOMAIN: Domain name of your gitea server
  • APIKEY: Api token for a gitea user that has the privileges to create (and merge) pull requests in your repo
  • TITLE: Title for the PR - defaults to " -> "
  • SOURCE: Source branch (aka head)
  • TARGET: Target branch (aka base)
  • MERGE: Merge the PR after creation - defaults to false
  • SQUASH: Suash the merge - defaults to false
  • DELETE_SOURCE: Delete source branch after merge - defaults to false

Examples

kind: pipeline
name: default

steps:
steps:
  - name: release
    image: registry.odit.services/library/drone-changelogger
    pull: always
    settings:
      DOMAIN: git.odit.services
      APIKEY:
        from_secret: gitea_token
      TITILE: Upmerge
      SOURCE: dev
      TARGET: main
      MERGE: true
      SQUASH: false
      DELETE_SOURCE: false