Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/politician/bulkrepos
Bulk publicize, privatize, clone and delete repos for a personal Github account or an organization
https://github.com/politician/bulkrepos
Last synced: 3 months ago
JSON representation
Bulk publicize, privatize, clone and delete repos for a personal Github account or an organization
- Host: GitHub
- URL: https://github.com/politician/bulkrepos
- Owner: politician
- License: mit
- Created: 2019-11-07T17:44:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:58:01.000Z (about 1 year ago)
- Last Synced: 2024-08-01T02:33:38.602Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bulk Repos
Bulk publicize, privatize, clone and delete repos for a personal Github account or an organization
![Screenshot](https://user-images.githubusercontent.com/3155568/68415503-19210180-01c5-11ea-96ba-b5a99eb452ac.png)
## Install
```sh
git clone https://github.com/iRomain/bulkrepos.git
cd bulkrepos
npm install
```## Configure
1. [Create a GitHub token](https://github.com/settings/tokens/new?scopes=delete_repo,repo&description=Bulk%20Repos)
2. Edit `ìndex.js`
```js
const config = {
token: 'YOUR-TOKEN', // Your GitHub token
account: 'YOUR-ORG-OR-ACCOUNT', // You can specify a personal account or an org account
isOrg: false, // if the provided account is a Github Organization, set this to true
setAllPublic: false, // Set all repos to public
setAllPrivate: false, // Set all repos to private
cloneAll: true, // Clone all repos locally (a subfolder will be created in the current directory)
deleteAll: false // Delete all repos from the specified GitHub account
}
```> If your account is over the quota limit for private repos, you should set `setAllPublic` to `true` as Github may disable cloning private repos. They will be public just enoigh time to be cloned before being deleted.
## Run
```sh
node index.js
```