Awiteb
1d83e445a4
deps: Upgrade to nostr@0.43.0
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-08-03 15:24:05 +00:00
Awiteb
8bb4cf0da4
refactor: Move root and root-revision to constants
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-08-03 15:24:05 +00:00
Awiteb
67e25da8c0
feat: New flag to patch apply and merge to mention patches
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-08-03 15:24:04 +00:00
Awiteb
03d5c8020e
feat: Keyring the secret key n34 config keyring --enable
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-07-27 00:55:53 +00:00
Awiteb
4e0ecdceaf
feat: Support signing using NIP-46 bunker
...
Suggested-by: DanConwayDev <DanConwayDev@protonmail.com >
Signed-off-by: Awiteb <a@4rs.nl >
2025-07-18 21:43:50 +00:00
Awiteb
9e840be820
chore: Use new stabilized let-chains feature
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-07-05 09:34:32 +00:00
Awiteb
3510b59fbb
feat: Improve exit codes and make them more specific
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-07-04 10:50:24 +00:00
Awiteb
387dd32a37
feat: New patch list commands to list the repo patches
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-07-02 22:07:03 +00:00
Awiteb
9e1e5d7c42
chore: Inline small functions
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-07-01 15:20:30 +00:00
Awiteb
7e479f3c7a
chore: issues utils
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-07-01 15:07:04 +00:00
DanConwayDev
7c589f1c6c
fix: spelling in help content
...
reposotoies ~> repositories
2025-06-30 12:10:26 +00:00
Awiteb
2874ba8457
remove: Remove --euc flag from patch send command and use the repo euc
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-30 11:17:05 +00:00
Awiteb
8b09cff5e3
feat: New patch subcommands apply,close,draft,merge and reopen to manage the patch status
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-28 13:47:31 +00:00
Awiteb
043ef6fc96
chore: Add the repository to authorized issue status users
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-24 11:40:48 +00:00
Awiteb
54cae48123
chroe: Check if the naddrs exists for issue new and patch send
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-14 10:46:55 +00:00
Awiteb
1651fd5a47
fix: Not to return an error if nostr-address file does not exist
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-14 10:45:00 +00:00
Awiteb
ec08a1febc
chore: Improve maintainers handling
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-14 10:36:01 +00:00
Awiteb
a9a2cb2b16
feat: New issue {reopen,close,resolve} commands to manage issue status
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-14 09:38:00 +00:00
Awiteb
364356a573
feat: New patch fetch command to fetch patches
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-10 16:23:08 +00:00
Awiteb
2a3e2e09c0
chore: Improve single letter tags
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-10 08:53:22 +00:00
Awiteb
8870f8ced3
chore: Fix a typo
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-10 08:41:36 +00:00
Awiteb
da96985a40
feat: New issue view command to view an issue
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-09 22:09:55 +00:00
Awiteb
76b76bc8d6
chore(nostr_utils): Move the username logic to the utils
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-09 21:12:17 +00:00
Awiteb
983d2f209d
chore(NostrClient): Limit the events to 1 in fetch_event function
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-09 10:29:17 +00:00
Awiteb
9069adbe22
chore: Add the signer to the client if found
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-08 20:35:49 +00:00
Awiteb
494cced9cb
feat: Add alt tag to the git issue
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-04 22:05:21 +00:00
Awiteb
ef8d6c1c4f
feat: New patch send command to send patches
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-04 12:45:36 +00:00
Awiteb
4c6578ccb1
feat: Support relays and naddrs sets
...
This commit introduces support for 'sets', a feature that simplifies
referencing multiple relays or naddrs with a single word.
Sets are stored in the config directory under `n34` as `config.toml` in
`TOML` format. The config path follows the `$XDG_CONFIG_HOME` standard,
defaulting to `$HOME/.config` if unset.
The `n34 sets` command allows managing sets, adding, removing, updating,
or displaying them. When using the main `--relays` flag, a set name can
be provided to automatically expand its relays (an error occurs if the
set contains no relays). Similarly, any command accepting naddrs can
reference a set to extract its naddrs.
Sets can also be merged by updating a set while specifying another
set in `--repo` merges their naddrs, while `--set-relays` merges their
relays. Removal follows the same pattern.
Signed-off-by: Awiteb <a@4rs.nl >
2025-06-01 12:12:09 +00:00
Awiteb
24e8522268
chore: Move the write relays definition to the end of the commands
...
To make it clear, we can review exactly what was collected instead of
having it spread throughout the body of the command.
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 19:20:42 +00:00
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
bca86f115f
perf(NostrClient::send_event_to): Join the event sending
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 12:00:10 +00:00
Awiteb
15d834dc0f
chore: Deduplicate tags
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 08:45:20 +00:00
Awiteb
55a4868813
fix(utils-repo_naddr): Create a valid naddr string
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-27 08:29:13 +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
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
55f9b9194e
chore: Utils to work with the nostr-address file
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-22 20:45:01 +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
a137a3f9de
chore: Rename nostr::nips::nip22::Comment to CommentTarget
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-21 21:45:06 +00:00
Awiteb
a324ba2ff7
chore: Add comments helper functions
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-21 21:45:05 +00:00
Awiteb
074245733e
chore(nostr): A util to get the content from a string or editor
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-21 21:45:05 +00:00
Awiteb
661266c67b
chore(nostr): A function to add user read relays to a vector
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-21 21:45:05 +00:00
Awiteb
a9b088d8a5
chore(NostrClient-add_relays): If the relays is empty do nothing
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-21 21:44:51 +00:00
Awiteb
1af731ef67
chore: Improve event fetchers functions
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-19 20:26:29 +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
70ee4a59b2
perf: Connect to relays in a separate task
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-08 14:25:09 +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
2627fe7980
chore: Function to returns the event author if found
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-08 13:01:20 +00:00
Awiteb
42508fc8b9
chore: Returns the relays that successfully received the event on NostrClient::send_event_to
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-08 13:01:05 +00:00
Awiteb
d9fe376746
chore: Sort the relays then take 3 from them
...
Signed-off-by: Awiteb <a@4rs.nl >
2025-05-07 20:20:36 +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