INNER CODE UNIT · TypeScript
getUserIdFromLogin
duckduckgo/Android · .github/actions/pr-asana-sync/src/main.ts:42
function getUserIdFromLogin(login: string): string | undefined {
const userId = USER_MAP[login]
return userId
}
function getApprovalStatus(
prState: PRState,
author: string
):
| 'pending'
| 'commented'
| 'changes_requested'
| 'approved'
| 'rejected'
| undefined {
if (context.eventName === 'pull_request_review') {
switch (prState) {
case 'Approved':