diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..d388268 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,8 @@ +/* @diegotid +.github/ @diegotid +about/ @mtnieto +callflows/ @diegotid +catalog/ @diegotid +gettingstarted/ @mtnieto +**/sandbox/** @diegotid +*.yaml @diegotid \ No newline at end of file diff --git a/.github/workflows/codeowners.yml b/.github/workflows/codeowners.yml new file mode 100644 index 0000000..0ca6eaa --- /dev/null +++ b/.github/workflows/codeowners.yml @@ -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 \ No newline at end of file