mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
NIP-34: optional tags to improve discoverability
earliest-unique-commit r tag enables clients to: - retrieve all repo events refering to a local git repo - group repo events with different identifers that refer to same repo - retrieve all patches for a local repo, irespective of the tagged repo event current-commit-id r tag enables clients to prevent accidental submission of a patch, which has already been proposed root-revision tag enables clients to filter out proposal revisions from a list of proposals
This commit is contained in:
parent
cb0d35a5f9
commit
8225a018c7
9
34.md
9
34.md
|
@ -23,6 +23,8 @@ Git repositories are hosted in Git-enabled servers, but their existence can be a
|
||||||
["web", "<url for browsing>", ...], // a webpage url, if the git server being used provides such a thing
|
["web", "<url for browsing>", ...], // a webpage url, if the git server being used provides such a thing
|
||||||
["clone", "<url for git-cloning>", ...], // a url to be given to `git clone` so anyone can clone it
|
["clone", "<url for git-cloning>", ...], // a url to be given to `git clone` so anyone can clone it
|
||||||
["relays", "<relay-url>", ...] // relays that this repository will monitor for patches and issues
|
["relays", "<relay-url>", ...] // relays that this repository will monitor for patches and issues
|
||||||
|
["earliest-unique-commit", "<commit-id>"] // usually root commit but a recent commit for forks
|
||||||
|
["r", "<earliest-unique-commit-id>"] // so clients can subscribe to all events related to a local git repo
|
||||||
["maintainers", "<other-recognized-maintainer>", ...]
|
["maintainers", "<other-recognized-maintainer>", ...]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -46,17 +48,20 @@ The first patch revision in a patch revision SHOULD include a NIP-10 `e` `reply`
|
||||||
"content": "<patch>", // contents of <git format-patch>
|
"content": "<patch>", // contents of <git format-patch>
|
||||||
"tags": [
|
"tags": [
|
||||||
["a", "30617:<base-repo-owner-pubkey>:<base-repo-id>"],
|
["a", "30617:<base-repo-owner-pubkey>:<base-repo-id>"],
|
||||||
|
["r", "<earliest-unique-commit-id-of-repo>"] // so clients can subscribe to all patches sent to a local git repo
|
||||||
["p", "<repository-owner>"],
|
["p", "<repository-owner>"],
|
||||||
["p", "<other-user>"], // optionally send the patch to another user to bring it to their attention
|
["p", "<other-user>"], // optionally send the patch to another user to bring it to their attention
|
||||||
|
|
||||||
// for the first patch in a thread or series
|
["t", "root"], // ommited for additional patches in a series
|
||||||
["t", "root"],
|
// for the first patch in a revision
|
||||||
|
["t", "root-revision"],
|
||||||
|
|
||||||
// optional tags for when it is desirable that the merged patch has a stable commit id
|
// optional tags for when it is desirable that the merged patch has a stable commit id
|
||||||
// these fields are necessary for ensuring that the commit resulting from applying a patch
|
// these fields are necessary for ensuring that the commit resulting from applying a patch
|
||||||
// has the same id as it had in the proposer's machine -- all these tags can be omitted
|
// has the same id as it had in the proposer's machine -- all these tags can be omitted
|
||||||
// if the maintainer doesn't care about these things
|
// if the maintainer doesn't care about these things
|
||||||
["commit", "<current-commit-id>"],
|
["commit", "<current-commit-id>"],
|
||||||
|
["r", "<current-commit-id>"] // so clients can find existing patches for a specific commit
|
||||||
["parent-commit", "<parent-commit-id>"],
|
["parent-commit", "<parent-commit-id>"],
|
||||||
["commit-pgp-sig", "-----BEGIN PGP SIGNATURE-----..."], // empty string for unsigned commit
|
["commit-pgp-sig", "-----BEGIN PGP SIGNATURE-----..."], // empty string for unsigned commit
|
||||||
["committer", "<name>", "<email>", "<timestamp>", "<timezone offset in minutes>"],
|
["committer", "<name>", "<email>", "<timestamp>", "<timezone offset in minutes>"],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user