Awiteb
f670859b92
chore: Remove the vector parameter from add_{read,write}_relays
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 12:35:26 +00:00
Awiteb
a9b9a7a02a
chore: Remove unused import
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 11:04:58 +00:00
Awiteb
1abb8e3f36
feat: Events and naddrs can starts with nostr:
...
Suggested-by: DanConwayDev <DanConwayDev@protonmail.com >
Fixes: note1jwgfl095vuhduepxxpwhdqme0dnlhawzvcal0xnl0e6d82wx5jys5z92hj
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 10:48:33 +00:00
Awiteb
15d834dc0f
chore: Deduplicate tags
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 08:45:20 +00:00
Awiteb
ea862dac5f
chore: Add a newline after the naddr
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 08:29:36 +00:00
Awiteb
37cf601c01
refactor: Support more than one naddr instead of one
...
This commit supports multiple naddrs for sending issues to and searching
for repositories by extracting the embedded relays, and appending to the
address file instead of overwriting its previous contents. A header has
also been added to the `nostr-address` file to clarify its purpose.
This enhancement accommodates maintainers who distribute issue tracking
across multiple repositories, preventing confusion if the primary
maintainer steps down. Now, issues and patches will reference all
relevant repositories, not just one.
Note that repositories won't automatically include all maintainers'
addresses unless explicitly specified. Maintainers may manage a
repository under a project-specific public key rather than individual
keys. Addresses are only added to issues and patches when explicitly
provided via the command or written to the address file. This prevents
unintended inclusions and ensures clarity.
Suggested-by: DanConwayDev <DanConwayDev@protonmail.com >
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 07:05:13 +00:00
Awiteb
87da5035da
chore(todo): Some tasks
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-24 14:08:25 +00:00
Awiteb
ddea5028ee
feat: Make the relays list optional
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-24 12:30:40 +00:00
Awiteb
de68d61c3f
feat: Enter repository as nip5
...
For example, `4rs.nl/n34` and `_@4rs.nl/n34`
Signed-off-by: Awiteb <a@4rs.nl>
2025-05-24 11:00:37 +00:00
Awiteb
02070c2868
feat: A --quote-to flag to quote the replied to content in the editor
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-24 06:06:32 +00:00
Awiteb
6fdf0dbcf5
feat: Read the nostr-address file in reply command
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-23 13:38:21 +00:00
Awiteb
15c0eaa5dc
chore: Make commands module
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-23 13:15:37 +00:00
Awiteb
226909ef16
feat: Read the nostr-address file in issue new command
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-23 12:38:26 +00:00
Awiteb
8ca88804dd
feat: Read the nostr-address file in repo view command
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-23 12:36:48 +00:00
Awiteb
57b48c7368
feat: Add --address-file flag to repo announce command
...
This flag creates a file in the current working directory and writes
the `naddr` into it. This allows n34 and other tools to recognize the
repository address automatically, eliminating the need for manual input
by the user.
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-22 19:17:07 +00:00
Awiteb
06374fe1fc
feat: add --force-id flag to bypass case validation in repo announce
...
The new flag allows users to skip the kebkab case ID check when announcing
repositories.
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-22 08:27:13 +00:00
Awiteb
c5085b3af7
chore: Update the bugs report location
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-21 22:07:24 +00:00
Awiteb
60ad1fe5bb
chore: Improve issue new command code
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-21 21:45:06 +00:00
Awiteb
b3b7ce7a4b
chore(repo-announce): Ensure that the event author is not a duplicate maintainer
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-21 21:45:06 +00:00
Awiteb
9444fc1a8c
feat: New reply command
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-21 21:45:05 +00:00
Awiteb
4298ca5d2d
chore: Use Coordinate instead of Nip19Coordinate in NostrClient::fetch_repo
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-19 20:26:29 +00:00
Awiteb
54f1c7e0e6
feat: Add issue new command
...
Command to create a new issue on a repo
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-08 13:03:09 +00:00
Awiteb
6aac4b7a85
chore: Rename --labels flag of repo announce command to --label
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-08 12:25:06 +00:00
Awiteb
d9f8ce2418
chore: Util to add write relays to a vector
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-07 06:12:17 +00:00
Awiteb
577de41054
chore(repo-announce): Utils to creates the bech32
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-07 06:04:28 +00:00
Awiteb
3857753b7d
chore: Log the event result inside send_event_to function
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-07 05:42:07 +00:00
Awiteb
93c8743dc7
chore: Add the relays for read and write
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-06 12:24:33 +00:00
Awiteb
c0a5e47793
feat(nip13): Support PoW
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-06 11:36:56 +00:00
Awiteb
a56acf5752
chore: Trim the strings in repo announce command
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-06 11:30:27 +00:00
Awiteb
9b4dfb9374
chore: Returns Result public key in CliOptions::pubkey
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-06 11:22:46 +00:00
Awiteb
6fc59bfe59
chore: Send the repo announce to the author relays list
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-06 11:20:41 +00:00
Awiteb
b444aeba0a
feat: Add repo announce command
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-06 08:10:06 +00:00
Awiteb
4dea4785b4
chore: A method to return the public key in CliOptions
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-05 19:56:41 +00:00
Awiteb
4314cebfbb
chore: Take the ownership in the CommandRunner trait
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-05 19:56:41 +00:00
Awiteb
d962732e52
feat: Setup the CLI and create repo view command
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-03 15:58:45 +00:00