mirror of
https://github.com/harness/drone.git
synced 2025-05-21 19:39:59 +08:00
feat: [code-288]: file commit history - p2
This commit is contained in:
parent
24b3ec9fe9
commit
057996811e
@ -110,7 +110,7 @@ export function FileContent({
|
||||
|
||||
const [page, setPage] = usePageIndex()
|
||||
const { data: commits, response } = useGet<{ commits: TypesCommit[]; rename_details: RenameDetails[] }>({
|
||||
path: `/api/v1/repos/${repoMetadata?.path}/+/commitsV2`,
|
||||
path: `/api/v1/repos/${repoMetadata?.path}/+/commits`,
|
||||
queryParams: {
|
||||
limit: LIST_FETCHING_LIMIT,
|
||||
page,
|
||||
|
@ -17,7 +17,7 @@ const RenameContentHistory = (props: { rename_details: RenameDetails[], repoMeta
|
||||
const [fileVisibility, setFileVisibility] = useState(initialFileVisibility || {});
|
||||
const [page, setPage] = usePageIndex();
|
||||
const { data: commits, response, refetch: getCommitHistory } = useGet<{ commits: TypesCommit[]; rename_details: RenameDetails[] }>({
|
||||
path: `/api/v1/repos/${repoMetadata?.path}/+/commitsV2`,
|
||||
path: `/api/v1/repos/${repoMetadata?.path}/+/commits`,
|
||||
lazy: true
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user