-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Branch diff is always null #20
Comments
Would it be possible to share a workflow run? Do you see any different behavior if you refreshed your schema in the deploy request after the update and then ran /ps-update again without any parameters? |
@jonico I'm not sure how to share a workflow run, how do you suggest I do this? I refreshed the schema in the DR and then ran I also had a colleague try to approve the PR via I have a separate question - |
@jcohenho: I was hoping your workflow ran in any public repository where you could have shared the link with me. Based on your observations about the "not being able to approve your own DR" it seems as if you have set PlanetScale service tokens (as opposed to the web based auth flow where the individual user's credentials are used). Approvals would only work if every user was to use their own credentials (e.g. by clicking on the auth links in the workflow run when no service tokens are used). If you are actually using service tokens (please confirm), I wonder whether the scope of those tokens contain the necessary permissions to diff the schema with the production branch - can you grant the service token more scopes temporarily and check? Regarding the commits created in the subdirectory- this was my way of keeping track on the association between PR and deploy request in a traceable manner that would still show if the code was imported somewhere else. That said, this entire IssueOps based integration is just a proof of concept where we are looking forward to more feedback how to make it better and also looking forward for any contributions. In the mid-term, our goal is to turn the GitHub workflow based approach into a proper GitHub app but until then, we like to get feedback on the usefulness of the workflow itself and what additional features are needed/which features don't make sense in their current form. |
@jonico Sorry, my workflow run is in a private repo - I've been using service tokens as you guessed, I'll try the web-based authflow instead and see if that works. Once I can connect everything and properly test out these workflows I can provide better feedback. Thanks for all your hard work! |
@jonico I tried to use the web-based authflow and I'm getting the same results. The deploy branch attaches successfully, but the schema changes are still null. Any other ideas? |
I will try to reproduce this week and let you know |
closing issue, feel free to reopen if needed |
I'm able to successfully attach and update a PR with a Planetscale DR using the issue-ops-ps-commands
/ps-attach
and/ps-update
, however the Branch diff is always null.Even thought the workflow job passes (green), I also get the following error {"error": "deploy request 'myapp/7' does not exist in organization my-org"}. This DR does indeed exist, and has schema changes, so I'm unsure where the issue stems from. Note that I am only using the
issue-ops-ps-commands.yml
workflow along with the directory of .pscale shell commands.The text was updated successfully, but these errors were encountered: