Skip to content

Addition of pr create automate message #103

Description

@Soumyosish

Add Automated PR Comment on Pull Request Creation

Description
Set up a GitHub Actions workflow that automatically posts a welcome/checklist comment when a new pull request is created. This helps contributors know exactly what needs to be checked and ensures consistent PR quality.

What Needs to Be Done

  1. Create a new workflow file: .github/workflows/pr-welcome.yml
  2. The workflow should trigger on pull_request events (type: opened)
  3. Post an automated comment with:
    • Welcome message thanking the contributor
    • PR checklist reminders (self-review, tests, screenshots for UI changes)
    • DSCWoC label reminders (dscwoc + difficulty label required)
    • Link to contribution guidelines

Example Workflow

name: PR Welcome Comment
on:
  pull_request:
    types: [opened]
jobs:
  comment:
    runs-on: ubuntu-latest
    permissions:
      pull-requests: write
    steps:
      - uses: actions/github-script@v7
        with:
          script: |
            github.rest.issues.createComment({
              owner: context.repo.owner,
              repo: context.repo.repo,
              issue_number: context.payload.pull_request.number,
              body: "Thank you for your contribution! Please ensure..."
            });

Files to Create

  • .github/workflows/pr-welcome.yml

Acceptance Criteria

  • Automated comment posted on every new PR
  • Comment includes PR checklist and guidelines
  • References DSCWoC label requirements
  • Does not trigger on PR updates (only on open)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions