Name no node in the last residuals: asus-zephyrus-g14's denylist, lab's and mosquitto's comments, mesh-issues's help texts, mesh-knowledge's decision fixture and ssh-client's forge-URL fixture (issue 1838)

This commit is contained in:
jochen
2026-10-22 22:36:34 +02:00
parent fab57411c5
commit 170fad2e93
8 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ func checkTarget(kind, target string) (string, error) {
"the scope one of "+strings.Join(conditionScopes, ", ")+", each part of letters, digits and _=/-"
case LinkDelivery:
ok, shape = deliveryID.MatchString(t), "a delivery's id as mesh-delivery names it: the repository as owner/name, @ and twelve "+
"characters of its commit, such as novox/mesh-controller@d2e9dc61590f"
"characters of its commit, such as acme/mesh-controller@d2e9dc61590f"
default:
return "", fmt.Errorf("kind %q is not a kind of link: one of %s", kind, strings.Join(LinkKinds, ", "))
}
@@ -77,7 +77,7 @@ func TestADeliveryLinkTakesEveryIdMeshDeliveryGives(t *testing.T) {
"mesh-controller@0f853e93fa11", // no owner
"acme/mesh-controller", // no commit
"acme/mesh-controller@0f853e93fa11aa", // more than twelve characters of the commit
"Novox/Mesh-Controller@0f853e93fa11", // mesh-delivery lower-cases the repository
"Acme/Mesh-Controller@0f853e93fa11", // mesh-delivery lower-cases the repository
"acme/mesh-controller@0F853E93FA11", // a commit is lower-case hex
"acme/mesh-controller@main", // a branch, not a commit
"acme/mesh/controller@0f853e93fa11", // a repository is owner/name, no deeper
+1 -1
View File
@@ -610,7 +610,7 @@ func Tools(t *Tracker) []stdio.Tool {
Description: "Link an issue to something, or with remove, take a link away. Kinds: duplicates or relates-to " +
"another issue (its number), pull-request (such as mesh-controller#246), decision (a decision record's " +
"number, such as 0275), design (a design document's path), condition (a condition's key) and delivery " +
"(a delivery's id, such as novox/mesh-controller@d2e9dc61590f). Refused: a target not of its kind's shape, an issue that does not exist, a link it " +
"(a delivery's id, such as acme/mesh-controller@d2e9dc61590f). Refused: a target not of its kind's shape, an issue that does not exist, a link it " +
"already has.",
Input: schema([]string{"number", "kind", "target"}, map[string]any{
"number": number("the issue's number"),