-
Notifications
You must be signed in to change notification settings - Fork 5
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
AAE-21850 Clean up skip PRs condition #560
AAE-21850 Clean up skip PRs condition #560
Conversation
I'm starting to think that instead of adding so many exceptions to this list, since the "upstream" and "release" use cases are very specific to the single monorepo, maybe "whitelist-branches" should be used instead here, see doc at https://github.com/Alfresco/alfresco-build-tools?tab=readme-ov-file#enforce-pr-conventions Overall I'd be in favor of keeping only "pr-*" in that line, that matches the generic dependabot use case (and was the original intent of this step). WDYT please? cc @mauriziovitale @andrea-ligios |
if [[ $PR_USER != 'dependabot[bot]' && $BRANCH_NAME != pr-* && $BRANCH_NAME != upstream-* ]]; then | ||
if [[ $PR_USER != 'dependabot[bot]' && $BRANCH_NAME != pr-* && $BRANCH_NAME != upstream-* && $BRANCH_NAME != release-* ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a whitelist-branches
input for avoiding hardcoding branches here, which can change depending on the target repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as @atchertchian mentioned above most probably we need a wildcard as suffix
for branch in "${branches[@]}"; do
if [[ $branch == $BRANCH_NAME ]]; then
Or I am not sure if u can pass something like release-* as value
Checklist
Description