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 101c136
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ddg-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ env:
RELEASE_URL: 'https://github.com/duckduckgo/autoconsent/releases/tag/v10.2.0'
RELEASE_URL1: ${{ github.event.release.html_url }}
RELEASE_NOTES: |
#### Enhancement
#### 🚀 Enhancement
- feat: support coca-cola.com using OneTrust [#376](https://github.com/duckduckgo/autoconsent/pull/376) ([@seia-soto](https://github.com/seia-soto))
#### Dependency Updates
#### 🔩 Dependency Updates
- Bump the dev-dependencies group with 4 updates [#385](https://github.com/duckduckgo/autoconsent/pull/385) ([@dependabot[bot]](https://github.com/dependabot[bot]))
Expand Down
2 changes: 2 additions & 0 deletions ci/asana-create-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ 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|h4)>/ig, '<h2>').replace(/<\/(h3|h4)>/ig, '</h2>')

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

0 comments on commit 101c136

Please sign in to comment.