Closed pietroalbini closed 5 years ago
I'd be interested in adding this, any tips for where to start?
Thanks for your interest!
The message is sent after the report is generated, so you need to add a line there showing the number of regressed crates. In order to do that, the easiest way is to return the res
variable from the reports::gen
function, and iterate over it to count the number of regressed crates.
If you have any trouble feel free to ask here or on the #crater
channel on the Rust Discord (I won't be online a lot this weekend though).
I've added what I think needs to be added but I'm having a little bit of trouble getting the crater bot setup.
When trying to run the agent I get Invalid authorization token provided
.
If I have a bot account with the username crater-test-bot
and an access token 12345
, what should the config and run command look like?
You need to put your bot's API token in the api-token
field of tokens.toml
(along with the secret you used in the GitHub webhook in webhooks-secret
). Please join Discord if you have more trouble though!
Hi @zacps! Has there been any progress on this? Do you need some help?
Sorry, I've just gotten pretty busy as it's getting around to exam season here. If anyone else wants to pick this up they can go ahead.
I will give this a try
Mentoring instructions
When craterbot sends the GitHub message announcing to the world an experiment is completed, it should also include some stats from the run, for example the number of regressions.