@duckduckgo/autoconsent 18.4.0 → 18.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ddg-release.yml +3 -1
- package/CHANGELOG.md +13 -0
- package/ci/asana-create-platform-release-tasks.js +9 -2
- package/ci/asana-update-tasks.js +17 -3
- package/ci/create-pr-template.js +1 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/package.json +1 -1
|
@@ -103,6 +103,7 @@ jobs:
|
|
|
103
103
|
ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }}
|
|
104
104
|
PLATFORM_ANDROID: ${{ inputs.android }}
|
|
105
105
|
PLATFORM_APPLE: ${{ inputs.apple || inputs.apple_embedded }}
|
|
106
|
+
PLATFORM_APPLE_EMBEDDED: ${{ inputs.apple_embedded }}
|
|
106
107
|
PLATFORM_WINDOWS: ${{ inputs.windows }}
|
|
107
108
|
PLATFORM_EXTENSION: ${{ inputs.extension || inputs.apple_embedded }}
|
|
108
109
|
run: |
|
|
@@ -243,8 +244,9 @@ jobs:
|
|
|
243
244
|
branch: update-autoconsent
|
|
244
245
|
title: Update autoconsent to ${{ env.TAG }}
|
|
245
246
|
body: '${{ env.PR_BODY_APPLE }}'
|
|
246
|
-
# the PR will be marked ready when the extension PR is merged
|
|
247
|
+
# the PR will be marked ready and unlabelled when the extension PR is merged
|
|
247
248
|
draft: ${{ inputs.apple_embedded }}
|
|
249
|
+
labels: ${{ inputs.apple_embedded && 'DO NOT MERGE' || '' }}
|
|
248
250
|
token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
|
|
249
251
|
|
|
250
252
|
# ------------------------------------------------------------------------------
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v18.5.0 (Sat Nov 14 2026)
|
|
2
|
+
|
|
3
|
+
#### CI / Release Automation
|
|
4
|
+
|
|
5
|
+
- Mark Apple embedded release PR as DO NOT MERGE and delay its Asana task [#2651](https://github.com/duckduckgo/autoconsent/pull/2651) ([@claude](https://github.com/claude) [@muodov](https://github.com/muodov))
|
|
6
|
+
|
|
7
|
+
#### Authors: 2
|
|
8
|
+
|
|
9
|
+
- Claude ([@claude](https://github.com/claude))
|
|
10
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# v18.4.0 (Fri Nov 13 2026)
|
|
2
15
|
|
|
3
16
|
#### Rules
|
|
@@ -14,7 +14,7 @@ const match = regex.exec(RELEASE_TASK_URL);
|
|
|
14
14
|
const releaseTaskGid = match?.groups?.task;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* @typedef {{taskGid: string, taskUrl: string, displayName: string}} platformData
|
|
17
|
+
* @typedef {{taskGid: string, taskUrl: string, displayName: string, deferredProjects?: string}} platformData
|
|
18
18
|
*
|
|
19
19
|
* @typedef {{
|
|
20
20
|
* android: platformData,
|
|
@@ -56,6 +56,10 @@ const selectedPlatforms = {
|
|
|
56
56
|
extension: process.env.PLATFORM_EXTENSION === 'true',
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
// The Apple PR is not ready until the embedded extension release adds the zip,
|
|
60
|
+
// so that workflow adds the Apple task to its projects instead.
|
|
61
|
+
const deferAppleProjects = process.env.PLATFORM_APPLE_EMBEDDED === 'true';
|
|
62
|
+
|
|
59
63
|
const setupAsana = () => {
|
|
60
64
|
return Asana.Client.create({
|
|
61
65
|
defaultHeaders: {
|
|
@@ -123,7 +127,10 @@ async function main() {
|
|
|
123
127
|
console.error(`updating task ${gid} with name "${newName}"`);
|
|
124
128
|
await asana.tasks.updateTask(gid, { name: newName, html_notes: subtaskNotes });
|
|
125
129
|
|
|
126
|
-
if (extractedProjects) {
|
|
130
|
+
if (extractedProjects && platform === 'apple' && deferAppleProjects) {
|
|
131
|
+
console.error(`deferring projects ${extractedProjects} for task ${gid}`);
|
|
132
|
+
platforms.apple.deferredProjects = extractedProjects;
|
|
133
|
+
} else if (extractedProjects) {
|
|
127
134
|
console.error(`adding projects ${extractedProjects} to task ${gid}`);
|
|
128
135
|
for (const projectGidAndSection of extractedProjects.split(',')) {
|
|
129
136
|
const [projectGid, sectionGid] = projectGidAndSection.split(':');
|
package/ci/asana-update-tasks.js
CHANGED
|
@@ -20,6 +20,19 @@ const setupAsana = () => {
|
|
|
20
20
|
}).useAccessToken(ASANA_ACCESS_TOKEN);
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @param {{taskGid: string, deferredProjects?: string}} platformObj
|
|
25
|
+
*/
|
|
26
|
+
const addDeferredProjects = async ({ taskGid, deferredProjects }) => {
|
|
27
|
+
if (!deferredProjects) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
for (const projectGidAndSection of deferredProjects.split(',')) {
|
|
31
|
+
const [projectGid, sectionGid] = projectGidAndSection.split(':');
|
|
32
|
+
await asana.tasks.addProjectForTask(taskGid, { project: projectGid, section: sectionGid });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
23
36
|
const asanaUpdateTasks = async () => {
|
|
24
37
|
let asanaOutput;
|
|
25
38
|
try {
|
|
@@ -46,12 +59,13 @@ const asanaUpdateTasks = async () => {
|
|
|
46
59
|
console.error(`Skipping ${platformName} PR URL update - no PR URL`);
|
|
47
60
|
}
|
|
48
61
|
|
|
49
|
-
//
|
|
62
|
+
// The Apple task is added to its projects when the extension PR is merged and the embedded ZIP is added
|
|
50
63
|
if (platformName === 'apple' && process.env.APPLE_EMBEDDED === 'true') {
|
|
51
64
|
const extensionPrUrl = prUrls.extension;
|
|
52
|
-
let note = `This PR is in DRAFT. The embedded ZIP will be added once the extension PR is merged: ${extensionPrUrl}
|
|
65
|
+
let note = `This PR is in DRAFT and has the "DO NOT MERGE" label. The embedded ZIP will be added once the extension PR is merged: ${extensionPrUrl}. This task will then be added to the Apple projects.`;
|
|
53
66
|
if (!extensionPrUrl) {
|
|
54
|
-
note = 'Extension PR URL is not found. CPM DRI, please check the PR
|
|
67
|
+
note = 'Extension PR URL is not found. CPM DRI, please check the PR, mark it as ready and remove the "DO NOT MERGE" label.';
|
|
68
|
+
await addDeferredProjects(platformObj);
|
|
55
69
|
}
|
|
56
70
|
await asana.stories.createStoryForTask(platformObj.taskGid, { text: note });
|
|
57
71
|
}
|
package/ci/create-pr-template.js
CHANGED
|
@@ -44,7 +44,7 @@ function createPRTemplate(platform, data) {
|
|
|
44
44
|
|
|
45
45
|
const extraContent =
|
|
46
46
|
platform === 'extension'
|
|
47
|
-
? `<!-- THESE COMMENTS ARE USED BY CI, DON"T CHANGE THEM MANUALLY: --> <!-- apple_task_url: ${asanaOutput.apple?.taskUrl || ''} apple_task_gid: ${asanaOutput.apple?.taskGid || ''} -->`
|
|
47
|
+
? `<!-- THESE COMMENTS ARE USED BY CI, DON"T CHANGE THEM MANUALLY: --> <!-- apple_task_url: ${asanaOutput.apple?.taskUrl || ''} apple_task_gid: ${asanaOutput.apple?.taskGid || ''} --> <!-- apple_projects: ${asanaOutput.apple?.deferredProjects || ''} -->`
|
|
48
48
|
: '';
|
|
49
49
|
|
|
50
50
|
const asanaUrl = asanaOutput[platform]?.taskUrl;
|