|
| 1 | +--- |
| 2 | +# GSoC 2026 maintainer report — assigned students only. |
| 3 | +# Stops generating reports after 2026-10-31 and deletes this workflow in November 2026. |
| 4 | +name: GSoC Reviews |
| 5 | + |
| 6 | +on: |
| 7 | + schedule: |
| 8 | + - cron: "0 9 * * 1" |
| 9 | + - cron: "0 0 1 11 *" |
| 10 | + workflow_dispatch: |
| 11 | + |
| 12 | +permissions: |
| 13 | + contents: write |
| 14 | + pull-requests: read |
| 15 | + |
| 16 | +env: |
| 17 | + GSOC_REVIEWS_EXPIRY: "2026-10-31T23:59:59Z" |
| 18 | + |
| 19 | +jobs: |
| 20 | + gate: |
| 21 | + runs-on: ubuntu-latest |
| 22 | + outputs: |
| 23 | + expired: ${{ steps.date.outputs.expired }} |
| 24 | + steps: |
| 25 | + - name: Check October 2026 expiry |
| 26 | + id: date |
| 27 | + run: | |
| 28 | + NOW=$(date -u +%s) |
| 29 | + EXPIRY=$(date -u -d "${GSOC_REVIEWS_EXPIRY}" +%s) |
| 30 | + if [ "$NOW" -gt "$EXPIRY" ]; then |
| 31 | + echo "expired=true" >> "$GITHUB_OUTPUT" |
| 32 | + else |
| 33 | + echo "expired=false" >> "$GITHUB_OUTPUT" |
| 34 | + fi |
| 35 | +
|
| 36 | + report: |
| 37 | + name: GSoC PR and RFC coverage report |
| 38 | + needs: gate |
| 39 | + if: needs.gate.outputs.expired == 'false' |
| 40 | + runs-on: ubuntu-latest |
| 41 | + steps: |
| 42 | + - name: Checkout |
| 43 | + uses: actions/checkout@v4 |
| 44 | + |
| 45 | + - name: Generate report |
| 46 | + env: |
| 47 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 48 | + run: | |
| 49 | + python3 scripts/gsoc_pr_review_report.py --output /tmp/gsoc-review-report.md |
| 50 | +
|
| 51 | + - name: Publish job summary |
| 52 | + run: cat /tmp/gsoc-review-report.md >> "$GITHUB_STEP_SUMMARY" |
| 53 | + |
| 54 | + - name: Upload report artifact |
| 55 | + uses: actions/upload-artifact@v4 |
| 56 | + with: |
| 57 | + name: gsoc-review-report |
| 58 | + path: /tmp/gsoc-review-report.md |
| 59 | + retention-days: 90 |
| 60 | + |
| 61 | + cleanup: |
| 62 | + name: Remove expired GSoC Reviews workflow |
| 63 | + needs: gate |
| 64 | + if: needs.gate.outputs.expired == 'true' |
| 65 | + runs-on: ubuntu-latest |
| 66 | + steps: |
| 67 | + - name: Checkout |
| 68 | + uses: actions/checkout@v4 |
| 69 | + with: |
| 70 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 71 | + |
| 72 | + - name: Delete workflow and scripts |
| 73 | + run: | |
| 74 | + rm -f .github/workflows/gsoc-reviews.yml |
| 75 | + rm -f scripts/gsoc_pr_review_report.py |
| 76 | + rm -f scripts/gsoc_review_manifest.json |
| 77 | + if git diff --quiet; then |
| 78 | + echo "Workflow files already removed." |
| 79 | + exit 0 |
| 80 | + fi |
| 81 | + git config user.name "github-actions[bot]" |
| 82 | + git config user.email "github-actions[bot]@users.noreply.github.com" |
| 83 | + git add -A |
| 84 | + git commit -m "chore: remove expired GSoC reviews workflow (October 2026)" |
| 85 | + git push |
0 commit comments