This Github Action allows to manually create a new branch in the CI mirror repo the under the pull/ path based on the changes suggested by an external Pull Request from an forked repository. This push triggers the CI jobs in the Gitlab CI.
This action does:
force the push of the pull/<id>/HEAD branch in the mirror. It also notifies to the Gitlab CI for a immediate pull of the mirror (this last is not strictly necessary)
Puts a comment into the Pull Request pointing to the created branch
This action has some limitations:
The results of the CI jobs are not linked to the original Pull Request. Instead of that that relies in a manual action by the reviewer who have to put a comment in the PR linking the results.. I've noticed that this works if the references (hash) for the HEAD commit what triggers the pipeline is the same that the HEAD in the pull/<id>/HEAD branch.
This Github Action allows to manually create a new branch in the CI mirror repo the under the
pull/
path based on the changes suggested by an external Pull Request from an forked repository. This push triggers the CI jobs in the Gitlab CI.This action does:
pull/<id>/HEAD
branch in the mirror. It also notifies to the Gitlab CI for a immediate pull of the mirror (this last is not strictly necessary)This action has some limitations:
The results of the CI jobs are not linked to the original Pull Request. Instead of that that relies in a manual action by the reviewer who have to put a comment in the PR linking the results.. I've noticed that this works if the references (hash) for the HEAD commit what triggers the pipeline is the same that theHEAD
in thepull/<id>/HEAD
branch.