From 4ed919a9ef9d99b5607f705c55e7d697afabd233 Mon Sep 17 00:00:00 2001 From: Diego Figueroa Date: Fri, 8 Dec 2023 18:21:20 -0400 Subject: [PATCH] feat: add tags for signers --- src/core/multisigs-collector.ts | 1 + src/types.ts | 1 + templates/backstage/multisigs.md.hbs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/multisigs-collector.ts b/src/core/multisigs-collector.ts index 1aee6f6..0110970 100644 --- a/src/core/multisigs-collector.ts +++ b/src/core/multisigs-collector.ts @@ -115,6 +115,7 @@ export class MultisigsCollector extends BaseCollector { return { signer, owner, + tags: signer.metadata.tags?.join(", ") || "None", }; }) .sort((a, b) => diff --git a/src/types.ts b/src/types.ts index 4e6f79d..4bd9c94 100644 --- a/src/types.ts +++ b/src/types.ts @@ -58,6 +58,7 @@ export type KeyInfo = OwnedEntity<{ export type SignerInfo = OwnedEntity<{ signer: Entity; keys?: Entity[]; + tags?: string; }>; type OwnedEntity = { diff --git a/templates/backstage/multisigs.md.hbs b/templates/backstage/multisigs.md.hbs index dc4bdb6..5ab38df 100644 --- a/templates/backstage/multisigs.md.hbs +++ b/templates/backstage/multisigs.md.hbs @@ -38,7 +38,7 @@ ##### Signers {{#each signers~}} - - [{{owner.metadata.name}}]({{backstageLink owner}}) ([{{signer.metadata.name}}]({{backstageLink signer}})) + - [{{owner.metadata.name}}]({{backstageLink owner}}) ([{{signer.metadata.name}}]({{backstageLink signer}})) (Tags: {{tags}}) {{/each}} {{/if}}