[BUG]: Avoid triggering Release Drafter for closed, unmerged pull requests
Maintainer thường phản hồi trong vòng 4 ngày
Đá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 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
-
Open a pull request targeting main or master.
-
Close the PR without merging it.
-
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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AOSSIE-Org/OrgExplorer
-
[BUG]: Table sort headers can't be used from the keyboard and don't announce sort orderCó thể đã có người làm @Simran-Sobhani đã nhận hôm nay. Đang mởbug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AOSSIE-Org/OrgExplorer#419 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[BUG]: Connect PAT modal saves invalid GitHub tokens without validationCó thể đã có người làm @Prince-ES đã nhận 3 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AOSSIE-Org/OrgExplorer#416 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[BUG]: Overview "Language Distribution" percentages are relative to the top-7 languages, not all reposCó thể đã có người làm @Rohit270406 đã nhận 5 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AOSSIE-Org/OrgExplorer#402 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[BUG]: Overview wrongly lists a successfully-loaded org as "could not be loaded" (case / duplicate)Có thể đã có người làm @Rajvardhan-Singh-Rathore đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
AOSSIE-Org/OrgExplorer#400 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AOSSIE-Org/OrgExplorer#399 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của AOSSIE-Org/OrgExplorer
Issue tương tự
-
security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
remotestorage/remotestorage.js#1405 ·
-
Instagram explore page issueĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nativewind/nativewind#1879 ·
-
Improve menu selectionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
BCStudentSoftwareDevTeam/cas#448 ·
-
enhancement good first issue hacktoberfest help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
BinaryBaconLabs/todo-app#14 ·