Skip to content

Commit

Permalink
Don't suggest updates to private repo rule attributes
Browse files Browse the repository at this point in the history
Fixes #25192

Closes #25194.

PiperOrigin-RevId: 723594158
Change-Id: I12aaced1db4f167c4a9691623128fe0d3eb15686
  • Loading branch information
fmeum authored and copybara-github committed Feb 5, 2025
1 parent a965460 commit 5e2dfba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public RepositoryResolvedEvent(Rule rule, StructImpl attrs, Path outputDirectory
ImmutableMap.Builder<String, Object> defaults = ImmutableMap.builder();

for (Attribute attr : rule.getAttributes()) {
if (!attr.isPublic()) {
continue;
}
String name = attr.getPublicName();
try {
Object value = attrs.getValue(name, Object.class);
Expand Down

0 comments on commit 5e2dfba

Please sign in to comment.