minutes_to_gh

A tool for linking github issues to minutes where they were discussed

OTHER License

Stars
1

Minutes to GitHub

Yet another tool to link GitHub issues to W3C minutes where they were discussed.

It is available in two flavours:

  • an IRC bot that can be invoked right after the minutes have been generated, and
  • a command line tool that can add links to minutes generated in the past.

How it works

This program fetches the minutes of a meeting (an HTML file), find all mention to GitHub issues or pull requests, and post a comment to each of them, containing a link to the (sub)section where this issue/pull request was mentioned, as well as, optionally, a copy of that section (converted to markdown).

Note that the program will not add a comment if it finds one already containing the same link, so it should be safe to run it several times.

Quick start

Before you start, you need to create a GitHub token that will enable the program to post comments on GitHub on your behalf.

Run the IRC bot with Docker

# prepare the Docker image (required only once)
docker build -t minutes_to_gh .
# run the IRC bot
docker run --rm --init -it minutes_to_gh --token $GITHUB_TOKEN irc-bot --username $YOUR_USERNAME

This will run an IRC bot named m2gbot that will connect to irc.w3.org. You can then invite it to any channel, and invoke it after the minutes have been generated, with

m2gbot, link issues to minutes

This will process the minutes generated on the current day for the current IRC channel.

To see more available options, run:

docker run --rm -it minutes_to_gh help irc-bot

Run the IRC bot with Cargo

cargo run -- --token $GITHUB_TOKEN irc-bot --username $YOUR_USERNAME

Manual mode

For creating GitHub comments for older minutes, it is possible to use this program in "manual" mode. The basic options are as follow:

docker run --rm -it minutes_to_gh --token $GITHUB_TOKEN manual --channel $IRC_CHANNEL --date $DATE

or

cargo run -- --token $GITHUB_TOKEN manual --channel $IRC_CHANNEL --date $DATE

where $DATE is formatted as YYYY-MM-DD. This will process the minutes generated on the current day for the current IRC channel.

To see more available options, run

docker run --rm -it minutes_to_gh help manual

or

cargo run -- help manual

IRC bot commands

The IRC bot supports the following commands (always preceded by "<nickname>, ").

Alternatives (with their cons)