-
Notifications
You must be signed in to change notification settings - Fork 35
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
webhook proxy should support PRs from forked repositories #1163
Comments
The template might need some additional settings: |
I've tested quite some refs however wasn't able to get this from bitbucket if the PR relates to a forked repo. @michaelsauter any thoughts? |
Hmm. TBH I am not sure if the webhook proxy really should support this. Can you expand on "At least extending ALLOWED_EXTERNAL_PROJECTS doesn't apply"? Did you try and it did not work? The env var exists to allows the following scenario: say you have project "foo" and namespaces "foo-cd", "foo-dev" and "foo-test". by default the proxy only builds repos located in the "foo" project of bitbucket. configuring |
By design the webhook cannot be configured on the fork. |
Oh I see. Well then this would require some work, probably along what the links you shared earlier suggest. I will not work on this feature, but will review contribution. First though, I wonder if we really need this? I think the contribution flow via forked repo is not too common in a company setting. |
Is your feature request related to a problem? Please describe.
Development teams might rely on a contribution workflow based on forked repositories.
PullRequest are not created from branch-a to e.g. master but from forked-repo/branch to master.
Describe the solution you'd like
It would be beneficial if the webhook proxy creates a Jenkins project which can deal with forked repos so that we can run pipelines based on Pull Requests of forked repos (just like github actions).
The purpose of the pipeline is to run additional checks on the code changes of the PR.
Describe alternatives you've considered
Use Github Actions.
Additional context
The webhook proxy has some configuration parameters however I'm not sure if one of these would apply.
At least extending ALLOWED_EXTERNAL_PROJECTS doesn't apply.
https://www.opendevstack.org/ods-documentation/opendevstack/4.x/jenkins/webhook-proxy.html
The text was updated successfully, but these errors were encountered: