Skip to content

Commit 570885a

Browse files
committed
add debugging
1 parent 029c5ce commit 570885a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ try {
4949
TRIGGER_PHRASE = core.getInput('trigger-phrase'),
5050
TASK_COMMENT = core.getInput('task-comment'),
5151
PULL_REQUEST = github.context.payload.pull_request,
52-
REGEX = new RegExp(
53-
`\\*\\*${TRIGGER_PHRASE}\\*\\* \\[(.*?)\\]\\(https:\\/\\/app.asana.com\\/(\\d+)\\/(?<project>\\d+)\\/(?<task>\\d+).*?\\)`,
54-
'g'
55-
);
52+
REGEX_STRING = `\\*\\*${TRIGGER_PHRASE}\\*\\* \\[(.*?)\\]\\(https:\\/\\/app.asana.com\\/(\\d+)\\/(?<project>\\d+)\\/(?<task>\\d+).*?\\)`,
53+
REGEX = new RegExp(REGEX_STRING,'g');
54+
core.info(`Regex: ${REGEX_STRING}`);
55+
core.info(`pr body: ${PULL_REQUEST.body}`);
5656
let taskComment = null,
5757
targets = TARGETS? JSON.parse(TARGETS) : [],
5858
parseAsanaURL = null;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-asana",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Action to integrate git with asana",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)