/ fetchx / .github / workflows / pr-automation.yml
Swadhin Biswas feat: add multi-platform packaging and CI automation · 3/7/2026
492a637
29 lines · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: PR Review Automation

on:
  pull_request:
    types: [opened, reopened, synchronize, closed]

jobs:
  pr-automation:
    name: PR Automation
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
      issues: write
    steps:
      - name: Run PR automation
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          # This workflow handles:
          # 1. Creates issues on CI failure
          # 2. Closes issues when CI passes
          # 3. Checks for required approvals
          # 4. Adds labels based on changes
          
          echo "PR Number: ${{ github.event.pull_request.number }}"
          echo "PR Action: ${{ github.event.action }}"
          echo "Head SHA: ${{ github.event.pull_request.head.sha }}"