Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Opens an issue on repos having an invalid publiccode.yaml file

License

Notifications You must be signed in to change notification settings

italia/old-publiccode-issueopener

Repository files navigation

Publiccode issue opener

This script opens issues on Github given a list of bad publiccode.yml urls.

The list is produced by the developersitalia-backend crawler.

Setup

Requires Ruby 2.5.1

Install the dependencies with:

gem install bundler
bundle

Copy .env.sample to .env and fill the appropriate values.

Running

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

Running inside Docker

docker build -t publiccode-issueopener .
docker run -it publiccode-issueopener

Generating Github Access Token

https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/

Required permissions:

public_repo 
write:discussion
read:discussion 

Repos list

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

About

Opens an issue on repos having an invalid publiccode.yaml file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published