# 저장소의 .github/ISSUE_TEMPLATE/risk.yml 로 복사하면 웹의 New issue 화면에 "리스크" 양식이 나타난다.
# 제출하면 항목마다 "### 항목 이름" 아래에 답이 적힌 본문이 만들어진다.
# kind:risk 라벨이 저장소에 먼저 있어야 붙는다: gh label create kind:risk --color D93F0B
# 확률과 영향의 숫자는 Project의 Probability, Impact 필드에도 같은 값으로 넣는다.
name: 리스크
description: 원인, 사건, 영향과 대응 계획이 있는 리스크(위협 또는 기회)
title: "[R-00] "
labels: ["kind:risk"]
body:
  - type: markdown
    attributes:
      value: 이미 일어난 문제는 이슈로 다룬다. 업무 이슈에 blocked 라벨과 원인을 남긴다.
  - type: dropdown
    id: direction
    attributes:
      label: 구분
      options:
        - 위협 (일어나면 목표에 나쁜 영향)
        - 기회 (일어나면 목표에 좋은 영향)
    validations:
      required: true
  - type: textarea
    id: statement
    attributes:
      label: 리스크 서술
      description: "원인, 사건, 영향의 세 부분으로 쓴다. 예: 알림 발송 서비스의 계정 승인이 3~5작업일 걸리기 때문에(원인) 승인이 LP-04 시작 전에 나지 않으면(사건) M1 완료가 최대 5작업일 늦어진다(영향)."
    validations:
      required: true
  - type: dropdown
    id: probability
    attributes:
      label: 확률
      description: 팀이 정한 척도로 고른다. 정량 분석에는 괄호 안의 대표값을 쓴다.
      options:
        - 1 (10% 미만, 대표값 5%)
        - 2 (10~30%, 대표값 20%)
        - 3 (30~50%, 대표값 40%)
        - 4 (50~70%, 대표값 60%)
        - 5 (70% 이상, 대표값 80%)
    validations:
      required: true
  - type: dropdown
    id: impact
    attributes:
      label: 영향
      description: 일정 기준 척도다. 비용이나 범위에 주는 영향이 더 크면 그 척도로 고르고 서술에 적는다.
      options:
        - 1 (마감 영향 없음, 여유 안에서 흡수)
        - 2 (1작업일 이하 지연)
        - 3 (2~3작업일 지연)
        - 4 (4~5작업일 지연)
        - 5 (6작업일 이상 지연 또는 마일스톤 범위 변경)
    validations:
      required: true
  - type: input
    id: impact-days
    attributes:
      label: 일어날 때의 일정 영향(작업일)
      description: 기대 금전 가치와 일정 위험 분석에 쓰는 숫자다. 기회는 줄어드는 작업일을 음수로 적는다.
      placeholder: "5"
  - type: dropdown
    id: strategy
    attributes:
      label: 대응 전략
      options:
        - 상부 보고 (프로젝트 권한 밖)
        - 회피 (위협)
        - 전가 (위협)
        - 완화 (위협)
        - 활용 (기회)
        - 공유 (기회)
        - 증대 (기회)
        - 수용 (위협, 기회)
    validations:
      required: true
  - type: textarea
    id: response
    attributes:
      label: 대응 조치
      description: 지금 할 조치, 담당, 드는 공수나 비용을 적는다.
    validations:
      required: true
  - type: input
    id: trigger
    attributes:
      label: 발생 신호
      description: 리스크가 일어나고 있다고 판단할 관찰 가능한 신호
      placeholder: "예: 10-23까지 계정 승인 메일이 오지 않는다"
  - type: textarea
    id: contingency
    attributes:
      label: 일어났을 때의 계획
      description: 발생 신호가 보이면 실행할 대체 계획과 쓸 예비(일정, 공수)
  - type: input
    id: due
    attributes:
      label: 대응 기한
      description: 대응 조치를 끝낼 날짜. YYYY-MM-DD 형식으로 쓰고 Project의 Response due 필드에도 넣는다.
      placeholder: "2026-10-23"
    validations:
      required: true
