Skip to content

Auto-welcome First-Time Contributors #21

Description

@naheel0

Auto-welcome First-Time Contributors

Goal

Create a GitHub Action that welcomes first-time contributors who open PRs adding a single entry to Contributors.md.

Requirements

Trigger

  • pull_request (opened, synchronize)

Validate

  • Only Contributors.md is changed
  • Exactly one new entry added
  • Format:

Behavior

On Success

  • Add labels: first-timer, welcome
  • Comment:
    🎉 Thanks for your first contribution!
    Please check CONTRIBUTING.md and CODE_OF_CONDUCT.md.

On Failure

  • Add label: needs-fix
  • Comment:
    ⚠️ Please fix your PR:
    • Only edit Contributors.md
    • Add one entry only
    • Use correct format

Security

  • Do not run code from forks
  • Use safe validation (API or internal script)

Acceptance Criteria

  • Runs on PR open/sync
  • Correct labels and comments applied
  • Safe for forked PRs

Test

  • Valid PR → success
  • Invalid PR → failure

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions