Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

chore(deps): upgrade dependencies #61

chore(deps): upgrade dependencies

chore(deps): upgrade dependencies #61

Workflow file for this run

# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: assign-approver
on:
pull_request_target:
types:
- opened
- ready_for_review
jobs:
assign-approver:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Assign approver based on author
uses: actions/github-script@v8
with:
script: |-
const author = context.payload.pull_request.user.login;
// Define approver mapping
const approverMapping = {
'hoegertn': ['hoegerma'],
'hoegerma': ['hoegertn'],
'default': ['hoegertn', 'hoegerma'] // Default approver(s) if author not in mapping
};
// Get approvers for the PR author
const approvers = approverMapping[author] || approverMapping['default'];
// Filter out the author from approvers list (can't approve own PR)
const filteredApprovers = approvers.filter(approver => approver !== author);
if (filteredApprovers.length > 0) {
// Request reviews from the approvers
await github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
reviewers: filteredApprovers
});
console.log(`Assigned reviewers: ${filteredApprovers.join(', ')}`);
} else {
console.log('No eligible reviewers found for this PR author');
}