4 months ago
Hi :D
I would like to change the target branch (github) on my service "x" from dev to -> feature/XXXX
but im not finding it in the API doc
Any advice ?
11 Replies
4 months ago
https://railway.com/graphiql
You can find all of the available GraphQL queries there
ServiceInstanceUpdateInput
But there is nothing about the branch (only repo)
4 months ago
try this query
mutation Branch($serviceId:String!, $branch:String!, $repo:String!){
serviceConnect(
id:$serviceId
input: {
branch: $branch
repo: $repo
}
) {
id
name
}
}4 months ago
It's probably going to return some kind of ServiceInstance not found error but that's probably related to the id name being queried from serviceConnect but the branch should update properly with this mutation query
4 months ago
Hey did you ever see the message I had sent in slack? 😁
I left the detailed steps which should do this
4 months ago
Hey @Nems - Just curious as to why you are using Discord when you have a Slack channel with us. Discord threads come with zero response time guarantees and are largely community only.
Hey @Brody and @Error 😇
Yep just saw your messages on slack :p
I was wondering if the discord community is big enough to help me with "basic" things and compensate for the time difference between us
4 months ago
For sure! we just ask that you don't create duplicate threads in slack and then Discord, or vice versa.