• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

VishalRamesh50/Github-Environment-Cleaner: An interactive script to clean up Git ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

VishalRamesh50/Github-Environment-Cleaner

开源软件地址:

https://github.com/VishalRamesh50/Github-Environment-Cleaner

开源编程语言:

Python 99.6%

开源软件介绍:

Github Environment Cleaner

Github does not have a way to delete environments from their UI so this script does it for you via their API. It can delete specific environments or all of your deployments interactively!

All you need to do is provide the repository name, the respository's owner, and an access token when prompted. You can get the access token by following these instructions. Make sure you give it repo_deployment permissions.

Note: The owner name will be a GitHub username if it is a personal repository and the organization name if the repository lives under an organization.

Getting Started

  1. Clone repository
git clone https://github.com/VishalRamesh50/Github-Environment-Cleaner.git
cd Github-Environment-Cleaner
  1. Install dependencies. Python version 3.6+ is required.
pip3 install -r requirements.txt
  1. Run the interactive script!
python3 delete_environment.py

If you would prefer not to be prompted for an owner, repo name, or access token follow these steps

  1. Copy the .env template to an actual .env file

    cp .env.example .env
  2. Enter whatever values you want inside this file to not be prompted for like this

    OWNER=
    REPO=
    TOKEN=your-github-token



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap