forked from darshanDevrai/brahmand
-
-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (61 loc) · 1.99 KB
/
auto-approve.yml
File metadata and controls
71 lines (61 loc) · 1.99 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Auto Approve Documentation Changes
# ⚠️ Note: Auto-merge is DISABLED to enforce manual code review
# As per the branch workflow requirements (Jan 2026), all PRs require human review
# before merging to main branch.
on:
pull_request_target:
types: [opened, synchronize, reopened]
status: {}
jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
statuses: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
**/*.md
**/*.yml
**/*.yaml
docs/**
.github/**
- name: Label documentation/config changes (NO auto-merge)
if: steps.changed-files.outputs.only_changed == 'true'
uses: juliangruber/approve-pull-request-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number }}
body: |
🤖 This PR only contains:
- 📝 Documentation changes (`.md` files)
- ⚙️ Configuration changes (`.yml`/`.yaml` files)
- 🔧 CI/CD changes (`.github/` directory)
✅ Auto-approved by bot, but **manual human review is required** before merge.
Please review the changes and merge manually when ready.
# AUTO-MERGE IS DISABLED
# All PRs require manual human review and merge
# To re-enable auto-merge, uncomment the job below:
#
# auto-merge:
# runs-on: ubuntu-latest
# needs: auto-approve
# permissions:
# pull-requests: write
# contents: write
#
# steps:
# - name: Auto-merge approved PRs
# uses: peter-evans/enable-pull-request-automerge@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# pull-request-number: ${{ github.event.pull_request.number }}
# merge-method: squash