Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
ukupat committed Jul 10, 2021
1 parent 4549492 commit 217de69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8936,7 +8936,7 @@ const trelloListNamePullRequestOpen = core.getInput('trello-list-name-pr-open',
const trelloListNamePullRequestClosed = core.getInput('trello-list-name-pr-closed', { required: false })

function getCardId(prBody) {
console.log('Searching for card id', prBody)
console.log('Searching for card id')

const linkRegex = /^\s*(https\:\/\/trello\.com\/c\/(\w+)(\/\S*)?)?\s*$/
const lines = prBody.split('\r\n')
Expand Down Expand Up @@ -9017,7 +9017,7 @@ async function moveCardToList(board, card, list) {

async function run(data) {
const url = data.html_url || data.url
const card = getCardId(trelloBoardId, data.body)
const card = getCardId(data.body)

if (card && card.length > 0) {
console.log('Found card id', card)
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const trelloListNamePullRequestOpen = core.getInput('trello-list-name-pr-open',
const trelloListNamePullRequestClosed = core.getInput('trello-list-name-pr-closed', { required: false })

function getCardId(prBody) {
console.log('Searching for card id', prBody)
console.log('Searching for card id')

const linkRegex = /^\s*(https\:\/\/trello\.com\/c\/(\w+)(\/\S*)?)?\s*$/
const lines = prBody.split('\r\n')
Expand Down Expand Up @@ -93,7 +93,7 @@ async function moveCardToList(board, card, list) {

async function run(data) {
const url = data.html_url || data.url
const card = getCardId(trelloBoardId, data.body)
const card = getCardId(data.body)

if (card && card.length > 0) {
console.log('Found card id', card)
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": "@remato/trello-integration-action",
"version": "1.3.6",
"version": "1.3.7",
"license": "MIT",
"description": "GitHub Action to integrate Github pull requests with Trello cards",
"main": "dist/index.js",
Expand Down

0 comments on commit 217de69

Please sign in to comment.