Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PULL REQUEST CHECKER WORKFLOW AUTOMATION 🚀 #1623

Closed
amiya-cyber opened this issue Nov 7, 2024 · 2 comments
Closed

PULL REQUEST CHECKER WORKFLOW AUTOMATION 🚀 #1623

amiya-cyber opened this issue Nov 7, 2024 · 2 comments
Labels
Closed: 🚫 This issue or PR is closed due to invalidity or prolonged inactivity and lack of updates.

Comments

@amiya-cyber
Copy link

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:

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

ASSIGN WITH LEVEL 3

Copy link

github-actions bot commented Nov 7, 2024

@amiya-cyber

It's great having you contribute to this project

Thanks for opening this Issue 🙌 , Welcome to Project Guidance 💖 We will review everything and get back to you.
Make sure to give a star to this repo before making a fork! Thank you :)

@Kushal997-das Kushal997-das added the Closed: 🚫 This issue or PR is closed due to invalidity or prolonged inactivity and lack of updates. label Nov 7, 2024
Copy link

github-actions bot commented Nov 7, 2024

Hi @amiya-cyber 👋, your issue #1623 has been successfully closed ✅. Thank you for your valuable contribution! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed: 🚫 This issue or PR is closed due to invalidity or prolonged inactivity and lack of updates.
Projects
None yet
Development

No branches or pull requests

2 participants