Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ public boolean isExcluded(@NonNull SCMSourceRequest request, @NonNull SCMHead he
BitbucketRepository source = pullRequest.getSource().getRepository();
if (fullName.equalsIgnoreCase(source.getFullName())
&& pullRequest.getSource().getBranch().getName().equals(head.getName())) {
// End the format with newline to avoid logging this
// result blocked together with a later indexed branch
request.listener().getLogger().format(
"Ignoring %s because current strategy excludes branches "
+ "that ARE also filed as a pull request%n"
Copy link
Member

Choose a reason for hiding this comment

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

please write all words in lower case

, head.toString());
Copy link
Member

Choose a reason for hiding this comment

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

As you report in #284 the output log seems to be

Checking branch featureimage/new-nut-configurator
Ignoring SCMHead{'featureimage/new-nut-configurator'} because current strategy excludes branches that ARE also filed as a pull request

Instead of head.toString() could you use a method to produce a readable the branch name as in the above log branch featureimage/new-nut-configurator ?

return true;
}
}
Expand Down Expand Up @@ -272,6 +278,10 @@ public boolean isExcluded(@NonNull SCMSourceRequest request, @NonNull SCMHead he
return false;
}
}
request.listener().getLogger().format(
"Ignoring %s because current strategy excludes branches "
+ "that ARE NOT also filed as a pull request%n"
Copy link
Member

Choose a reason for hiding this comment

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

please write all words in lower case

, head.toString());
return true;
}
return false;
Expand Down