diff options
author | iximeow <me@iximeow.net> | 2023-06-25 04:49:33 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-06-25 04:49:33 -0700 |
commit | 59ea3d1f016563079787e5d634156b9e745fd3d0 (patch) | |
tree | b59c2fb87b6b65ff306343d9861f291111f62cec | |
parent | c3155a50f51b6d422d0ee15aa29b84bf7590343e (diff) |
help text when adding a new repo. i keep forgetting the webhook.
-rw-r--r-- | src/ci_ctl.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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 } => { |