Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
feat: If task has 'needs-uat' tag, move to 'In UAT' section on merge …
Browse files Browse the repository at this point in the history
…instead of marking complete (#1)

* feat: If task has 'needs-uat' tag, move to 'In UAT' section on merge instead of marking complete
  • Loading branch information
kpcurai authored Sep 18, 2023
1 parent a2e76ae commit 7a74cf0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
.vscode/
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ async function asanaOperations(asanaPAT, targetSection, taskId, taskComment, mar
}).useAccessToken(asanaPAT);

const task = await client.tasks.findById(taskId);
const tags = task.tags.map((t) => t.name);
if (tags.includes("needs-uat")) {
targetSection = "In UAT";
markComplete = false;
}

if (targetSection) {
task.projects.forEach(async (project) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-asana-action",
"version": "v4.3.0",
"version": "v4.5.0",
"description": "Action to integrate GitHub with Asana",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7a74cf0

Please sign in to comment.