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?
9 Replies
Project ID:
N/A
N/A
the naming convention is not user configurable unfortunately, is there a reason it strictly matters if I may ask?
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.
I'm honestly not sure, but I don't think you should be replying on the pr environment name regardless, imo that seems hacky
If i have multiple PR enviorments open how would i find automatically the correct ones ID then?
get the most recently created environment's id
Alright. Well thanks for the info.
no problem!