java.lang.Object
com.github.copilot.rpc.SessionContext
com.github.copilot.rpc.SessionListFilter
Filter options for listing sessions.
Extends SessionContext to provide filtering capabilities with fluent
setter methods that return the filter instance for method chaining.
Example Usage
// Filter sessions by repository
var filter = new SessionListFilter().setRepository("owner/repo");
var sessions = client.listSessions(filter).get();
// Filter by working directory
var filter = new SessionListFilter().setCwd("/path/to/project");
var sessions = client.listSessions(filter).get();
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the filter for git branch.Sets the filter for exact cwd match.setGitRoot(String gitRoot) Sets the filter for git root directory.setRepository(String repository) Sets the filter for repository (in "owner/repo" format).Methods inherited from class com.github.copilot.rpc.SessionContext
getBranch, getCwd, getGitRoot, getRepository
-
Constructor Details
-
SessionListFilter
public SessionListFilter()
-
-
Method Details
-
setCwd
Sets the filter for exact cwd match.- Overrides:
setCwdin classSessionContext- Parameters:
cwd- the current working directory to filter by- Returns:
- this filter for method chaining
-
setGitRoot
Sets the filter for git root directory.- Overrides:
setGitRootin classSessionContext- Parameters:
gitRoot- the git root path to filter by- Returns:
- this filter for method chaining
-
setRepository
Sets the filter for repository (in "owner/repo" format).- Overrides:
setRepositoryin classSessionContext- Parameters:
repository- the repository identifier to filter by- Returns:
- this filter for method chaining
-
setBranch
Sets the filter for git branch.- Overrides:
setBranchin classSessionContext- Parameters:
branch- the branch name to filter by- Returns:
- this filter for method chaining
-