Skip to content

Commit 8e3b666

Browse files
Handle new Asana URL structure
1 parent c4d0c3a commit 8e3b666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function action() {
6262
ACTION = core.getInput('action', {required: true}),
6363
TRIGGER_PHRASE = core.getInput('trigger-phrase') || '',
6464
PULL_REQUEST = github.context.payload.pull_request,
65-
REGEX_STRING = `${TRIGGER_PHRASE}(?:\s*)https:\\/\\/app.asana.com\\/(\\d+)\\/(?<project>\\d+)\\/(?<task>\\d+)`,
65+
REGEX_STRING = `${TRIGGER_PHRASE}(?:\s*)https:\\/\\/app.asana.com\\/\\d\\/\\d+\\/project\\/(?<project>\\d+)\\/task\\/(?<task>\\d+)`,
6666
REGEX = new RegExp(REGEX_STRING,'g')
6767
;
6868

@@ -172,4 +172,4 @@ module.exports = {
172172
action,
173173
default: action,
174174
buildClient: buildClient
175-
};
175+
};

0 commit comments

Comments
 (0)