Skip to content

[FIX] 투두 툴바 서브태스크 아이콘 표시 오류 및 드래그 리스트 자동 스크롤 수정 #128

[FIX] 투두 툴바 서브태스크 아이콘 표시 오류 및 드래그 리스트 자동 스크롤 수정

[FIX] 투두 툴바 서브태스크 아이콘 표시 오류 및 드래그 리스트 자동 스크롤 수정 #128

Workflow file for this run

name: 👽 Auto Assign
on:
pull_request:
types: [opened]
permissions:
pull-requests: write
issues: write
jobs:
assign:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
const others = ['ehye1', 'jjangminii', 'yumin-kim2'];
const author = context.payload.pull_request.user.login;
const prNumber = context.payload.pull_request.number;
function pickRandom(arr, count) {
const shuffled = [...arr].sort(() => Math.random() - 0.5);
return shuffled.slice(0, count);
}
let reviewers;
if (author === 'kimminna') {
// kimminna가 PR 작성 시: 나머지 3명 중 2명 랜덤
reviewers = pickRandom(others, 2);
} else {
// 나머지가 PR 작성 시: kimminna 고정 + 나머지 3명 중 작성자 제외 1명 랜덤
const eligible = others.filter(c => c !== author);
const random = pickRandom(eligible, 1);
reviewers = ['kimminna', ...random];
}
await github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: prNumber,
reviewers,
});
await github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
assignees: [author],
});