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

Create process for unplanned work and automate PR handling based on linked issue assignment

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

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

Từ ngày 2/4/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

See the note below for the process part.

Overview

Add two new automated behaviors for community pull requests, both triggered when a PR is opened:

Auto-close PR for issues assigned to someone else

When a community contributor opens a PR linked to an issue that is already assigned to someone else, the PR is closed, LE bot posts an info message, and #support-dev-notifications receive a notification).

Auto-review & community review for assigned contributors

When a community contributor opens a PR linked to an issue they are assigned to, rtibblesbot review is automatically requested and community-review label added.

Guidance

contributor-pr-reply workflow triggers on pull_request_target: [opened] for community contributors and posts BOT_MESSAGE_PULL_REQUEST. It will likely make sense to turn it into a more general workflow for handling community pull requests that would be enhanced with the 2 new behaviors.

The Change

Auto-close

When a community PR is opened, if a linked issue is found and that issue is assigned to someone other than the PR author:

  • The LE bot posts a closing message
  • The PR is closed & support-dev-notifications Slack channel receives an auto-close notification
  • The regular BOT_MESSAGE_PULL_REQUEST message is not sent (and support-dev-notifications doesn't receive the related notification)

There should be no changes to the automated contributions tracking spreadsheet - it should contain all closed, including auto-closed, PRs.

Auto-review & community review

When a community PR is opened, if a linked issue is found and the PR author is assigned to that issue:

  • rtibblesbot is automatically requested for review
  • The community-review label is added

contributor-pr-reply doesn't need to send info bot messages after rtibblesbot review requested and community-review label added. It should only perform actions of request and label (Info messages are already sent by another workflows, review-requested and pull-request-label, which allows more flexibility as info messages will work if review request and label added manually. This needs to be preserved.)

Out of Scope

PRs with no linked issue, or with a linked issue that has no assignee

  • No auto-close or auto-review PRs
  • Receive only the (already functioning) BOT_MESSAGE_PULL_REQUEST message

This is a tradeoff related to the fact that we currently make an exceptions from time to time & allow for such PRs. This will mean that (1) we will need to close some PRs manually, (2) for contributors who forget to link their issue we will need to request community-review and rtibblesbot review manually (to avoid triggering reviews on PRs that may be later closed by us). It can be revisited & simplified in a follow-up in case we decide to auto-close all unasigned PRs (still needs decision). In that way we could always either auto-review or auto-close (with a bot note that (a) the auto-close may be a mistake if the issue wasn't linked properly using closing keywords in the PR description + instruction to open a new PR with properly linked issue; (b) redirect to a place where to discuss the suggestion at first).

Acceptance Criteria

Auto close:

  • PRs opened linked to issues assigned to someone other than the PR author are autoclosed
  • A bot message is posted on the PR explaining why
  • The support-dev-notifications channel receives a notification of the autoclosure
  • Other automatic behaviours for community contributor PRs should not fire

Auto-review/label:

  • Bot review is auto requested on PRs linked to an issue assigned to the author
  • Follow up bot review message is removed
  • Community review label is auto applied on PRs linked to an issue assigned to the author
  • Follow up community review message is removed
  • Language for community and bot review is incorporated into the default community contributor message

AI use

Issue drafted & iteratively adjusted in collaboration with Claude. Final version carefully reviewed by @MisRob.

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 learningequality/.github

Tất cả issue của learningequality/.github

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.