Skip to content

Commit 895a5da

Browse files
authored
Merge branch 'main' into rl.mark.form
2 parents 13149c2 + bbfcc2f commit 895a5da

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Part.kt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,7 @@ internal constructor(
157157
}
158158
}
159159

160-
/**
161-
* Represents function call name and params received from requests.
162-
*
163-
* @param name the name of the function to call
164-
* @param args the function parameters and values as a [Map]
165-
* @param id Unique id of the function call. If present, the returned [FunctionResponsePart] should
166-
* have a matching `id` field.
167-
*/
160+
/** Represents function call name and params received from requests. */
168161
public class FunctionCallPart
169162
internal constructor(
170163
public val name: String,
@@ -174,6 +167,12 @@ internal constructor(
174167
internal val thoughtSignature: String?
175168
) : Part {
176169

170+
/**
171+
* @param name the name of the function to call
172+
* @param args the function parameters and values as a [Map]
173+
* @param id Unique id of the function call. If present, the returned [FunctionResponsePart]
174+
* should have a matching `id` field.
175+
*/
177176
@JvmOverloads
178177
public constructor(
179178
name: String,

plugins/src/main/java/com/google/firebase/gradle/plugins/ci/AffectedProjectFinder.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import com.google.common.collect.ImmutableSet;
1818
import com.google.common.io.CharStreams;
19+
import com.google.common.io.Files;
1920
import java.io.File;
2021
import java.io.IOException;
2122
import java.io.InputStreamReader;
@@ -39,6 +40,8 @@ public AffectedProjectFinder(Project project, List<Pattern> ignorePaths) {
3940
this(project, changedPaths(project.getRootDir()), ignorePaths);
4041
}
4142

43+
private static final Set<String> DOC_EXTENSIONS = ImmutableSet.of("md", "txt", "html");
44+
4245
public AffectedProjectFinder(
4346
Project project, Set<String> changedPaths, List<Pattern> ignorePaths) {
4447
this.project = project;
@@ -53,9 +56,17 @@ public AffectedProjectFinder(
5356
}
5457
return true;
5558
})
59+
.filter(p -> !isDocFile(p))
5660
.collect(Collectors.toSet());
5761
}
5862

63+
private static boolean isDocFile(String path) {
64+
if (path.startsWith("docs/")) {
65+
return true;
66+
}
67+
return DOC_EXTENSIONS.contains(Files.getFileExtension(path));
68+
}
69+
5970
Set<Project> find() {
6071
Set<String> paths = new HashSet<>(changedPaths);
6172
Set<Project> projects = changedSubProjects(project, paths);

0 commit comments

Comments
 (0)