Data-Sculptor-X / VOJ-ReactJS

12 stars 29 forks source link

Implement PR Issue Checker Workflow #46

Closed smog-root closed 1 month ago

smog-root commented 1 month ago

Description: We need to create a GitHub Actions workflow that automates the validation of pull requests (PRs). This workflow will ensure that all PRs meet the following criteria before being merged:

PR Description Check: Every PR must have a description. If the description is missing, the PR should fail the check.

Issue Reference Check: The PR description must include an issue reference in the format Fixes #. If the PR is not addressing an existing issue, it should mention Fixes #NEW as a placeholder.

Acceptance Criteria:

The workflow checks the PR body for:

If the criteria are not met:

If the checks pass:

Expected Output:

Additional Notes:

Note: i'm expecting a gssoc-ext with level3 (or) level2 and a hacktoberfest-accepted label!

@Prithwi32

github-actions[bot] commented 1 month ago

👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our VOJ team will review it shortly. Stay tuned!

Prithwi32 commented 1 month ago

Description: We need to create a GitHub Actions workflow that automates the validation of pull requests (PRs). This workflow will ensure that all PRs meet the following criteria before being merged:

PR Description Check: Every PR must have a description. If the description is missing, the PR should fail the check.

Issue Reference Check: The PR description must include an issue reference in the format Fixes #. If the PR is not addressing an existing issue, it should mention Fixes #NEW as a placeholder.

Acceptance Criteria:

  • A GitHub Action workflow is triggered on PR events (opened, edited).

The workflow checks the PR body for:

  • A non-empty description.
  • The presence of Fixes # or Fixes #NEW.

If the criteria are not met:

  • The workflow should fail and return clear error messages.

If the checks pass:

  • A confirmation message is outputted.

Expected Output:

  • Error message if the PR description is missing.
  • Error message if the issue reference is missing or incorrectly formatted.
  • Success message when all checks are satisfied.

Additional Notes:

  • This issue may serve as a foundation for more advanced PR validation (e.g., commit message format, label enforcement).
  • We can later extend this to check for specific branch naming conventions or enforce the addition of specific labels.

Note: i'm expecting a gssoc-ext with level3 (or) level2 and a hacktoberfest-accepted label!

@Prithwi32

@smog-root i don't think automatic PR merge is suitable...we need approval from project maintainer before PR merge..

smog-root commented 1 month ago

It doesn't auto approve! It send a comment on the PR after the PR is MERGED!!

smog-root commented 1 month ago

It helps contributers know that PR is merged by a notification!!

Prithwi32 commented 1 month ago

Check #23 issue, it related to this only

smog-root commented 1 month ago

It's just on the issue!! I can do it on PR's@Prithwi32

smog-root commented 1 month ago

PR open and close,

PR merge too! Can I ??

Prithwi32 commented 1 month ago

PR open and close,

PR merge too! Can I ??

Sorry,...its not needed, we are tagging person in PR and reviewing, so the user will get notification..please look into other issues..Thank you