bobah
bobah

Reputation: 18864

Automatic pull request merge in Gitea upon successful Jenkins build

I want to configure Gitea and Jenkins, so Gitea would automatically merge pull requests upon successful build in Jenkins.

What's the least effort way to approach this?

Upvotes: 0

Views: 3877

Answers (3)

Yiannis Dermitzakis
Yiannis Dermitzakis

Reputation: 488

It should be generally available with this pull request

Upvotes: 1

mrlov
mrlov

Reputation: 65

For me the best solution was to use the Gitea Jenkins Plugin despite it is poor documented.

Some useful functions:

  • sync of structures/organazations/repositories
  • push webhooks
  • PRs from origin
  • PRs from forks

Here you can find more information:

Upvotes: 3

Oliver
Oliver

Reputation: 13031

You can use the Gitea API to merge a pull request, the API docs are here.

As the last step in Jenkins, call the Gitea API via curl to merge the PR.

Upvotes: 2

Related Questions