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

Commit

Permalink
Fix bug with null pr body
Browse files Browse the repository at this point in the history
also tried to get tests running. but no joy
  • Loading branch information
Ian1971 committed Jan 27, 2022
1 parent 9bb8ba3 commit 5fa052d
Show file tree
Hide file tree
Showing 6 changed files with 4,735 additions and 631 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.code-workspace
**node_modules
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest Tests",
"program": "${workspaceRoot}\\node_modules\\jest\\bin\\jest.js",
"args": [
"-i"
],
//"preLaunchTask": "build",
"internalConsoleOptions": "openOnSessionStart",
"outFiles": [
"${workspaceRoot}/dist/**/*"
],
"envFile": "${workspaceRoot}/.env"
}
]
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const extractTrelloCardIds = async (pr, stopOnNonLink = false) => {
const cardIds = [];

//check pr body
const prBody = pr.body;
const prBody = pr.body ?? '';
core.debug(`prBody: ${util.inspect(prBody)}`);

extractCardIdsFromText(prBody,cardIds, stopOnNonLink);
Expand Down
Loading

0 comments on commit 5fa052d

Please sign in to comment.