R
Railway9mo 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
Percy9mo ago
Project ID: 888a6ace-acaa-4873-80f7-c809e10e5346
Brody
Brody9mo ago
have you added the user to your project?
Jay
JayOP9mo ago
Do you mean the github project or the railway project, I added both
Brody
Brody9mo ago
is it the same email? github and railway
Jay
JayOP9mo ago
yes If I don't have permission, won't the railway app prompt me, but I can't even see the prompt
Brody
Brody9mo ago
oh you arent even seeing the railway bot comment on the pr?
Jay
JayOP9mo ago
yes I can only see the railway bot's comments if my head branch and base branch are both from this repository
Brody
Brody9mo ago
do you not have pr environments enabled?
Jay
JayOP9mo ago
yes, i enabled
Jay
JayOP9mo ago
No description
Brody
Brody9mo 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
JayOP9mo 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
Brody9mo 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
JayOP9mo ago
yes, I added the user to the repo and the user created a pr, but this can not trigger PR preview
Brody
Brody9mo ago
and the user's pr was made from the same repo?
Jay
JayOP9mo ago
yes
Jay
JayOP9mo 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
Brody9mo ago
but its working when the user youve added is making a pr from the same repo?
Jay
JayOP9mo 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
Brody9mo ago
okay so it works, I just don't think it works when the pr isn't created from the repo itself
Jay
JayOP9mo 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
JayOP9mo ago
No description
Brody
Brody9mo ago
does the user have their github linked to their railway account
Jay
JayOP9mo ago
yes
No description
Brody
Brody9mo ago
isn't that your own account?
Jay
JayOP9mo ago
This is another account, my test account
Jay
JayOP9mo ago
I found another account that is in limited trail, is this the reason why I can't trigger PR preview?
No description
Jay
JayOP9mo ago
This account is created by another user
Brody
Brody9mo ago
thats a good possibility, yeah
Jay
JayOP9mo 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
Brody9mo ago
I don't work for railway, but I can flag the team for you
Duchess
Duchess9mo ago
Thread has been flagged to Railway team by @Brody.
Jay
JayOP9mo ago
thanks a lot
Brody
Brody9mo ago
fwiw only pro users would get direct support from the team, unless it's a platform issue
JustJake
JustJake9mo 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
JayOP9mo 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
salief8mo ago
This is what I'm interested in as well Is there a way to configure this manually?
Want results from more Discord servers?
Add your server