neondatabase / create-branch-action

GitHub Action to create a new Neon branch
30 stars 7 forks source link

Misleading "ERROR: branch already exists" in output during redeploy #67

Open jrr opened 3 weeks ago

jrr commented 3 weeks ago

I lost a little time investigating these messages:

branch create out:
branch create err:
ERROR: branch already exists; branch_name:"preview/preview-apps"
branch exists, branch id: br-nameless-darkness-a5jg3qz7

And then I eventually inspected the source and realized that the action was built to expect and handle this. Could these messages be removed?

Maybe a change to neonctl could make things easier for this action to handle the already-exists case, or some shell script trickery could filter them out.