Skip to content

Add SVGO warning comment to pull requests #280

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

mrleemurray
Copy link
Contributor

This pull request introduces a new GitHub Action to add a warning comment to pull requests, reminding contributors to run svgo before merging.

  • Added a new workflow file .github/workflows/svgo-pr-message.yml to create a GitHub Action that triggers on pull request events (opened, edited, reopened).
  • The action uses actions/github-script@v6 to add a comment to the pull request, reminding contributors to run npm run svgo.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
@mrleemurray mrleemurray removed the request for review from joaomoreno February 6, 2025 12:52
@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
@mrleemurray mrleemurray closed this Feb 6, 2025
@mrleemurray mrleemurray reopened this Feb 6, 2025
Copy link

github-actions bot commented Feb 6, 2025

⚠️ Please ensure all SVG files are optimized using SVGO, by running npm run svgo, before merging this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant