Skip to content

Commit ec9ede1

Browse files
authored
Replace Review Bot with Centralized Action (#12451)
* Replace Review Bot with Centralized Action * Remove ruff rule
1 parent 4f83b84 commit ec9ede1

File tree

3 files changed

+9
-250
lines changed

3 files changed

+9
-250
lines changed

.github/pr-reminder.py

Lines changed: 0 additions & 220 deletions
This file was deleted.
Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,19 @@
1-
name: Notify Pending PR Reviewers
1+
name: Daily PR Review Reminder
22

33
on:
4-
workflow_dispatch:
54
schedule:
6-
- cron: '0 16 * * 1-5' # 11:00 AM CT M-F
5+
- cron: "0 16 * * 1-5" # 11:00 AM CT M-F
6+
workflow_dispatch:
77

88
jobs:
99
notify-reviewers:
1010
runs-on: ubuntu-latest
1111
if: github.repository == 'DefectDojo/django-DefectDojo' # Notify only in core repo, not in forks - it would just fail in fork
12-
1312
steps:
14-
- name: Checkout repository
15-
uses: actions/checkout@v4
13+
- name: Notify reviewers in Slack
14+
uses: DefectDojo-Inc/notify-pr-reviewers-action@master
1615
with:
17-
# Only checkout the master branch to avoid changes to this script
18-
# This is to reduce the possibilities of a secret leak from modifying
19-
# this action, or the python script that is called down below
20-
ref: master
21-
22-
- name: Set up Python
23-
uses: actions/setup-python@v5
24-
with:
25-
python-version: "3.13"
26-
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install requests
31-
32-
- name: Run PR reminder script
33-
env:
34-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
35-
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
36-
run: |
37-
python3 .github/pr-reminder.py
16+
owner: "DefectDojo"
17+
repository: "django-DefectDojo"
18+
gh_token: ${{ secrets.GH_TOKEN }}
19+
slack_token: ${{ secrets.SLACK_TOKEN }}

ruff.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ preview = true
114114
"S105", # hardcoded passwords in tests are fine
115115
"S108", # tmp paths mentioned in tests are fine
116116
]
117-
".github/pr-reminder.py" = [
118-
"INP001", # https://docs.astral.sh/ruff/rules/implicit-namespace-package/
119-
]
120117

121118
[lint.flake8-boolean-trap]
122119
extend-allowed-calls = ["dojo.utils.get_system_setting"]

0 commit comments

Comments
 (0)