Ooglely / pugBot

Discord bot to run TF2 pick up games | pugbot.tf
https://pugbot.tf
21 stars 1 forks source link

Use Railway API to change test bot source through a command #24

Closed Ooglely closed 10 months ago

Ooglely commented 10 months ago

Railway has an API (docs here), and being able to change the branch the test bot is deployed off of through the bot itself would be very helpful, as PR environments don't currently work

serviceConnect unfortunately updates the branch for every environment, but does what I am looking for:

mutation setCommit {
  serviceConnect(
    id: "01b0b783-64b1-4727-b8c9-5df09701c8ac", 
    input: {branch: "main", repo: "Ooglely/pugBot"}
  ) {
    id
  }
}