Fix PR owner logic - #778
Conversation
This patch fixes the logic in the CI job that tries to exclude DSE build and test for PRs that are from forks. Forked repos will not have access to the Repository secrets which are needed to build and test the DSE agents.
|
No linked issues found. Please add the corresponding issues in the pull request description. |
burmanm
left a comment
There was a problem hiding this comment.
Difficult to see from tests if this helped as it came from the correct repo and not a fork, but I assume it should work..
🤦 I should have tried to PR this from my own fork, that would have made a lot more sense.... |
|
@burmanm there's still a problem with this in that it builds and tests DSE stuff when a PR is opened and the PR is from a non-forked branch (see https://github.com/k8ssandra/management-api-for-apache-cassandra/actions/runs/30017103890) but this specific logic falls to "forked" when it's just a commit push to a branch that already has a PR, or a branch that is pushed and a PR hasn't been opened yet (see https://github.com/k8ssandra/management-api-for-apache-cassandra/actions/runs/30015778316) I'll revisit this with some improvements, I don't want to merge it like it is just yet |
This patch fixes the logic in the CI job that tries to exclude DSE build and test for PRs that are from forks. Forked repos will not have access to the Repository secrets which are needed to build and test the DSE agents.