This can cause a lot of issues if repo maintainers are not careful.
It will trigger a workflow run for every commit on the PR. You need to enable workflow concurrency, but this could still lead to extra usage because the first workflows need to be cancelled after they are already started.
The merge gets really messy, unless the PR is squashed and merged (many people don’t even know what this is).
External services, such as SonarCloud, get confused and possibly rate limited
Suggestion:
Put all changes into one file
When there are new changes, and a PR is already open, rebase the PR branch and amend the commit instead of creating new ones
Thank you, but I have to +1 the original post and your answer doesn’t address the issue. Anyone watching the repo (except the person who set up the integration) will get an email for every single commit, which means up to 1000 times per day in a project with 100 files and 10 languages. Please consider grouping changes to multiple files in a single commit. Even if it was just grouped by language, it would reduce the spam a lot.
The complexity can increase depending on the size of the files, the structure of the project, etc. Sorry to bring this up, but this part of the system’s logic will remain unchanged.
To keep the process as simple as possible, ensure that your team is aligned on when and how to commit and push changes.
If you’re experiencing any specific issues or have further questions about optimizing your workflow, please let us know, and we’ll be happy to assist.