Skip to content

Commit 49ffb97

Browse files
glaudeeeclaude
andcommitted
ci: add CODEOWNERS + auto-assign (codejanovic)
Reviewer via CODEOWNERS, Assignee via auto-assign workflow. Standard: personal vault/concepts/github-workflow-standard.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5938c98 commit 49ffb97

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Code owner: auto-request review from codejanovic on every PR.
2+
# Enforce via branch protection "Require review from Code Owners".
3+
* @codejanovic

.github/workflows/auto-assign.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Sets codejanovic as ASSIGNEE on every PR (reviewer handled by .github/CODEOWNERS).
2+
name: Auto-assign
3+
4+
on:
5+
pull_request:
6+
types: [opened, reopened]
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
assign:
13+
if: github.event.pull_request.head.repo.full_name == github.repository
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/github-script@v7
17+
with:
18+
script: |
19+
await github.rest.issues.addAssignees({
20+
owner: context.repo.owner,
21+
repo: context.repo.repo,
22+
issue_number: context.issue.number,
23+
assignees: ['codejanovic'],
24+
});

0 commit comments

Comments
 (0)