Skip to content

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

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

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