주요 변경사항
Triagebot는 주요 변경 제안의 자동 처리를 돕습니다.
사용법
이 프로세스는 이슈에 적절한 레이블이 설정되면 시작됩니다. 예를 들어, rust-lang/compiler-team 저장소에는 major-change 레이블을 자동으로 설정하는 major change template이 있습니다. Triagebot는 이를 감지하여 논의를 진행할 새로운 Zulip 토픽을 생성하고, Zulip 스트림 링크가 포함된 댓글을 이슈에 남깁니다.
팀 구성원이 GitHub 이슈에 @rustbot second(또는 @rustbot seconded)라는 댓글을 작성하면, triagebot는 적절한 레이블을 설정하고 Zulip에 댓글을 남깁니다.
팀 구성원이 major-change-accepted 레이블을 추가하면, triagebot는 해당 제안이 수락되었음을 알리는 댓글을 Zulip에 남깁니다.
설정
이 기능은 triagebot.toml의 [major-change] 테이블을 통해 활성화됩니다:
[major-change]
# Issues that have this label will start the MCP process.
# Defaults to "major-change".
enabling_label = "major-change"
# Label to apply once an MCP is seconded.
second_label = "final-comment-period"
# Label to apply when an MCP is created.
# Typically this is used to track what needs to be discussed at a meeting.
meeting_label = "to-announce"
# Label that indicates there are active concerns on the MCP
# Typically tracked by `@rustbot concern`
concerns_label = "has-concerns"
# When this label is added to an issue, that triggers acceptance of the proposal
# which sends an update to Zulip.
# Defaults to "major-change-accepted".
accept_label = "major-change-accepted"
# Waiting period (in days) before the MCP is considered accepted.
# Defaults to 10 days.
waiting_period = 10
# Enables automatic closing of the major change when the waiting period is completed.
# Defaults to false.
auto_closing = true
# Optional extra text that is included in the GitHub comment when the issue is opened.
open_extra_text = "cc @rust-lang/compiler @rust-lang/compiler-contributors"
# The Zulip stream to automatically create topics about MCPs in
# Can be found by looking for the first number in URLs, e.g.
# https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler
zulip_stream = 233931
# An Zulip group or username to tag in the Zulip message when a
# proposal has been seconded.
zulip_ping = "T-compiler"
# An optional tracking issue template that is automatically created when the major
# is accepted.
#
# There are currently three replacement variables:
# - ${mcp_number}: Issue number of the major change
# - ${mcp_title}: Title of the major change
# - ${mcp_author}: GitHub handle of the author of the major change
[major-change.tracking-issue-template]
# Name of the repository where the tracking issue should be created
repository = "rust"
# Title of tracking issue to create
title = "Tracking issue for MCP#${mcp_number}"
# Body of the tracking issue to create
body = """
Multi line body for MCP#${mcp_number}: ${mcp_title}
Created by @${mcp_author}
"""
# Labels to add to the tracking issue
labels = ["C-tracking-issue", "T-compiler"]
구현
src/handlers/major_change.rs를 참조하십시오.