Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitlab/Bitbucket/Gitea support #46

Open
irgolic opened this issue Apr 12, 2023 · 0 comments
Open

Gitlab/Bitbucket/Gitea support #46

irgolic opened this issue Apr 12, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@irgolic
Copy link
Owner

irgolic commented Apr 12, 2023

Originally requested in irgolic/AutoPR-template#7

I made an effort to write AutoPR pretty orthogonally to Github. To support gitlab, the following changes need to be made:

  • a new entrypoint file should be added, similar to gh_actions_entrypoint.py. They should probably be placed in their own autopr/entrypoints/ directory.
  • a new PublishService subclass should be added in autopr/services/publish_service.py
  • a way to parse gitlab's events should be added as an EventService subclass.
  • currently main.py is hardcoded for github, in that it instantiates a GithubPublishService and GithubEventService. Also, it takes a github_token environment variable.

I don't personally have a use for this right now, but the changes should be pretty straightforward if anyone using gitlab wants to pick it up. That said, I'm glossing over the actual gitlab <=> entrypoint integration, and assuming that gitlab-ci provides an event object similar to github actions.

@irgolic irgolic added the good first issue Good for newcomers label Apr 12, 2023
@irgolic irgolic changed the title Gitlab support Gitlab/Gitea support Apr 21, 2023
@irgolic irgolic changed the title Gitlab/Gitea support Gitlab/Bitbucket/Gitea support Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant