Skip to content

[ core/pre-review ]github-actions pre-review#3045

Merged
MattCSmith merged 5 commits into
masterfrom
core/pre-review
Oct 10, 2025
Merged

[ core/pre-review ]github-actions pre-review#3045
MattCSmith merged 5 commits into
masterfrom
core/pre-review

Conversation

@LaurelineP
Copy link
Copy Markdown
Contributor

@LaurelineP LaurelineP commented Oct 5, 2025

Core and maintenance PR: Pre-review workflow

Purpose:

Automates pre-review feedback, label management, and contributor assignment to streamline the review process.
Labels: Changes Requested, invalid ,hacktoberfest-accepted

Goals

🔸 For maintainers

  • Facilitate reviews
    • Check generic review points specific to this repo
    • Generate a feedback message
    • Automatically label PRs (e.g., "Changes Requested" and "Invalid")

🔸 For Students

  • Provide quick feedback based on requirements we can do while reviewing PRs
    • Identify required files or invalid contributions
    • Highlight missing content or incomplete code

Note

Here are the points I couldn’t go further with or that raise questions:

  • Manual review actions (“approve” or “request changes”) when submitting the final review manually — I can’t test this on my own PR.
  • What triggers zero-bot to rerun the GitHub Action and post multiple comments.

Definitely not blocking - should be good to use as is.

🧪 Local Testing

Test different review feedback locally.

This script reviews contributors’ submissions, ensuring no files are added outside the Art/ folder.

 ⚠️ Note: Labels and assignments are not checked since this runs within GitHub CI/CD.
 ⚠️ Note: Using act to test the github actions locally will fail because of gh not installed in their docker images.

Steps

  1. Create a mock Art contribution (e.g., wrong filenames, JS in HTML, incorrect stylesheet, etc.).
  2. Commit your changes
  3. Run the script locally with your own variables (copy/paste into your terminal):
    
    GITHUB_HANDLE=YourHandle \
    GITHUB_PERMISSION_ROLE=admin \
    CHANGED_FILES="$(git diff --name-only master  | tr '\n' ' ')" \
    node ./generators/preReview.js
          
  4. Experiment with: Code commands changing roles (admin | maintain - considered as maintainer ) or any other ( considered as contributor )
    • Different GITHUB_HANDLE values.
    • Changing GITHUB_PERMISSION_ROLE:
      • admin / maintain → no feedback for files outside Art/.
      • any other role → feedback includes out-of-scope files.
Demo.test.local.-.different.behavior.as.maintainer.or.contributor.mov

Visual Example

Auto-generated preview with feedback list ot address
IMG_0936

Auto-generated preview with final feedback when addressed
image

@LaurelineP LaurelineP force-pushed the core/pre-review branch 18 times, most recently from 53aa7da to 8dbc48d Compare October 7, 2025 10:01
github-actions[bot]

This comment was marked as outdated.

github-actions[bot]

This comment was marked as outdated.

@LaurelineP LaurelineP force-pushed the core/pre-review branch 7 times, most recently from ad42264 to b4c7e9d Compare October 7, 2025 11:27
@zero-to-mastery zero-to-mastery deleted a comment from zero-to-mastery-bot Bot Oct 7, 2025
@zero-to-mastery zero-to-mastery deleted a comment from zero-to-mastery-bot Bot Oct 7, 2025
@LaurelineP LaurelineP removed invalid This doesn't seem right Changes Requested labels Oct 7, 2025
@LaurelineP LaurelineP removed their assignment Oct 7, 2025
@MattCSmith
Copy link
Copy Markdown
Member

This is really cool @LaurelineP
Love the direction this is going in 🚀

…cking a contribution submission

Updated workflow:
- testing and fixing different cases: current expecting an error in html for invalid stylesheet name
@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 433 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
7 382 3698

2 similar comments
@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 433 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
7 382 3698

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 433 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
7 382 3698

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 434 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
7 382 3698

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 8, 2025

Aloha @LaurelineP 🙌 Thanks for your contribution!
Before we can merge your submission, please address the following points.

Feedback

Tip

You can refer to README.md for additional guidance.

  • Overall feedback

    • Missing files in your contribution: include all required files inside the Art/ folder
      (3 files expected)
    • Remove unnecessary file: Art/LaurelineP/test-workflow/icon.png - icons are auto-generated after merge
    • Remove unnecessary file: Art/LaurelineP/test-workflow/index.js - not allowed for animations
    • Space(s) detected in file or folder name(s) - please remove them.
  • HTML feedback for Art/LaurelineP/test-workflow/index.html

    • Remove any JavaScript content from your HTML file
    • Missing linked stylesheet file: link the CSS file to your HTML
  • CSS feedback for Art/LaurelineP/test-workflow/styke.css

    • Incorrect filename: please rename your file as recommended
    • Missing animation: include at least one @Keyframesdefinition and use theanimation` property

Happy Coding! 🚀

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 8, 2025

Aloha @LaurelineP 🙌 - Thanks for your contribution!
Before we can merge your submission, please address the following points.

Feedback

Tip

You can refer to README.md for additional guidance.

  • Overall feedback

    • Missing files in your contribution: include all required files inside the Art/ folder - (3 files expected)
    • Remove unnecessary file: Art/LaurelineP/test-workflow/icon.png - icons are auto-generated after merge
    • Remove unnecessary file: Art/LaurelineP/test-workflow/index.js - not allowed for animations
    • Space(s) detected in file or folder name(s) - please remove them
    • Empty file, add content to your file Art/LaurelineP/test-workflow/icon.png
  • HTML feedback for Art/LaurelineP/test-workflow/index.html

    • Remove any JavaScript content from your HTML file
    • Missing linked stylesheet file: link the CSS file to your HTML
  • CSS feedback for Art/LaurelineP/test-workflow/styke.css

    • Incorrect filename: please rename as recommended or remove if unnecessary
    • Missing animation: include at least one @keyframes definition and use the animation property
  • CSS feedback for Art/LaurelineP/test-workflow/styles.css

    • Empty file, add the code for the file Art/LaurelineP/test-workflow/styles.css

Happy Coding! 🚀

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 8, 2025

Aloha @LaurelineP 🙌 - Thanks for your contribution!

🎉 Your submission meets all pre-review requirements!
It’s now awaiting final validation from a maintainer.

Happy Coding! 🚀

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

1 similar comment
@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 8, 2025

Aloha @LaurelineP 🙌 - Thanks for your contribution!

🎉 Your submission meets all pre-review requirements!
It’s now awaiting final validation from a maintainer.

Happy Coding! 🚀

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

5 similar comments
@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

@zero-to-mastery-bot
Copy link
Copy Markdown

🙏 Thanks for your pull request @LaurelineP, The team will now review and merge this request. In the mean time why not check out some of the other opensource projects available, contributions are greatly appreciated!

Some of the most popular are


PR Statistics

#️⃣ PR Number: Line Additions: 🗑️ Line Deletions:
3045 416 0
📑 Files Changed: Repo Stars: 🔱 Total Forks:
2 382 3698

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 9, 2025

Aloha @LaurelineP 🙌 - Thanks for your contribution!

🎉 Your submission meets all pre-review requirements!
It’s now awaiting final validation from a maintainer.

Happy Coding! 🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants