mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 14:04:18 +02:00
Add auto-close workflow for issues needing MRE (#2100)
This commit is contained in:
parent
b45499292f
commit
453454711f
3 changed files with 429 additions and 1 deletions
10
.github/workflows/auto-close-duplicates.yml
vendored
10
.github/workflows/auto-close-duplicates.yml
vendored
|
|
@ -12,17 +12,25 @@ jobs:
|
|||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Generate Marvin App token
|
||||
id: marvin-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
with:
|
||||
app-id: ${{ secrets.MARVIN_APP_ID }}
|
||||
private-key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
|
||||
- name: Auto-close duplicate issues
|
||||
run: uv run scripts/auto_close_duplicates.py
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ steps.marvin-token.outputs.token }}
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
|
||||
|
|
|
|||
36
.github/workflows/auto-close-needs-mre.yml
vendored
Normal file
36
.github/workflows/auto-close-needs-mre.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
name: Auto-close needs MRE issues
|
||||
description: Auto-closes issues that need minimal reproducible examples after 7 days of author inactivity
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 9 * * *" # Run daily at 9 AM UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
auto-close-needs-mre:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Generate Marvin App token
|
||||
id: marvin-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
with:
|
||||
app-id: ${{ secrets.MARVIN_APP_ID }}
|
||||
private-key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
|
||||
- name: Auto-close needs MRE issues
|
||||
run: uv run scripts/auto_close_needs_mre.py
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.marvin-token.outputs.token }}
|
||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
||||
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue