From a33a1ba213e1a581579ac44bacd7fa0c9e8c3b37 Mon Sep 17 00:00:00 2001 From: Patrick Ellis Date: Fri, 24 Sep 2021 12:57:38 -0400 Subject: [PATCH 1/2] Add a new column: "Acion items from last retro" This came up in our last retro. https://github.com/github/c2c-actions-runtime/projects/96#card-69464255 --- src/retro.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/retro.ts b/src/retro.ts index b208b03..fa53eb2 100644 --- a/src/retro.ts +++ b/src/retro.ts @@ -153,7 +153,7 @@ async function createBoard( return '' } - const columnNames = ['Action items!', 'Shoutouts', 'Could be better', 'Good'] + const columnNames = ['Action items!', 'Shoutouts', 'Could be better', 'Good', 'Action items from last retro'] for (const name of columnNames) { client.projects.createColumn({ project_id: project.data.id, From 30efe9e02fd8ccc8cdbd619a167e11666f79e51b Mon Sep 17 00:00:00 2001 From: Patrick Ellis Date: Fri, 24 Sep 2021 13:37:00 -0400 Subject: [PATCH 2/2] Serialize column addition (order matters now) --- src/retro.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/retro.ts b/src/retro.ts index fa53eb2..784d206 100644 --- a/src/retro.ts +++ b/src/retro.ts @@ -153,9 +153,9 @@ async function createBoard( return '' } - const columnNames = ['Action items!', 'Shoutouts', 'Could be better', 'Good', 'Action items from last retro'] + const columnNames = ['Action items from last retro', 'Shoutouts', 'Could be better', 'Good', 'Action items!'] for (const name of columnNames) { - client.projects.createColumn({ + await client.projects.createColumn({ project_id: project.data.id, name })