ER: Blank PRs get commented on for formatting issues too
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 67/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, javascript
Hướng nghiên cứu
Đọc ~/github-actions/trigger-pr/check-linked-issue.js, đặc biệt là dòng 105, nơi issue chỉ ra lỗi xảy ra khi pr.body để trống. Trước tiên, hãy kiểm tra cách action xử lý nội dung pull request và xem báo cáo lỗi được liên kết trong PR #8815; sử dụng các hướng dẫn kiểm thử GitHub Actions được cung cấp để chạy action trong môi trường cá nhân. Hoàn tất khi action xử lý được phần nội dung PR để trống và để lại bình luận như mong đợi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Emergent Requirement - Problem
We should make sure that check-linked-issue.js can handle blank PRs as well. That code currently helps to check PRs for proper formatting to make sure an issue is linked, but it fails if the PR it is checking is blank.
Issue you discovered this emergent requirement in
- #8815
Date discovered
10-24-2026
Did you have to do something temporarily
- YES
- NO
Who was involved
@castillios
@daras-cu
What happens if this is not addressed
If a blank PR get published, the PR to check for a a properly linked issue does not leave any comment on the PR to notify the author of an issue.
Resources
- This comment outlines what that failure looks like and has links to the errors that come up: https://github.com/hackforla/website/pull/8815#discussion_r4367949963
- For testing Github Actions, refer to https://github.com/hackforla/website/issues/6537#issuecomment-2041147335, especially Tips 6, 7, and 8, if you have not already created you personal environment for testing.
- More notes on testing Gtihub Actions: How to Test GitHub Actions
- Additional Notes for GitHub Actions
Recommended Action Items
- Make a new issue
- Discuss with team
- Let a Team Lead know
Potential solutions [draft]
Issue:
- Complexity: Small (While the suggested change here only requires changing one line of code, I gave it the Complexity: Small label because it requires testing GitHub Actions.)
- Relationships: None
- Size: 0.25pt
- Fix:
in ~/github-actions/trigger-pr/check-linked-issue.js (line 105), change:
const match = pr.body.match(regex);
... to:
const match = (pr.body ?? '').match(regex);
- Ngôn ngữ chính
- JavaScript
- Star
- 365
- Fork
- 872
- Merge trung bình
- 8 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 hackforla/website
-
Complexity: See issue making label epic good first issue Issue Making: Level 1 P-Feature: Project Info and Page Ready for Prioritization role: back end/devOps role: front end size: 0.25pt time sensitive
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Complexity: Small ER Feature: Refactor GHA Issue Making: Level 2 ready for merge team role: back end/devOps size: 0.25pt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
hackforla/website#8870 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Complexity: Small P-Feature: Project Info and Page ready for merge team role: back end/devOps role: front end size: 0.25pt time sensitive
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Complexity: Small ER Feature: Refactor CSS Issue Making: Level 2 P-Feature: Projects page ready for merge team role: front end size: 0.25pt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
hackforla/website#8860 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue P-Feature: Project Info and Page Ready for Prioritization role: back end/devOps role: front end size: 0.25pt
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hackforla/website
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
githubnext/gh-aw-workshop#5752 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: QudsunaTV.psĐang mởchannels:add check:passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
iptv-org/database#39416 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[TEXT] Flache Karte ist 2DĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
swisstopo/topo-swisseobrowser#48 ·
Maintainer thường phản hồi trong vòng 1 ngày