Skip to content

Commit

Permalink
Workaround Asana html parser
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Mar 7, 2024
1 parent 390b82d commit f48c8c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci/asana-create-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ const asanaCreateTasks = async () => {
.replace('[[release_url]]', getLink(releaseUrl, 'Autoconsent Release'))
.replace('[[notes]]', releaseNotes)
.replace(/<\/?p>/ig, '\n')
// Asana supports only h1 and h2
.replace('<h3>', '<h2>').replace('</h3>', '</h2>')
.replace('<h4>', '<h2>').replace('</h4>', '</h2>')

// Updating task and moving to Release section...
console.error(JSON.stringify(updatedNotes))
Expand Down

0 comments on commit f48c8c8

Please sign in to comment.