Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
030f970
Add a backport reminder for unbackported commits
NickDris Oct 15, 2025
7ce4324
Add direnv to .gitignore
NickDris Oct 15, 2025
756849e
Simplify logic and comments
NickDris Oct 15, 2025
8da2e23
Fixed linting issue
NickDris Oct 15, 2025
3a7751f
Merge branch 'master' into backport/reminder
NickDris Oct 16, 2025
d0aea4a
Unify label and reminder logic to one module
NickDris Oct 16, 2025
934745c
Backport/reminder (#112)
NickDris Oct 16, 2025
d827c1b
Argument parsing error
NickDris Oct 16, 2025
168835a
Argument parsing error
NickDris Oct 16, 2025
c7cff72
Updated label step
NickDris Oct 16, 2025
ad81263
Additional CLI logic
NickDris Oct 16, 2025
4643eff
Remove unintended defaults
NickDris Oct 17, 2025
9d3866b
Remove token argument for safety and delete obsolete script usage
NickDris Oct 20, 2025
d660387
Set a --dry-run option
NickDris Oct 20, 2025
fa7673f
Adding enhanced logging capabilities and --debug mode
NickDris Oct 20, 2025
901c119
Use click instead of argparse
NickDris Oct 20, 2025
6e8264e
Fix a linting issue
NickDris Oct 20, 2025
14bae19
Revert "Use click instead of argparse"
NickDris Oct 21, 2025
a1a52b8
Name github event to trigger
NickDris Oct 21, 2025
82b3e26
Merge branch 'master' into backport/reminder
NickDris Oct 21, 2025
a5a7c92
Edit after reviewer's comments
NickDris Oct 23, 2025
19609e4
Type checking and defaults are done by argparse
NickDris Oct 27, 2025
00d2509
Change requests from review
NickDris Oct 29, 2025
da9e1f1
Fixed lint error
NickDris Oct 29, 2025
8629812
Merge branch 'master' into backport/reminder
elasticmachine Oct 30, 2025
ceed0cf
Move scripts to ci folder, for decoupling
NickDris Oct 31, 2025
bdcd249
Create it tests and refactor workflow
NickDris Nov 17, 2025
459266b
Decouple ci scripts from .github for better pr change filtering
NickDris Nov 17, 2025
9dde8e0
Merge branch 'master' into backport/reminder
elasticmachine Nov 17, 2025
f34fe88
Move ci logic to .ci folder
NickDris Nov 17, 2025
b84c047
Merge branch 'NickDris-backport/reminder' into backport/reminder
NickDris Nov 17, 2025
e33f999
Fixed mypy errors and moved to .tools.github folder
NickDris Nov 19, 2025
3105786
Merge branch 'master' into backport/reminder
NickDris Nov 19, 2025
598b78d
Place backport github CI tools to separate folder and refactor
NickDris Nov 20, 2025
833e3f1
Fixed lint errors
NickDris Nov 20, 2025
78f3125
Refactor and improve print statements
NickDris Nov 21, 2025
937861e
Cosmetic changes
NickDris Nov 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 0 additions & 128 deletions .github/scripts/backport-pending.py

This file was deleted.

File renamed without changes.
42 changes: 42 additions & 0 deletions .github/workflows/backport.reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Backport reminder

on:
pull_request_target:
branches: [master]
types: [closed]
schedule:
- cron: '0 6 * * *' # Every day at 06:00 UTC
workflow_dispatch:
inputs:
lookback_days:
description: 'How many days back to search merged PRs'
required: false
default: '7'
pending_label_age_days:
description: 'Minimum age in days before reminding'
required: false
default: '14'

env:
BACKPORT_TOKEN: ${{ secrets.BACKPORT_TOKEN }}

jobs:
reminder:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add Backport pending label (single PR)
if: github.event_name == 'pull_request_target'
run: |
python github_ci_tools/scripts/backport.py label --pr-mode
python github_ci_tools/scripts/backport.py remind --pr-mode --pending-reminder-age-days ${{ github.event.inputs.pending_label_age_days }}
- name: Add Backport pending label (bulk)
if: github.event_name != 'pull_request_target'
run: |
python github_ci_tools/scripts/backport.py label --lookback-days ${{ github.event.inputs.lookback_days }}
python github_ci_tools/scripts/backport.py remind --lookback-days ${{ github.event.inputs.lookback_days }} --pending-reminder-age-days ${{ github.event.inputs.pending_label_age_days }}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Parse repo and create filters.yml
run: python3 .github/scripts/track-filter.py
run: python3 github_ci_tools/scripts/track-filter.py
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 #v3.0.2
id: changes
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: .github/filters.yml
filters: github_ci_tools/filters.yml
- name: Collect changed tracks and calculate --track-filter argument
id: track-filter
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ target/
#Pickles
*.pk

# direnv
.envrc

# pyenv
.python-version

Expand Down
Empty file added github_ci_tools/__init__.py
Empty file.
Empty file.
Loading
Loading