Coder Social home page Coder Social logo

daksheshapkare / hacktoberfest-repo-topic-apply Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hacktoberfest/hacktoberfest-repo-topic-apply

0.0 0.0 0.0 63 KB

Cmd line tool to add a topic to your github repo, defaults to hacktoberfest

License: Apache License 2.0

Go 100.00%

hacktoberfest-repo-topic-apply's 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

hacktoberfest-repo-topic-apply's People

Contributors

masonegger avatar andrewsomething avatar halkeye avatar pedrecal avatar daksheshapkare avatar hugovk avatar dragoneena12 avatar mariuskimmina avatar schweikart avatar bastelfreak avatar itsmeow avatar lclc98 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.