0

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?

bobah
  • 18,364
  • 2
  • 37
  • 70

3 Answers3

3

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:

mrlov
  • 65
  • 7
2

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.

Oliver
  • 11,857
  • 2
  • 36
  • 42
1

It should be generally available with this pull request