-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
ci: set changeset base remote #12499
Conversation
|
!preview changeset base |
Invalid command. Expected: "/preview " |
!preview changeset-base |
I believe the |
It was having trouble because |
Basing on About exiting pre, that seems fine to me 👍 We need to make sure that we remove it before merging next to main, or make it robust that it doesn't exit 1 if we're already out of pre mmode though. |
Ah great, I didn't realise you had a fix. I did the PR against main already, with |
Maybe we need to update this line
|
Invalid command. Expected: "/preview " |
Isn't that the same issue as setting baseBranch? Maybe we should combine changing the baseBranch with adding |
I don't think we should change the base branch with origin/ as it affects local development too. Maybe we can do that in CI only? Could use jq to set it. Or we can use jq to read it and then git fetch the right branch |
Yeah, or maybe get the base branch for the PR? |
Could work too, but I'm not really sure what would happen if the base branch is a feature branch. |
So it looks ike the downside to exiting pre mode is that it publishes everything! https://github.com/withastro/astro/actions/runs/11971962174/job/33377860028 |
Yeah I don't think we could workaround that since that's kinda how changesets work. Previously even if we're not in pre mode, and the base branch had existing unrelated changesets, it also triggers releases from those changesets. So it's usually publishing more than it's needed. |
Changes
This should prevent the issues when reolving the base branch
Testing
Testing gh actions? lol
Docs