How to enable PR preview of PR committed from fork repository to main repository?
linjie7674
TRIALOP

2 years ago

Project id: 888a6ace-acaa-4873-80f7-c809e10e5346

As shown in the figure, when a PR from another repository is created, Railway can prompt that the user needs to be added to the team before the PR preview can be started. But this doesn't work in my own repo, I'm currently using the trial version of Railway.

0 Replies

brody
EMPLOYEE

2 years ago

have you added the user to your project?


linjie7674
TRIALOP

2 years ago

Do you mean the github project or the railway project, I added both


brody
EMPLOYEE

2 years ago

is it the same email? github and railway


linjie7674
TRIALOP

2 years ago

yes


linjie7674
TRIALOP

2 years ago

If I don't have permission, won't the railway app prompt me, but I can't even see the prompt


brody
EMPLOYEE

2 years ago

oh you arent even seeing the railway bot comment on the pr?


linjie7674
TRIALOP

2 years ago

yes


linjie7674
TRIALOP

2 years ago

I can only see the railway bot's comments if my head branch and base branch are both from this repository


brody
EMPLOYEE

2 years ago

do you not have pr environments enabled?


linjie7674
TRIALOP

2 years ago

yes, i enabled


linjie7674
TRIALOP

2 years ago

1210071692987211800


brody
EMPLOYEE

2 years ago

then this might be a pro or hobby only feature


brody
EMPLOYEE

2 years ago

are you able to create pr envs if you where to open the pr on your own repo?


linjie7674
TRIALOP

2 years ago

I can see the PR preview comment when I opened a PR where the destination branch and head branch both are in this repository


linjie7674
TRIALOP

2 years ago

But if the head branch is from other fork repository, I can't see the railway comment


brody
EMPLOYEE

2 years ago

i just dont think thats how it works then


brody
EMPLOYEE

2 years ago

add the user to the repo and then ask them to make a pr


linjie7674
TRIALOP

2 years ago

yes, I added the user to the repo and the user created a pr, but this can not trigger PR preview


brody
EMPLOYEE

2 years ago

and the user's pr was made from the same repo?


linjie7674
TRIALOP

2 years ago

yes


linjie7674
TRIALOP

2 years ago

Look at the picture, when the head branch of this PR is from another repository, railway bot has no comments

1210074483096817700
1210074483436691500


brody
EMPLOYEE

2 years ago

but its working when the user youve added is making a pr from the same repo?


linjie7674
TRIALOP

2 years ago

I didn't try this. When I created a pr on my own repo(head branch and base branch are both from my own repo), PR preview was triggered.


brody
EMPLOYEE

2 years ago

okay so it works, I just don't think it works when the pr isn't created from the repo itself


linjie7674
TRIALOP

2 years ago

Yes, but I see that this PR in your repository triggers a PR preview, the head branch of which is from another repository.


linjie7674
TRIALOP

2 years ago

1210081761762222000


brody
EMPLOYEE

2 years ago

does the user have their github linked to their railway account


linjie7674
TRIALOP

2 years ago

yes

1210083252233306000


brody
EMPLOYEE

2 years ago

isn't that your own account?


linjie7674
TRIALOP

2 years ago

This is another account, my test account


linjie7674
TRIALOP

2 years ago

I found another account that is in limited trail, is this the reason why I can't trigger PR preview?

1210086692975804400


linjie7674
TRIALOP

2 years ago

This account is created by another user


brody
EMPLOYEE

2 years ago

thats a good possibility, yeah


linjie7674
TRIALOP

2 years ago

I would like to confirm in that whether the requirement I just had is already implemented in your product. Because our team is interested in using the tool for PR preview, and we can subsequently upgrade the pro-paid plan


brody
EMPLOYEE

2 years ago

I don't work for railway, but I can flag the team for you


linjie7674
TRIALOP

2 years ago

thanks a lot


brody
EMPLOYEE

2 years ago

fwiw only pro users would get direct support from the team, unless it's a platform issue


jake
EMPLOYEE

2 years ago

You need to be on the team


jake
EMPLOYEE

2 years ago

You can use the previews if you're on a team plan (any project in the team), or you've been invited to a project and are a member of it


linjie7674
TRIALOP

2 years ago

Can a PR preview be triggered even if the PR is from a forked repository (the head branch is from a forked repo and the base branch is from the repository that is tied to Railway)?


salieflewis
PRO

2 years ago

This is what I'm interested in as well


salieflewis
PRO

2 years ago

Is there a way to configure this manually


Loading...