1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
use crate::{git::Commit, BranchName, ForgeAlias, RepoAlias};

#[derive(Clone, Debug, PartialEq, Eq)]
pub enum UserNotification {
    CICheckFailed {
        forge_alias: ForgeAlias,
        repo_alias: RepoAlias,
        commit: Commit,
    },
    RepoConfigLoadFailure {
        forge_alias: ForgeAlias,
        repo_alias: RepoAlias,
        reason: String,
    },
    WebhookRegistration {
        forge_alias: ForgeAlias,
        repo_alias: RepoAlias,
        reason: String,
    },
    DevNotBasedOnMain {
        forge_alias: ForgeAlias,
        repo_alias: RepoAlias,
        dev_branch: BranchName,
        main_branch: BranchName,
    },
}