diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-01 11:56:49 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-01 11:58:34 +0000 |
| commit | 7a78815e29b01c83f3d0ec195ba717a2eba8cd37 (patch) | |
| tree | 4c5ccd9b812f1d1d75ed218501192ddc5459fd12 /src/nostr/events.rs | |
| parent | e6ceab90de1acad154624022a6036efac18abab6 (diff) | |
reject push when refs/nostr/<event-id> doesnt match known event and delete incorrect ref on event receive
Diffstat (limited to 'src/nostr/events.rs')
| -rw-r--r-- | src/nostr/events.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nostr/events.rs b/src/nostr/events.rs index 97688b1..6a62ccd 100644 --- a/src/nostr/events.rs +++ b/src/nostr/events.rs | |||
| @@ -15,6 +15,12 @@ pub const KIND_REPOSITORY_ANNOUNCEMENT: u16 = 30617; | |||
| 15 | /// NIP-34 Repository State Announcement (kind 30618) | 15 | /// NIP-34 Repository State Announcement (kind 30618) |
| 16 | pub const KIND_REPOSITORY_STATE: u16 = 30618; | 16 | pub const KIND_REPOSITORY_STATE: u16 = 30618; |
| 17 | 17 | ||
| 18 | /// NIP-34 Pull Request (kind 1618) - has `c` tag for commit | ||
| 19 | pub const KIND_PR: u16 = 1618; | ||
| 20 | |||
| 21 | /// NIP-34 Pull Request Update (kind 1619) - has `c` tag for commit | ||
| 22 | pub const KIND_PR_UPDATE: u16 = 1619; | ||
| 23 | |||
| 18 | /// Repository announcement details extracted from NIP-34 event | 24 | /// Repository announcement details extracted from NIP-34 event |
| 19 | #[derive(Debug, Clone)] | 25 | #[derive(Debug, Clone)] |
| 20 | pub struct RepositoryAnnouncement { | 26 | pub struct RepositoryAnnouncement { |