Skip to content

Commit a0a5051

Browse files
Disable webCompat.mediaSession on nfl.com (duckduckgo#1977)
* Disable webCompat.mediaSession on nfl.com * Update android-override.json * Add rebase to build script diff
1 parent 3a2155f commit a0a5051

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

.github/workflows/auto-respond-pr.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,45 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- name: Checkout main branch
18+
- name: Checkout base branch
1919
uses: actions/checkout@v2
2020
with:
21-
ref: main
21+
ref: ${{ github.event.pull_request.base.ref }}
2222
repository: ${{ github.event.pull_request.head.repo.full_name }}
23-
path: main
23+
path: base
2424

2525
- name: Checkout PR branch
2626
uses: actions/checkout@v2
2727
with:
2828
ref: ${{ github.event.pull_request.head.ref }}
2929
repository: ${{ github.event.pull_request.head.repo.full_name }}
3030
path: pr
31+
fetch-depth: 0
3132

3233
- name: Install dependencies
3334
run: |
3435
npm install @octokit/rest
3536
npm install diff
3637
37-
- name: Run build script on main branch
38+
- name: Run build script on base branch
3839
run: |
39-
cd main
40+
cd base
4041
npm install
4142
node index.js
4243
cd ..
4344
4445
- name: Run build script on PR branch
4546
run: |
4647
cd pr
48+
git config --global user.email "dax@duck.com"
49+
git config --global user.name "dax"
50+
git rebase origin/${{ github.event.pull_request.base.ref }}
4751
npm install
4852
node index.js
4953
cd ..
5054
5155
- name: Create diff of file outputs
52-
run: node pr/.github/scripts/diff-directories.js main/generated pr/generated > diff_output.txt
56+
run: node pr/.github/scripts/diff-directories.js base/generated pr/generated > diff_output.txt
5357

5458
- name: Run auto response script
5559
env:

overrides/android-override.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,18 @@
528528
}
529529
}
530530
]
531+
},
532+
{
533+
"domain": "nfl.com",
534+
"patchSettings": [
535+
{
536+
"op": "replace",
537+
"path": "/mediaSession",
538+
"value": {
539+
"state": "disabled"
540+
}
541+
}
542+
]
531543
}
532544
],
533545
"notification": {

0 commit comments

Comments
 (0)