This script opens issues on Github given a list of bad publiccode.yml urls.
The list is produced by the developersitalia-backend crawler.
Requires Ruby 2.5.1
Install the dependencies with:
gem install bundler
bundle
Copy .env.sample to .env and fill the appropriate values.
Two scripts are provided:
bin/runner.rb is an infinite loop that runs the main script and then sleeps for a while
bin/main.rb reads the repo list then checks and opens issues
Just exec from the project root:
bin/main.rb
docker build -t publiccode-issueopener .
docker run -it publiccode-issueopener
https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
Required permissions:
public_repo
write:discussion
read:discussion
This list is usually produced by the developersitalia-backend crawler.
To do some tests manually, fill tmp/repos.lst with a list of repos like:
https://raw.githubusercontent.com/gith002/InvalidPubliccode/master/publiccode.yml
https://raw.githubusercontent.com/gith003/publiccode-org3/master/publiccode.yml