We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8565b34 + 38fb90d commit c4c7825Copy full SHA for c4c7825
.github/CODEOWNERS
@@ -1 +1 @@
1
-* @treadstone26
+* @itsdarshan12
.github/workflows/enforce-codeowners.yml
@@ -42,8 +42,15 @@ jobs:
42
run: |
43
echo "📌 Target branch: $TARGET_BRANCH"
44
echo "📌 Head branch: $HEAD_BRANCH"
45
- TEMPLATE=".github/CODEOWNERS.$TARGET_BRANCH"
46
+
47
+ # Normalize hotfix to use main's template
48
+ if [[ "$TARGET_BRANCH" == "hotfix" ]]; then
49
+ TEMPLATE=".github/CODEOWNERS.main"
50
+ else
51
+ TEMPLATE=".github/CODEOWNERS.$TARGET_BRANCH"
52
+ fi
53
54
if [ -f "$TEMPLATE" ]; then
55
cp "$TEMPLATE" .github/CODEOWNERS
56
echo "✅ CODEOWNERS restored from $TEMPLATE"
@@ -52,6 +59,7 @@ jobs:
59
exit 1
60
fi
61
62
63
- name: Commit and push updated CODEOWNERS
64
57
65
git config user.name "github-actions[bot]"
0 commit comments