You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(ci): close PR if it was sent from main (#3123)
* chore(ci): close PR if it was sent from main
* fix: typo
* fix: typo
Co-authored-by: Steven Hartland <[email protected]>
---------
Co-authored-by: Steven Hartland <[email protected]>
Copy file name to clipboardExpand all lines: .github/workflows/conventions.yml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,3 +47,11 @@ jobs:
47
47
docs
48
48
chore
49
49
deps
50
+
51
+
- name: Detect if the Pull Request was sent from the main branch
52
+
if: "${{ github.head_ref == 'main' }}"
53
+
env:
54
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55
+
run: |
56
+
gh pr close --comment "This Pull Request has been automatically closed because it was sent from the fork's main branch. Please use a different branch so that the maintainers can contribute to your Pull Request."
0 commit comments