File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Approve and merge API reference sync PRs
2+
3+ # Automatically approve and merge API reference sync PRs from Haystack, Haystack Core Integrations,
4+ # and Haystack Experimental
5+
6+ on :
7+ pull_request :
8+ branches :
9+ - main
10+ paths :
11+ - " docs-website/reference/**"
12+ - " docs-website/reference_versioned_docs/**"
13+
14+ permissions :
15+ pull-requests : write
16+ contents : write
17+
18+ env :
19+ GH_TOKEN : ${{ github.token }}
20+
21+ jobs :
22+ auto-approve-and-merge :
23+ if : |
24+ github.event.pull_request.user.login == 'HaystackBot' &&
25+ startsWith(github.event.pull_request.head.ref, 'sync-docusaurus-api-reference') &&
26+ github.event.pull_request.head.repo.full_name == github.repository
27+ runs-on : ubuntu-slim
28+ steps :
29+ - name : Approve PR
30+ run : gh pr review --approve ${{ github.event.pull_request.number }} --repo ${{ github.repository }}
31+
32+ - name : Enable auto-merge
33+ run : gh pr merge --squash --auto ${{ github.event.pull_request.number }} --repo ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments