Skip to content

Commit e4893ac

Browse files
authored
Merge branch 'master' into issue/3475-remove-ARE
2 parents 2c3412c + ddc9b27 commit e4893ac

5 files changed

Lines changed: 62 additions & 34 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Auto-label Dependabot PRs'
2+
3+
on:
4+
pull_request_target:
5+
branches: [ master ]
6+
types: [ opened, synchronize ]
7+
8+
jobs:
9+
auto-label:
10+
name: 'Apply safe_to_test for Dependabot'
11+
if: github.event.pull_request.user.login == 'dependabot[bot]'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: 'Add safe_to_test label'
15+
uses: actions/github-script@v8
16+
with:
17+
script: |
18+
const { owner, repo } = context.repo;
19+
const issue_number = context.payload.pull_request.number;
20+
21+
// Remove first so re-adding always fires a labeled event,
22+
// which triggers the BrowserStack workflow.
23+
try {
24+
await github.rest.issues.removeLabel({
25+
owner, repo, issue_number,
26+
name: 'safe_to_test'
27+
});
28+
} catch (e) {
29+
if (e.status !== 404) throw e;
30+
}
31+
32+
await github.rest.issues.addLabels({
33+
owner, repo, issue_number,
34+
labels: ['safe_to_test']
35+
});

.github/workflows/github_actions.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 'BrowserStack Test'
33
on:
44
pull_request_target:
55
branches: [ master ]
6-
types: [ labeled, opened, synchronize ]
6+
types: [ labeled ]
77

88
jobs:
99
ubuntu-job:
@@ -12,15 +12,12 @@ jobs:
1212
concurrency:
1313
group: browserstack-${{ github.event.pull_request.number }}
1414
cancel-in-progress: true
15-
if: |
16-
github.event.label.name == 'safe_to_test' ||
17-
github.event.pull_request.user.login == 'dependabot[bot]'
15+
if: github.event.label.name == 'safe_to_test'
1816
env:
1917
GITACTIONS: true
2018
steps:
2119

2220
- name: 'Remove safe_to_test label'
23-
if: github.event.label.name == 'safe_to_test'
2421
uses: actions/github-script@v8
2522
with:
2623
script: |
@@ -79,4 +76,4 @@ jobs:
7976
- name: 'BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
8077
uses: browserstack/github-actions/setup-local@master
8178
with:
82-
local-testing: stop
79+
local-testing: stop

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ gem 'rake', '~> 13.3'
2424
gem 'activerecord', '~> 8.1'
2525
gem 'otr-activerecord', '~> 2.6.0'
2626
gem 'sqlite3', '~> 2.9'
27-
gem 'rubocop', '~> 1.85.1', require: false
27+
gem 'rubocop', '~> 1.86.0', require: false
2828

2929
# Geolocation support
3030
group :geoip do

Gemfile.lock

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activemodel (8.1.2)
5-
activesupport (= 8.1.2)
6-
activerecord (8.1.2)
7-
activemodel (= 8.1.2)
8-
activesupport (= 8.1.2)
4+
activemodel (8.1.2.1)
5+
activesupport (= 8.1.2.1)
6+
activerecord (8.1.2.1)
7+
activemodel (= 8.1.2.1)
8+
activesupport (= 8.1.2.1)
99
timeout (>= 0.4.0)
10-
activesupport (8.1.2)
10+
activesupport (8.1.2.1)
1111
base64
1212
bigdecimal
1313
concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -90,24 +90,20 @@ GEM
9090
prism (>= 1.3.0)
9191
rdoc (>= 4.0.0)
9292
reline (>= 0.4.2)
93-
json (2.19.1)
94-
json-schema (6.2.0)
95-
addressable (~> 2.8)
96-
bigdecimal (>= 3.1, < 5)
93+
json (2.19.2)
9794
language_server-protocol (3.17.0.5)
9895
lint_roller (1.1.0)
9996
logger (1.7.0)
10097
matrix (0.4.3)
10198
maxmind-db (1.4.0)
102-
mcp (0.8.0)
103-
json-schema (>= 4.1)
10499
method_source (1.1.0)
105100
mime-types (3.7.0)
106101
logger
107102
mime-types-data (~> 3.2025, >= 3.2025.0507)
108103
mime-types-data (3.2025.0902)
109104
mini_mime (1.1.5)
110-
minitest (6.0.1)
105+
minitest (6.0.2)
106+
drb (~> 2.0)
111107
prism (~> 1.5)
112108
mojo_magick (0.6.8)
113109
msfrpc-client (1.1.2)
@@ -204,11 +200,10 @@ GEM
204200
diff-lcs (>= 1.2.0, < 2.0)
205201
rspec-support (~> 3.13.0)
206202
rspec-support (3.13.6)
207-
rubocop (1.85.1)
203+
rubocop (1.86.0)
208204
json (~> 2.3)
209205
language_server-protocol (~> 3.17.0.2)
210206
lint_roller (~> 1.1.0)
211-
mcp (~> 0.6)
212207
parallel (~> 1.10)
213208
parser (>= 3.3.0.2)
214209
rainbow (>= 2.2.2, < 4.0)
@@ -246,14 +241,14 @@ GEM
246241
rack-session (>= 2.0.0, < 3)
247242
tilt (~> 2.0)
248243
slack-notifier (2.4.0)
249-
sqlite3 (2.9.1-aarch64-linux-gnu)
250-
sqlite3 (2.9.1-aarch64-linux-musl)
251-
sqlite3 (2.9.1-arm-linux-gnu)
252-
sqlite3 (2.9.1-arm-linux-musl)
253-
sqlite3 (2.9.1-arm64-darwin)
254-
sqlite3 (2.9.1-x86_64-darwin)
255-
sqlite3 (2.9.1-x86_64-linux-gnu)
256-
sqlite3 (2.9.1-x86_64-linux-musl)
244+
sqlite3 (2.9.2-aarch64-linux-gnu)
245+
sqlite3 (2.9.2-aarch64-linux-musl)
246+
sqlite3 (2.9.2-arm-linux-gnu)
247+
sqlite3 (2.9.2-arm-linux-musl)
248+
sqlite3 (2.9.2-arm64-darwin)
249+
sqlite3 (2.9.2-x86_64-darwin)
250+
sqlite3 (2.9.2-x86_64-linux-gnu)
251+
sqlite3 (2.9.2-x86_64-linux-musl)
257252
stringio (3.2.0)
258253
sync (0.5.0)
259254
term-ansicolor (1.11.3)
@@ -345,7 +340,7 @@ DEPENDENCIES
345340
rdoc (~> 7.2)
346341
rest-client (~> 2.1.0)
347342
rspec (~> 3.13)
348-
rubocop (~> 1.85.1)
343+
rubocop (~> 1.86.0)
349344
rubyzip (~> 3.2)
350345
rushover (~> 0.3.0)
351346
selenium-webdriver (~> 4.41)

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)