Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -76,12 +76,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