From 401e60b98d94bc1f51dbd4b6083e92642a36efda Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 2 Feb 2024 03:11:31 +0000 Subject: feat(repo_ref)!: align maintainers tag to nip34 style nip34 specifies that repo event tags with multiple values wuch as "relays" and "web" use theformat: `["tag", "item", "item"...]` instead of: ``` ["tag", "item"], ["tag", "item"], ``` this update also adds clarity. it is not obvious that using a p tag is intended to make the pubkey a co-maintainer. BREAKING CHANGE: format of maintainers tags in repo events has changed to reflect nip34 style and ngit will not detect the old format --- test_utils/src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test_utils/src/lib.rs') diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 9996008..8788211 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -164,8 +164,13 @@ pub fn generate_repo_ref_event() -> nostr::Event { "ws://localhost:8056".to_string(), ], ), - Tag::public_key(TEST_KEY_1_KEYS.public_key()), - Tag::public_key(TEST_KEY_2_KEYS.public_key()), + Tag::Generic( + nostr::TagKind::Custom("maintainers".to_string()), + vec![ + TEST_KEY_1_KEYS.public_key().to_string(), + TEST_KEY_2_KEYS.public_key().to_string(), + ], + ), ], ) .to_event(&TEST_KEY_1_KEYS) -- cgit v1.2.3