Skip to content

Fix PR owner logic - #778

Open
emerkle826 wants to merge 1 commit into
masterfrom
fix-fork-pr-logic
Open

Fix PR owner logic#778
emerkle826 wants to merge 1 commit into
masterfrom
fix-fork-pr-logic

Conversation

@emerkle826

Copy link
Copy Markdown
Contributor

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.

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.
@github-actions

Copy link
Copy Markdown

No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged

@burmanm burmanm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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..

@emerkle826

Copy link
Copy Markdown
Contributor Author

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....

@emerkle826

Copy link
Copy Markdown
Contributor Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants