From 59ea3d1f016563079787e5d634156b9e745fd3d0 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 25 Jun 2023 04:49:33 -0700 Subject: help text when adding a new repo. i keep forgetting the webhook. --- src/ci_ctl.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ci_ctl.rs b/src/ci_ctl.rs index f6c55be..6abb829 100644 --- a/src/ci_ctl.rs +++ b/src/ci_ctl.rs @@ -160,6 +160,13 @@ fn main() { }; db.new_remote(repo_id, remote.as_str(), remote_kind.as_str(), config_path.as_str()).unwrap(); println!("[+] new remote created: repo '{}', {} remote at {}", &name, remote_kind, remote); + match remote_kind.as_str() { + "github" => { + println!("[!] now go make sure your github repo has a webhook set for `https://ci.butactuallyin.space/{}` to receive at least the `push` event.", remote.as_str()); + println!(" the secret sent with calls to this webhook should be the same preshared secret as the CI server is configured to know."); + } + _ => { } + } } }, AddItem::Remote { repo_name, remote, remote_kind, config } => { -- cgit v1.1