From 603f1911a9dd8ae49ec7aec1c84eb7fc5c0e2f55 Mon Sep 17 00:00:00 2001 From: Gary R Krause Date: Sun, 5 Feb 2023 16:50:40 -0500 Subject: [PATCH] Add line number tag --- draft.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/draft.md b/draft.md index 4fe9179..ec16b4e 100644 --- a/draft.md +++ b/draft.md @@ -6,7 +6,7 @@ Source Control Context `draft` `optional` `author:garyKrause_` -This NIP defines ways source control (git, etc.) context can be stored using nostr. Git is already decentralized, but the contexts around a git repository are largely centralized (PR comments, issue tracking, releases, etc). With the correct approach a nostr relay could store this context using many of the existing NIPs. This NIP defines a new kind, `kind: ??`, to represent a source control repository. This NIP purposely does not indicate git as a requirement but many of the concepts will be based around git methods of source control. The author hopes that the NIP is flexible enough to accomodate other source control methodologies. +This NIP defines ways source control (git, etc.) context can be stored using nostr. Git is already decentralized, but the contexts around a git repository are largely centralized (PR comments, issue tracking, releases, etc). With the correct approach a nostr relay could store this context using many of the existing NIPs. This NIP defines a new kind, `kind: ??`, to represent a source control repository. This NIP purposely does not indicate git as a requirement but many of the concepts will be based around git methods of source control. The author hopes that the NIP is flexible enough to accommodate other source control methodologies. ## Definition of a Source Control Event @@ -29,7 +29,7 @@ A relay MAY host the repository along side it's nostr database which can be disc ### Merge Requests -A source control event MAY contain an `m` tag indicating the event is specific to a merge request. If present, the `m` tag SHALL define the branch being merged into and the branch being merged in. An event MAY include the URL of the repository being merged from. This could be included when the URL being merged from is not in the `b` tag of the event or for specificity. When creating a merge request, the `content` field MAY contain a justification/explanation for the merge +A source control event MAY contain an `m` tag indicating the event is specific to a merge request. If present, the `m` tag SHALL define the branch being merged into and the branch being merged in. An event MAY include the URL of the repository being merged from. This could be included when the URL being merged from is not in the `b` tag of the event or for specificity. When creating a merge request, the `content` field MAY contain a justification/explanation for the merge. The `l` tag MAY be included with an `m` tag. The `l` tag specifies the relative file path and line number that the event is referencing. ```json { @@ -38,6 +38,7 @@ A source control event MAY contain an `m` tag indicating the event is specific t "tags": [ ["b", , , ...], ["m": , , ], + ["l": , ] ], "content": , ...