41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Auto-assign maintainer
|
|
|
|
on:
|
|
schedule:
|
|
# Run every 3 hours to check for new maintainer comments
|
|
- cron: "0 */3 * * *"
|
|
workflow_dispatch: # Allow manual triggering
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/auto-assign.yml
|
|
- .github/workflows/auto-assign.js
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
scan-and-assign:
|
|
if: github.repository == 'mlflow/mlflow'
|
|
runs-on: ubuntu-slim
|
|
timeout-minutes: 10
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
sparse-checkout: |
|
|
.github
|
|
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
with:
|
|
retries: 3
|
|
script: |
|
|
const script = require('./.github/workflows/auto-assign.js');
|
|
const skipAssignment = context.eventName === 'pull_request';
|
|
await script({ github, context, skipAssignment });
|