Refresh GitHub issues after creation (#3018)
Implements the no-cache GitHub issue list refresh path described in docs/refresh-github-issues-after-create.md. Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -10,7 +10,8 @@ const RepoSelector = z.object({
|
||||
const WorkItemsList = RepoSelector.extend({
|
||||
limit: OptionalFiniteNumber,
|
||||
query: OptionalString,
|
||||
before: OptionalString
|
||||
before: OptionalString,
|
||||
noCache: z.boolean().optional()
|
||||
})
|
||||
|
||||
const IssuesList = RepoSelector.extend({
|
||||
@@ -283,7 +284,13 @@ export const GITHUB_METHODS: RpcMethod[] = [
|
||||
name: 'github.listWorkItems',
|
||||
params: WorkItemsList,
|
||||
handler: async (params, { runtime }) =>
|
||||
runtime.listRepoWorkItems(params.repo, params.limit, params.query, params.before)
|
||||
runtime.listRepoWorkItems(
|
||||
params.repo,
|
||||
params.limit,
|
||||
params.query,
|
||||
params.before,
|
||||
params.noCache
|
||||
)
|
||||
}),
|
||||
defineMethod({
|
||||
name: 'github.listIssues',
|
||||
|
||||
Reference in New Issue
Block a user