Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[BUG]: Avoid triggering Release Drafter for closed, unmerged pull requests

Đang mở Phù hợp với người mới
#414 2 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 4 ngày

@Praveena2809 đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #430 của @Praveena2809 — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions
Lĩnh vực
ci-cd

Hướng nghiên cứu

Bắt đầu với workflow Release Drafter trong .github/workflows/ và kiểm tra các trình kích hoạt sự kiện. Xác nhận liệu các lần push lên main và master có cập nhật bản nháp phát hành hay không, sau đó xóa trình kích hoạt đóng PR chưa được hợp nhất hoặc giới hạn nó chỉ áp dụng cho PR đã được hợp nhất. Hoàn thành khi việc đóng một PR chưa được hợp nhất không còn chạy workflow và các thay đổi được chấp nhận vẫn cập nhật bản nháp phát hành.

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

Mô tả

bug
Bug Description

The current Release Drafter workflow in .github/workflows/ is triggered by both pushes to main/master and the pull_request event with types: [closed].

The closed event is triggered whether a PR is merged or closed without merging. As a result, closing an unmerged PR can trigger an unnecessary Release Drafter workflow run, even though its changes were not accepted into the project.

Since the workflow already listens for pushes to main and master, the PR-close trigger may be redundant for updating the release draft.

Proposed solution: Remove the pull_request: types: [closed] trigger and rely on pushes to the target branches to update the release draft. Alternatively, if the PR trigger is required, restrict it to merged PRs.

Expected Behavior

Release Drafter should update the release draft based on changes accepted into the target branches, without running unnecessarily when a PR is closed without merging.

Actual Behavior

Closing a PR without merging triggers the Release Drafter workflow, resulting in an unnecessary workflow execution.

Additional Context

The workflow already listens for pushes to main and master, which normally occur when changes are merged into those branches. Removing the redundant trigger could simplify the workflow and avoid unnecessary runs.

Steps to Reproduce
  1. Open a pull request targeting main or master.

  2. Close the PR without merging it.

  3. Observe that the Release Drafter workflow is triggered by the pull_request: types: [closed] event.

Logs and Screenshots

No response

Environment Details

No response

Impact

Low - Minor inconvenience

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Ngôn ngữ chính
JavaScript
Star
48
Fork
163
Merge trung bình
5 ngày 16 giờ
Pull request đã merge (30 ngày)
33

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 AOSSIE-Org/OrgExplorer

Tất cả issue của AOSSIE-Org/OrgExplorer

Issue tương tự

Thêm issue về JavaScript

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.