Use case: obtaining an endpoint hostname programatically when I have the branch_id
. Specifically in my case for applying migrations to a parent branch once I have created + successfully applied them to a child branch.
I observe this information is returned in the response on branch creation (POST /v2/projects/{project_id}/branches
→ .endpoints[]
- but to retrieve later I only see the route for listing all endpoints across all branches in a project (/v2/projects/{project_id}/endpoints
).
This is of course a workable solution, just less nice to use - I’d have to filter the response by branch_id
- starts to get more complex under a shell environment such as GitHub Actions for someone like myself who doesn’t do much shell scripting. (Plus vague FUD around potential future requirement for pagination of this response if the number of branches in a project grows particularly large.)
For my use case (CI, with env vars referring to credentials / project_id / parent_branch_id) I will instead create an additional environment variable populated with the parent branch endpoint hostname. However strictly speaking this additional env var duplicates the one with branch_id
- it would be nice to be able to automate this without having to perform the filtering mentioned above.