#[non_exhaustive]pub enum ForgeEventKind {
RepoCreated {
repo: Resource,
forge_id: u64,
},
RepoDeleted {
repo: Resource,
forge_id: u64,
},
RepoRenamed {
forge_id: u64,
from: Resource,
to: Resource,
},
RepoTransferred {
forge_id: u64,
from_namespace: Option<Resource>,
to: Resource,
},
RepoArchived {
repo: Resource,
forge_id: u64,
archived: bool,
},
RepoVisibilityChanged {
repo: Resource,
forge_id: u64,
visibility: Visibility,
},
CollaboratorChanged {
repo: Resource,
forge_id: u64,
account: ForgeAccount,
change: MemberChange,
},
OrgMembershipChanged {
namespace: Resource,
account: ForgeAccount,
change: MemberChange,
},
TeamMembershipChanged {
namespace: Resource,
team: String,
account: ForgeAccount,
change: MemberChange,
},
ProtectionChanged {
repo: Option<Resource>,
namespace: Resource,
action: String,
},
PullRequestOpened {
repo: Resource,
forge_id: u64,
number: u64,
reopened: bool,
author: ForgeAccount,
actor: ForgeAccount,
draft: Option<bool>,
from_fork: Option<bool>,
},
InstallationChanged {
namespace: Resource,
installation_id: u64,
change: InstallationChange,
},
}Expand description
What a ForgeEvent reports.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RepoCreated
A repository appeared — through the bridge or not (§5.6 unmanaged).
RepoDeleted
A repository was deleted.
RepoRenamed
A repository was renamed within its owner.
Fields
RepoTransferred
A repository moved to another owner.
Fields
RepoArchived
Archived or unarchived.
RepoVisibilityChanged
Visibility changed.
Fields
visibility: VisibilityThe new visibility.
CollaboratorChanged
A direct collaborator was added, removed or changed.
OrgMembershipChanged
Someone joined or left the organisation.
TeamMembershipChanged
Someone joined or left a team in the organisation. Distinct from
ForgeEventKind::OrgMembershipChanged: leaving a team does not mean
leaving the organisation.
ProtectionChanged
Branch protection or a ruleset changed. Always worth an inspect:
a weakened rule is the drift that silently removes the guarantee.
Fields
PullRequestOpened
A pull request was opened on a repository, or a closed, unmerged one
was reopened (git-ns/bridge/event 0.4 pullRequestOpened). Only
who and where: never its title, body, branches or contents.
Fields
Who opened the pull request.
actor: ForgeAccountWho performed this action, as the forge records it: the author for an opening, whoever reopened it for a reopen.
InstallationChanged
The automation installation on a namespace changed.