Skip to content

Commit f3c1c41

Browse files
committed
feat: ignore bad user agents
1 parent 977fab6 commit f3c1c41

File tree

4 files changed

+741
-2
lines changed

4 files changed

+741
-2
lines changed

.github/workflows/update-data.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update Data
2+
3+
on:
4+
schedule:
5+
- cron: '0 */6 * * *'
6+
7+
jobs:
8+
update:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v4
13+
14+
- name: get bad-user-agents
15+
run: |
16+
curl -o src/Resources/lists/bad-user-agents.txt https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/refs/heads/master/_generator_lists/bad-user-agents.list
17+
sed -i 's/\\ / /g' src/Resources/lists/bad-user-agents.txt
18+
19+
- name: Create PR
20+
uses: peter-evans/create-pull-request@v7
21+
with:
22+
commit-message: "chore: update data"
23+
title: "chore: update data"
24+
branch: chore/update-data
25+
base: main
26+
delete-branch: true
27+
body: |
28+
This PR updates the data dependencies.

src/Command/CleanupExcludesCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6161

6262
$salesChannelId = $redirect->getSalesChannelDomain()?->getSalesChannelId();
6363

64-
//TODO: change this with checking the requests
6564
$message = new TinectRedirectUpdateMessage(
6665
source: $redirect->getSource(),
6766
salesChannelDomainId: $redirect->getSalesChannelDomainId(),

0 commit comments

Comments
 (0)