41 lines
3.9 KiB
Markdown
41 lines
3.9 KiB
Markdown
<p align="center">
|
|
<a href="https://odit.services" target="blank"><img src="https://odit.services/img/profile-pic-no_bg.webp" width="200" alt="ODIT Logo" /></a>
|
|
</p>
|
|
<h1 align="center">Drone Gitea PR</h1>
|
|
|
|
 
|
|
|
|
|
|
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> -> <target>"
|
|
* `SOURCE`: Source branch (aka head)
|
|
* `TARGET`: Target branch (aka base)
|
|
* `MERGE`: Merge the PR after creation - defaults to false
|
|
* `DELETE_SOURCE`: Delete source branch after merge - defaults to false
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
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
|
|
DELETE_SOURCE: false
|
|
``` |