R
Railway4mo ago
Jay

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

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.
No description
37 Replies
Percy
Percy4mo ago
Project ID: 888a6ace-acaa-4873-80f7-c809e10e5346
Brody
Brody4mo ago
have you added the user to your project?
Jay
Jay4mo ago
Do you mean the github project or the railway project, I added both
Brody
Brody4mo ago
is it the same email? github and railway
Jay
Jay4mo ago
yes If I don't have permission, won't the railway app prompt me, but I can't even see the prompt
Brody
Brody4mo ago
oh you arent even seeing the railway bot comment on the pr?
Jay
Jay4mo ago
yes I can only see the railway bot's comments if my head branch and base branch are both from this repository
Brody
Brody4mo ago
do you not have pr environments enabled?
Jay
Jay4mo ago
yes, i enabled
Jay
Jay4mo ago
No description
Brody
Brody4mo ago
then this might be a pro or hobby only feature are you able to create pr envs if you where to open the pr on your own repo?
Jay
Jay4mo 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 But if the head branch is from other fork repository, I can't see the railway comment
Brody
Brody4mo ago
i just dont think thats how it works then add the user to the repo and then ask them to make a pr
Jay
Jay4mo ago
yes, I added the user to the repo and the user created a pr, but this can not trigger PR preview
Brody
Brody4mo ago
and the user's pr was made from the same repo?
Jay
Jay4mo ago
yes
Jay
Jay4mo ago
Look at the picture, when the head branch of this PR is from another repository, railway bot has no comments
No description
No description
Brody
Brody4mo ago
but its working when the user youve added is making a pr from the same repo?
Jay
Jay4mo 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
Brody4mo ago
okay so it works, I just don't think it works when the pr isn't created from the repo itself
Jay
Jay4mo ago
Yes, but I see that this PR in your repository triggers a PR preview, the head branch of which is from another repository.
Jay
Jay4mo ago
No description
Brody
Brody4mo ago
does the user have their github linked to their railway account
Jay
Jay4mo ago
yes
No description
Brody
Brody4mo ago
isn't that your own account?
Jay
Jay4mo ago
This is another account, my test account
Jay
Jay4mo ago
I found another account that is in limited trail, is this the reason why I can't trigger PR preview?
No description
Jay
Jay4mo ago
This account is created by another user
Brody
Brody4mo ago
thats a good possibility, yeah
Jay
Jay4mo 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
Brody4mo ago
I don't work for railway, but I can flag the team for you
Duchess
Duchess4mo ago
Thread has been flagged to Railway team by @Brody.
Jay
Jay4mo ago
thanks a lot
Brody
Brody4mo ago
fwiw only pro users would get direct support from the team, unless it's a platform issue
JustJake
JustJake4mo ago
You need to be on the team 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
Jay
Jay4mo 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)?
salief
salief3mo ago
This is what I'm interested in as well Is there a way to configure this manually?