`close_milestone` action should be more forgiving when a milestone is already closed

Đang mở
#568 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
release

Hướng nghiên cứu

Bắt đầu trong lib/fastlane/plugin/wpmreleasetoolkit/actions/common/close_milestone_action.rb tại CloseMilestoneAction và kiểm tra github_helper.get_milestone. Xác định action cần nhận biết milestone đã đóng như thế nào, sau đó đảm bảo trường hợp đó hoàn tất mà không gây ra lỗi “not found” và hoạt động như một no-op.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

In the CloseMilestoneAction, we first fetch the milestone to be able to close it, throwing an error if the milestone is nil:

milestone = github_helper.get_milestone(repository, milestone_title)
UI.user_error!("Milestone #{milestone_title} not found.") if milestone.nil?

The problem with that is a situation seen a couple of times during release management: closed milestones aren't returned by github_helper.get_milestone.

We should either stop raising this error completely or find a way in the API to get a milestone even when closed, so that at least we would avoid raising the error in such cases and the action becomes a no-op.

Ngôn ngữ chính
Ruby
Star
32
Fork
7
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wordpress-mobile/release-toolkit

Tất cả issue của wordpress-mobile/release-toolkit

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.