Skip to content

Commit

Permalink
Add CODEOWNERS file to ensure owners approve PRs before merging
Browse files Browse the repository at this point in the history
  • Loading branch information
diegotid committed Nov 4, 2024
1 parent cf7c18f commit 725d037
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* @diegotid
.github/ @diegotid
about/ @mtnieto
callflows/ @diegotid
catalog/ @diegotid
gettingstarted/ @mtnieto
**/sandbox/** @diegotid
*.yaml @diegotid
20 changes: 20 additions & 0 deletions .github/workflows/codeowners.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CODEOWNERS Check

on:
pull_request:
paths:
- '**/CODEOWNERS'

jobs:
check-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Check for CODEOWNERS changes
run: |
if [ -f "CODEOWNERS" ]; then
echo "Changes detected in CODEOWNERS file. Please review and seek necessary approvals before merging."
exit 1
fi

0 comments on commit 725d037

Please sign in to comment.