You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
gh_actions_entrypoint.py
. They should probably be placed in their ownautopr/entrypoints/
directory.PublishService
subclass should be added inautopr/services/publish_service.py
EventService
subclass.main.py
is hardcoded for github, in that it instantiates a GithubPublishService and GithubEventService. Also, it takes agithub_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.
The text was updated successfully, but these errors were encountered: