-
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
fix: allow deletion of PR branch #16
Conversation
@joyeecheung Should we merge this, and revert if it doesn't work? |
I would still prefer to somehow forbid sending actions via direct push to main, because it can be easy to make a mistake (I sometimes use the GitHub UI to just add a post, and if I accidentally choose "commit to the main branch", I left it there, and I am glad that the action would ignore that hiccup and I can just force push to remove it). |
Let's enable https://github.com/nodejs/bluesky/settings/rules/2926087 then |
Alright, let's not use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks. Have you tried it in a test account?
I tried it in https://github.com/TestOrgPleaseIgnore/bluesky/actions/runs/12286204740/job/34285856571 and it doesn't seem to work, as it needs to check out the main branch to push (and I think fetch-deps does need to be 0?) |
Anyway, seeing #23 being deleted in the fork changed my mind, I am okay with using the push event now, though I think that still requires squashing the commits so it needs to be documented? |
I've set up https://github.com/TestOrgPleaseIgnore/bluesky which is setup to work with https://bsky.app/profile/pixel-voyager.bsky.social (I feel that maybe we should rename the account to be "PRIMARY" or something so that both repo can use the same alias to test and reduce conflicts, but for now in that repo it needs to be "PIXEL") and added you as maintainer, you can use that repo to test it live. |
No I don't think there's any reason it would be necessary, it's perfectly fine to push from a shallow clone. Could you try again with the latest commit I pushed please? EDIT: I see that you gave me access to the test org, so I went ahead and tried https://github.com/TestOrgPleaseIgnore/bluesky/actions/runs/12287030932/job/34288299714, it correctly created TestOrgPleaseIgnore@036a277 |
By using the
push
event instead of thepull_request
event, we can no longer care about whether the head branch gets deleted or not.