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

Hacktoberfest/hacktoberfest-repo-topic-apply: Cmd line tool to add a topic to yo ...

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

开源软件名称(OpenSource Name):

Hacktoberfest/hacktoberfest-repo-topic-apply

开源软件地址(OpenSource Url):

https://github.com/Hacktoberfest/hacktoberfest-repo-topic-apply

开源编程语言(OpenSource Language):

Go 100.0%

开源软件介绍(OpenSource Introduction):

hfest-repo command line tool

hfest is a tool that adds the hacktoberfest topic to every public repository associated with a user or a GitHub org. It can also create the invalid, spam and hacktoberfest-accepted labels in your repos.

Installation

  1. Download the latest release from the releases page.
  2. Either move the binary to /usr/local/bin or run it locally.

Create an Access Token

You will need an access token to perform these actions on your repositories. Follow the instructions for creating a personal access token on GitHub and be sure to give it repo access. If you are using GitLab instead, follow these instructions for creating a personal access token on GitLab instead.

Usage

To use hfest-repo, run:

hfest-repo -t <TOKEN> 

If you don't specify your GitHub token, the tool will look for an environment variable named ACCESS_TOKEN.

To use GitLab instead of GitHub

hfest-repo -vcs Gitlab -t <TOKEN> 

if you don't specify your version control system, Github or Gitlab, it will default to Github.

The "Default Hacktoberfest run this on my stuff in GitHub" command

hfest-repo -t <TOKEN> -u <USER> --labels

The "Default Hacktoberfest run this on my stuff in GitLab" command

hfest-repo --vcs Gitlab -t <TOKEN> -u <USER> --labels

The "Default Hacktoberfest run this on my stuff" command, but run as a dry run for validation

hfest-repo -t <TOKEN> -u <USER> --labels --dry-run

Add Hacktoberfest topic to a user's repos

hfest-repo -t <TOKEN> -u <USER>

Add Hacktoberfest topic to an organization's (or group's if on Gitlab) repos

hfest-repo -t <TOKEN> -o <ORG>

Add Hacktoberfest topic to a user's repos and add labels

hfest-repo -t <TOKEN> -u <USER> --labels

Add Hacktoberfest topic to an organization's repos and add labels

hfest-repo -t <TOKEN> -o <ORG> --labels

Remove Hacktoberfest topic from a user/org

hfest-repo -t <TOKEN> -u <USER>/-o <ORG> --remove

Remove Hacktoberfest topic from a user/org

hfest-repo -t <TOKEN> -u <USER>/-o <ORG> --remove

Remove Hacktoberfest topic and labels from a user/org

hfest-repo -t <TOKEN> -u <USER>/-o <ORG> --labels --remove

Add an arbitrary topic to a user's/organization's repos instead of the hacktoberfest topic

hfest-repo -t <TOKEN> -u <USER>/-o <ORG> -p fun

Add Hacktoberfest topic to a user's repos including private and forks

hfest-repo -t <TOKEN> -u <USER> --include-forkes --include-private

Supported Options

usage: hfest-repo [<flags>]

Flags:
      --help                   Show context-sensitive help (also try --help-long and --help-man).
  -V, --vcs="Github"           GitHub or GitLab, defaults to GitHub
  -t, --access-token=ACCESS-TOKEN  
                               GitHub or GitLab API Token - if unset, attempts to use this tool's stored token of its current default context. env var: ACCESS_TOKEN
  -u, --user=USER           Github or Gitlab user to fetch repos of
  -o, --org=ORG             Github org or Gitlab group to fetch repos of
  -p, --topic="hacktoberfest"  topic to add to repos
  -r, --remove                 Remove topic and labels from all repos. Include -l to
                               remove labels
  -l, --labels                 Add spam, invalid, and hacktoberfest-accepted labels to repo
      --include-forks          Include forks
      --include-private        Include private repos
  -d, --dry-run                Show more or less what will be done without doing anything




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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