Send nostr note when PR is merged #1677
Open
+346
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes the configuration and necessary scripts for a GitHub Action that posts a note on Nostr when a PR is merged. The note will include the user who created the PR (being mentioned with their Nostr pubkey if one is configured in the "socials" section of their profile), the title of the PR, and a link to it
For the execution to work correctly, the following variables and secrets need to be set in the repository:
NOSTR_RELAYS
: Environment variable with a list of relays where the note will be sent, separated by commas. For example:wss://nos.lol,wss://relay.damus.io
NOSTR_PRIVATE_KEY
: Secret containing the private key in hexadecimal format that will be used to publish the note.I must mention @laanwj , whose code from their ghi repository I partially used for the scripts.