Skip to content
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

Throw if top-level repo name does not match PR base context #15

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

klutchell
Copy link
Collaborator

It is unclear from the docs whether the top level context.repo property will always reflect the target/base of a PR from a fork, or the forked repo.

So to be safe until we can test all scenarios, throw an exception if the values do not match.

Change-type: patch

@klutchell klutchell force-pushed the kyle/throw-unexpected-repo-value branch 3 times, most recently from 6b3ace2 to 26d195e Compare October 10, 2024 22:48
@klutchell klutchell marked this pull request as ready for review October 10, 2024 22:49
@flowzone-app flowzone-app bot enabled auto-merge October 10, 2024 22:52
@klutchell klutchell force-pushed the kyle/throw-unexpected-repo-value branch 2 times, most recently from a2936b3 to 9cddddf Compare October 10, 2024 23:40
It is unclear from the docs whether the top level context.repo
property will always reflect the target/base of a PR from a fork,
or the forked repo.

So to be safe until we can test all scenarios, throw an exception
if the values do not match.

Change-type: patch
Signed-off-by: Kyle Harding <[email protected]>
@klutchell klutchell force-pushed the kyle/throw-unexpected-repo-value branch from 9cddddf to da5f96e Compare October 11, 2024 14:17
@klutchell klutchell force-pushed the kyle/throw-unexpected-repo-value branch from da5f96e to 11e4181 Compare October 11, 2024 14:20
Copy link

A repository maintainer needs to approve the commit(s) for this workflow.

See 11e4181#commitcomment-147851302

@flowzone-app flowzone-app bot merged commit 9b26d19 into main Oct 15, 2024
61 checks passed
@flowzone-app flowzone-app bot deleted the kyle/throw-unexpected-repo-value branch October 15, 2024 17:37
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