Skip to content
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

Branches not removed after closing Restyle PRs #95

Closed
pbrisbin opened this issue May 4, 2020 · 7 comments
Closed

Branches not removed after closing Restyle PRs #95

pbrisbin opened this issue May 4, 2020 · 7 comments
Labels

Comments

@pbrisbin
Copy link
Member

pbrisbin commented May 4, 2020

Regression from the work to name branches restyled/x, instead of x-restyled.

Need to restore the call to deleteReference near (or as part of) closeRestyledPullRequest.

@pbrisbin pbrisbin added the bug label May 4, 2020
@pbrisbin
Copy link
Member Author

pbrisbin commented May 6, 2020

@iphydf can you let me know if this is fixed for you now?

@iphydf
Copy link

iphydf commented May 6, 2020

https://github.com/TokTok/py-toxcore-c/branches it doesn't seem so. Maybe it will work for new ones, but this one (pull-58) wasn't deleted when the PR was closed.

@iphydf
Copy link

iphydf commented May 6, 2020

TokTok/toxins#20 is another PR that has an associated restyled PR: TokTok/toxins#24. Soon, 20 will be rebased on master, which will resolve the style issues, causing 24 to be closed.

@pbrisbin
Copy link
Member Author

pbrisbin commented May 6, 2020

Yeah, you can see the error here: https://restyled.io/gh/TokTok/repos/c-toxcore/jobs/269151

It seems like the API call with the / in the branch-name is not being handled correctly. I'm not actually sure how you're supposed to craft the API call, so I'll have to do some testing.

@pbrisbin
Copy link
Member Author

pbrisbin commented May 6, 2020

Oh, maybe it's because I'm not prefixing this with heads/. I'll start with some git-diving to see if the pre-regression code did that.

@pbrisbin
Copy link
Member Author

pbrisbin commented May 6, 2020

Yes, that's it:

runGitHub_ $ deleteReferenceR
(pullRequestOwnerName pullRequest)
(pullRequestRepoName pullRequest)
(mkName Proxy $ "heads/" <> branch)

OK, should be (really) fixed soon.

@iphydf
Copy link

iphydf commented May 6, 2020

@restyled-io restyled-io bot deleted the restyled/pull-31 branch 24 seconds ago

Looks good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Archived in project
Development

No branches or pull requests

2 participants