8000 Add "first contribution" label · Issue #397 · python/core-workflow · GitHub
[go: up one dir, main page]

Skip to content
Add "first contribution" label  #397
Closed
@Mariatta

Description

@Mariatta

GitHub announced a recent change where maintainers need to "approve" workflow runs for PRs from first-time contributors.

Article: https://github.blog/changelog/2021-04-22-github-actions-maintainers-must-approve-first-time-contributor-workflow-runs/

Basically, before the CI would run on the PR, core devs need to first "approve" the workflow run, and just the workflow, not the whole PR. I have just came across this in one of the PR in CPython today.

Screenshot from GitHub article. https://docs.github.com/en/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks

image

One of the issue is that we can't easily tell (visually) of PRs from first time contributors until we open the PR itself. It is not shown in the list of PRs web UI.

Suggestion

I think we need to add a "first contribution" label to PRs from first time contributors.
Then we need to make the bot apply such label to the PR opened by first time contributors. There is a "membership" data that gets passed in the webhooks payload.

Perhaps there's an existing GH action that does this already? If not, it is easy to add to bedevere.

questions

  • What color do we want this label to be?
  • If writing our own automation, do we do this in bedevere, or GH action?

Metadata

Metadata

Assignees

No one assigned

    Labels

    labelsIssues related to GitHub label changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0