name: gitlab
description: GitLab Issues + Markdown/Wiki + GitLab CI + Merge Requests

artifacts:
  idea:
    content_owner: gitlab_issue
    state_owner: gitlab_issue
    canonical_id: issue_iid
  prd:
    content_owner: markdown_or_wiki
    state_owner: gitlab_issue
    canonical_id: page_or_file_path
  techspec:
    content_owner: markdown_or_wiki
    state_owner: gitlab_issue
    canonical_id: page_or_file_path
  tasks:
    content_owner: gitlab_issues
    state_owner: gitlab_issues
    canonical_id: issue_iid
  refinement:
    content_owner: markdown_or_wiki
    state_owner: gitlab_issue
    canonical_id: page_or_file_path
  execution:
    content_owner: git_branch
    state_owner: merge_request
    canonical_id: branch
  review:
    content_owner: merge_request
    state_owner: merge_request
    canonical_id: merge_request_iid
  memory:
    content_owner: markdown_or_wiki
    state_owner: traceability_map
    canonical_id: page_or_file_path

events:
  idea_created: issue_event
  prd_approved: label_or_comment_command
  techspec_approved: label_or_comment_command
  refinement_approved: label_or_comment_command
  pr_opened: merge_request_event
  ci_green: pipeline_event_success
  review_approved: merge_request_approved
  deploy_done: deployment_event_success

fallbacks:
  approval: explicit_issue_comment
  polling: scheduled_task_for_pipeline
  docs: repo_markdown
