This program serves as a small command-line utility to remove all reactions from any issue in a given repository.
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.
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.
Ensure you have:
- Generated your API token
- Copied the
github-cli.yml
file to~/.config
To install react-rm:
- Download the latest binary: macOS or Linux
- Make the binary executable:
chmod +x ~/Downloads/react-rm_linux
- 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
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
To execute the program, execute:
make run