cutenode / good-first-issue

🖥 CLI for finding good first issues
736 stars 123 forks source link

Cleanup branches #142

Closed DanielRuf closed 4 years ago

DanielRuf commented 5 years ago

There are a "few" branches which can be deleted:

https://github.com/cutenode/good-first-issue/branches/all

dhuang612 commented 5 years ago

Hi,

I would like to take this on

DanielRuf commented 5 years ago

@dhuang612 feel free to work on it.

dhuang612 commented 5 years ago

Hey, I've done some research into this and I don't understand how I'm supposed to delete these stale branches. When I run git branch -a I see a giant list of branches

but then when I try to do git branch -d greenkeeper/@octokit/rest-16.20.0 for ex it returns error: branch 'greenkeeper/@octokit/rest-16.20.0' not found.

I was hoping I could get some help on this.

Thanks!

I have also tried various git remote prune --dry-run but they also don't find anything

DanielRuf commented 5 years ago

You can delete with git push -d to delete a remote branch. Or do it in the GitHub UI.

DanielRuf commented 5 years ago

You can do that only with the right org permissions.

dhuang612 commented 5 years ago

I don't believe I have the correct permissions setup for me to delete from the github gui, or to remove stale branches in general?

git push origin --delete greenkeeper/@octokit/rest-16.27.3
remote: Permission to cutenode/good-first-issue.git denied to dhuang612.
fatal: unable to access 'https://github.com/cutenode/good-first-issue.git/': The requested URL returned error: 403
DanielRuf commented 5 years ago

Exactly.

dhuang612 commented 5 years ago

so, I can't complete this?

DanielRuf commented 5 years ago

Exactly, you can not unless you are a collaborator with write permissions.