bulk-delete-github-environments
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "bulk-delete-github-environments", | ||
"type": "module", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Bulk delete github environments", | ||
@@ -6,0 +6,0 @@ "author": "Zuplo, Inc.", |
@@ -7,31 +7,9 @@ # Bulk Delete Github Environments | ||
1. Clone this repository: | ||
You will need to create a Github Personal Access Token with the `repo` scope and set it as the `GITHUB_ACCESS_TOKEN` environment variable. As of writing you cannot use Github fine-grained tokens. | ||
```bash | ||
git clone https://github.com/zuplo/zuplo | ||
``` | ||
Set the `GITHUB_ORG` and `GITHUB_REPO` environment variables to the organization and repository you want to delete environments from. | ||
2. Install the dependencies: | ||
```bash | ||
npm install | ||
GITHUB_ACCESS_TOKEN=ghp_****** GITHUB_ORG=my-org GITHUB_REPO=my-repo \ | ||
npx bulk-delete-github-environments@latest | ||
``` | ||
3. Set Environment Variables | ||
Copy the `.env.example` file in this directory to `.env` and fill in the required variables. | ||
You will need to create a Github Personal Access Token with the `repo` scope and set it as the `GITHUB_TOKEN` value. As of writing you cannot use Github fine-grained tokens. | ||
4. Run the script: | ||
```bash | ||
npm start | ||
``` | ||
You should see output like this: | ||
``` | ||
Deleting environment: my-env... | ||
Deleted environment: my-env2... | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58
2633
15