Skip to content

Finished #429

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 2 commits into
base: main
Choose a base branch
from
Open

Finished #429

wants to merge 2 commits into from

Conversation

texasmadecode
Copy link

Changes:
added name to list

@texasmadecode
Copy link
Author

Added GitHub Actions workflow for auto-merge with file and profanity checks

This pull request adds a GitHub Actions workflow to automatically merge pull requests if:

No new files are added.

No bad words are found in the changes.

If new files are added, or profanity is detected, a comment will be posted asking the contributor to revise the PR.

Changes:

Added .github/workflows/automerge.yml for the PR automation workflow.

The workflow performs checks on PR diffs, ensuring no new files are added and no profanity is present.

Includes automatic merging for safe PRs and comments for PRs that need revision.

Example of Usage:
If a user submits a PR adding new files, they will get a comment:
"⚠️ Please do not add new files — just add your name to the README.md 😊"

If profanity is detected in the PR, they will get a comment:
"🚫 Profanity detected in your submission. Please keep it clean and respectful!"

Merge Strategy:
Uses Squash merge to keep a clean history when merging valid PRs.

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

Successfully merging this pull request may close these issues.

1 participant