PR Env Name?

Hello! I set up my PR environment with github actions. And the PR environment naming changes between 2 formats. As you can see from the pictures sometimes it uses the Github repo name and sometimes just some numbers. Is there a reason for that or can i make it somehow that it always uses the repo name?
No description
No description
9 Replies
Percy
Percy3d ago
Project ID: N/A
tallestbassist
tallestbassistOP3d ago
N/A
Brody
Brody2d ago
the naming convention is not user configurable unfortunately, is there a reason it strictly matters if I may ask?
tallestbassist
tallestbassistOP2d ago
I have 3 services on there that i need to read info from and write to them to change Service Variables. I use JS to send GraphQL queries and i find the service and Enviornment ID's based on their names. Since is a PR Enviornment the ID's are always new. Currently if the name is set to "gitub-name"-pr-"number of pullrequest" i can just look at all the enviornments i have, and get the ID based on that name but sometimes for some reason it just puts Pr-"some nr" - " pr-nr" but not always But i quess i can just regex the end and just look for the number. was just wondering if there was some reason for it changeing like that.
Brody
Brody2d ago
I'm honestly not sure, but I don't think you should be replying on the pr environment name regardless, imo that seems hacky
tallestbassist
tallestbassistOP2d ago
If i have multiple PR enviorments open how would i find automatically the correct ones ID then?
Brody
Brody2d ago
get the most recently created environment's id
tallestbassist
tallestbassistOP2d ago
Alright. Well thanks for the info.
Brody
Brody2d ago
no problem!
Want results from more Discord servers?
Add your server