The Repository announcement does not exist yet, the cli should suggest me to create it.

Reply to this note

Please Login to reply.

Discussion

In what scenario? if you try to push to the nostr url? How would it know if you were the maintainer or just someone who adding a nostr url but made a mistake with npub / identifer / relay hints? Should it detect if the current git user name and email match any of the recent commits?

I thought about having a prompt when this error occurred but if the user is running a gui, they wouldn't see the prompt and the process wouldn't end.

I've therefore changed the error message to:

> no repo announcement event found at specified coordinates. consider running `ngit init` to create one if you are the repository maintainer

Another approach could be to issue a prompt with a timeout so the process would fail but for now I think this error message is clear enough and its not much of a lift to ask the user to run the `ngit init` command.