Skip to content

Remove your reaction from all issues in a repository

Notifications You must be signed in to change notification settings

m-czernek/react-rm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-rm

This program serves as a small command-line utility to remove all reactions from any issue in a given repository.

Prerequisites

Github API Token

This program uses the Github personal access token for authorization and authentication.

To create a new Github Token, follow the GitHub documentation.

This application requires the repo access.

Image of repository settings

Configuration file

The program expects a configuration file. See the example github-cli.

Copy this configuration file into the default ~/.config location:

cp docs/github-cli.yml ~/.config/

Alternatively, you can use any other location on the system. The program uses the -c flag for passing a configuration file path, e.g.:

react-rm -c github-cli

Edit the configuration file with your values.

Installation

Ensure you have:

  1. Generated your API token
  2. Copied the github-cli.yml file to ~/.config

To install react-rm:

  1. Download the latest binary: macOS or Linux
  2. Make the binary executable: chmod +x ~/Downloads/react-rm_linux
  3. Copy the binary to $PATH, for example: sudo cp ~/Downloads/react-rm_linux /usr/local/bin/react-rm

You can now execute react-rm:

$ react-rm -h
Usage of react-rm:
  -c string
    	A path to the YAML configuration file (default: /home/mczernek/.config/github-cli.yml)
  -l	List people with more than 3 votes
$ react-rm -l
Removed 0 issue reactions from repo RedHatTraining/appdev

User john-doe-gh has 9 reactions in the repo

Building

To build the Go binary, execute:

make

To cross-compile for Linux and macOS, execute:

make build-all

Binaries are saved into the bin directory

Executing

To execute the program, execute:

make run

About

Remove your reaction from all issues in a repository

Resources

Stars

Watchers

Forks

Packages

No packages published