Skip to content

Commit

Permalink
Release 2022.4.26 (#1150)
Browse files Browse the repository at this point in the history
* Update Asana

* Prepare release 2022.4.26

* Update Asana (#1149)

Co-authored-by: jonathanKingston <jonathanKingston@users.noreply.github.com>
  • Loading branch information
jonathanKingston and jonathanKingston committed Apr 26, 2022
1 parent a6447f0 commit 7ec7b1a
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 29 deletions.
2 changes: 1 addition & 1 deletion browsers/chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"default_locale": "en",
"version": "2022.4.18",
"version": "2022.4.26",
"icons": {
"16": "img/icon_16.png",
"48": "img/icon_48.png",
Expand Down
2 changes: 1 addition & 1 deletion browsers/firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"strict_min_version": "65.0"
}
},
"version": "2022.4.18",
"version": "2022.4.26",
"description": "Privacy, simplified. Protect your data as you search and browse: tracker blocking, smarter encryption, private search, and more.",
"icons": {
"16": "img/icon_16.png",
Expand Down
15 changes: 7 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@babel/polyfill": "^7.10.4",
"@babel/preset-env": "^7.16.11",
"@fingerprintjs/fingerprintjs": "^3.3.3",
"asana": "^0.18.6",
"asana": "github:Asana/node-asana",
"babelify": "10.0.0",
"brfs": "^2.0.2",
"duckduckgo-colors": "0.0.1",
Expand Down
21 changes: 14 additions & 7 deletions scripts/asana-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ const getAssigneeGids = (releaseTasks) =>
const run = async () => {
setupAsana()

console.info('Asana on. Duplicating template task...')

const { new_task } = await duplicateTemplateTask(templateTaskGid)

const { html_notes: notes } = await asana.tasks.getTask(new_task.gid, { opt_fields: 'html_notes' })

console.info('Getting list of release tasks')
// get list of tasks in release section
const { data: releaseTasks } = await asana.tasks.getTasksForSection(
releaseSectionGid,
Expand All @@ -71,6 +66,16 @@ const run = async () => {
opt_fields: 'gid,assignee,name'
}
)
if (!releaseTasks || releaseTasks.length === 0) {
console.error('No tasks found to release!')
return
}

console.info('Asana on. Duplicating template task...')

const { new_task } = await duplicateTemplateTask(templateTaskGid)

const { html_notes: notes } = await asana.tasks.getTask(new_task.gid, { opt_fields: 'html_notes' })

// create html list with <a>task</a> - @assignee
const releaseNotes = `<ul>${getTaskList(releaseTasks)}</ul>`
Expand All @@ -79,10 +84,12 @@ const run = async () => {
notes.replace('[[release_url]]', `<a href="${releaseUrl}">${releaseUrl}</a>`)
.replace('[[notes]]', releaseNotes)

console.info('Updating task and moving to Release section...')
console.info('Updating task html')

await asana.tasks.updateTask(new_task.gid, { html_notes: updatedNotes })

console.info('Moving task to Release section...')

await asana.tasks.addProjectForTask(new_task.gid, {
project: projectGid,
insert_before: releaseTasks[0].gid
Expand Down
19 changes: 9 additions & 10 deletions shared/data/bundled/extension-config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"readme": "https://github.com/duckduckgo/privacy-configuration",
"version": 1650184974476,
"version": 1650896638710,
"features": {
"ampLinks": {
"exceptions": [],
"exceptions": [
{
"domain": "freecodecamp.org",
"reason": "sign-up issues"
}
],
"settings": {
"deepExtractionEnabled": true,
"deepExtractionTimeout": 1500,
Expand Down Expand Up @@ -523,16 +528,10 @@
{
"rule": "mpsnare.iesnare.com/snare.js",
"domains": [
"rei.com"
],
"reason": "adwall"
},
{
"rule": "mpsnare.iesnare.com/snare.js",
"domains": [
"rei.com",
"ups.com"
],
"reason": "resetting password blocked by tracker"
"reason": "adwall, login issues"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion shared/data/etags.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"config-etag":"W/\"1300325d2c74ccaae0ad9d90a1ed4c89\""}
{"config-etag":"W/\"0bc84c24e4c17f08b3faed3a35868888\""}

0 comments on commit 7ec7b1a

Please sign in to comment.