Skip to content

[Dev] Make PRs that doesn't match our PR format draft automatically #50379

Closed
Reranko05/arrow
#4

Description

@kou

Describe the enhancement requested

We have a CI job that checks our PR format:

- name: Check title
if: |
(github.event.action == 'opened' ||
github.event.action == 'edited')
uses: actions/github-script@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/dev_pr/title_check.js`);
script({github, context});

If it detects format mismatch, it adds a comment to notify it: https://github.com/apache/arrow/blob/main/.github/workflows/dev_pr/title_check.md

How about making the PR draft automatically in addition of the comment? Maintainers can ignore these PRs until they match our PR format.

Component(s)

Developer Tools

Activity

  1. raulcd commented on Jul 6, 2026

    @raulcd
    Member

    Sounds reasonable to me. I think the obvious offenders are the agent generated ones without human intervention, maybe the efforts from @thisisnic on adding new AGENTS.md files help with those.

  2. rok commented on Jul 6, 2026

    @rok
    Member

    Agreed! We just want to give clear human readable feedback to not introduce an unnecessary friction point.

  3. thisisnic commented on Jul 6, 2026

    @thisisnic
    Member

    Comments welcomed on #50375 if there are any other common AI failures we can try to account for.

    Do we also perhaps want to add an auto-comment for issues which have been created without our issue template, and lack a "Type" and "Component" label as there are AI-generated ones which look like this and so are less likely to get in front of the relevant person.

  4. kou commented on Jul 10, 2026

    @kou
    MemberAuthor

    @Reranko05 Do you want to work on this?

  5. Reranko05 commented on Jul 10, 2026

    @Reranko05
    Collaborator

    @kou Sure! I'll take a look.

  6. added 3 commits that reference this issue on Jul 13, 2026
  7. added a commit that references this issue on Jul 14, 2026
  8. added this to the 26.0.0 milestone on Jul 14, 2026
  9. kou commented on Jul 14, 2026

    @kou
    MemberAuthor

    Issue resolved by pull request 50467
    #50467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions