#[non_exhaustive]pub enum MergeFallback {
Fail,
InstanceSigningKey,
}Expand description
What to do when the instance cannot restrict merges to fast-forward only (Forgejo before 7, Gitea before 1.22).
Fast-forward-only merges land the PR’s own DID-signed commits unchanged, so no platform key is needed. Without it, every web merge makes a new commit that the check never saw, and the only way that commit passes a later verification is if the instance signs it and its key is exempted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fail
Refuse: the merge-settings step fails with instructions to upgrade.
InstanceSigningKey
Allow instance-made merge commits only, commit the instance’s signing
key (GET /api/v1/signing-key.gpg, fetched when the adapter probes
the instance) as the exempt keyring, and pass exempt-keyring to the
action. The instance must sign merges ([repository.signing]).
Trait Implementations§
Source§impl Clone for MergeFallback
impl Clone for MergeFallback
impl Copy for MergeFallback
Source§impl Debug for MergeFallback
impl Debug for MergeFallback
Source§impl Default for MergeFallback
impl Default for MergeFallback
impl Eq for MergeFallback
Source§impl PartialEq for MergeFallback
impl PartialEq for MergeFallback
impl StructuralPartialEq for MergeFallback
Auto Trait Implementations§
impl Freeze for MergeFallback
impl RefUnwindSafe for MergeFallback
impl Send for MergeFallback
impl Sync for MergeFallback
impl Unpin for MergeFallback
impl UnsafeUnpin for MergeFallback
impl UnwindSafe for MergeFallback
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.