DanConwayDev on Nostr: this is exactly what I was hoping for. the flow the current git remote helper is ...
this is exactly what I was hoping for. the flow the current git remote helper is expecting is very similar to your video:
* song has a white list of npubs that can create repositories (just sk 79 in this example?)
* create git repo locally: `git init && echo "example" > README.md && git commit -am "initial commit"`
* create git announcement `ngit init --identifier my-repo --relays wss://git.oursong.com/npub123/my-repo --clone
https://git.oursong.com/npub123/my-repo`
* `git remote add origin nostr://npub123/my-repo?relayhint=git.oursong.com | git push -u`
* song will receive the receive the state announcement nostr event which will authorise the push
Published at
2024-08-26 15:20:29Event JSON
{
"id": "57e6e10c2408005f73cdaf87dcbb52cf13674f3888f26d3c60ca848790dbd86f",
"pubkey": "a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d",
"created_at": 1724685629,
"kind": 1,
"tags": [
[
"e",
"61dc9ee6b1a102808bd7c9aa9d909a45d8edfdd5c5386c16fcbccdc3be84fc23",
"wss://nos.lol/",
"root"
],
[
"e",
"90b97e79c0afd5403e0d7c1f92ffaebd0a8188d5afecdcea3617b17d5b85bfec",
"",
"reply"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"",
"mention"
]
],
"content": "this is exactly what I was hoping for. the flow the current git remote helper is expecting is very similar to your video:\n* song has a white list of npubs that can create repositories (just sk 79 in this example?)\n* create git repo locally: `git init \u0026\u0026 echo \"example\" \u003e README.md \u0026\u0026 git commit -am \"initial commit\"`\n* create git announcement `ngit init --identifier my-repo --relays wss://git.oursong.com/npub123/my-repo --clone https://git.oursong.com/npub123/my-repo`\n* `git remote add origin nostr://npub123/my-repo?relayhint=git.oursong.com | git push -u`\n* song will receive the receive the state announcement nostr event which will authorise the push\n",
"sig": "e335eb20e738a72d120e4948c45eacc78ead16960b62bc932d0fd4d3edb9a237937b67f464fcf9eacf4b554bdb3523ec7f32fd675aacd41c45ba7c17e19eb032"
}