mirror of
https://github.com/harness/drone.git
synced 2025-05-22 03:49:54 +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 [page, setPage] = usePageIndex()
|
||||||
const { data: commits, response } = useGet<{ commits: TypesCommit[]; rename_details: RenameDetails[] }>({
|
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: {
|
queryParams: {
|
||||||
limit: LIST_FETCHING_LIMIT,
|
limit: LIST_FETCHING_LIMIT,
|
||||||
page,
|
page,
|
||||||
|
@ -17,7 +17,7 @@ const RenameContentHistory = (props: { rename_details: RenameDetails[], repoMeta
|
|||||||
const [fileVisibility, setFileVisibility] = useState(initialFileVisibility || {});
|
const [fileVisibility, setFileVisibility] = useState(initialFileVisibility || {});
|
||||||
const [page, setPage] = usePageIndex();
|
const [page, setPage] = usePageIndex();
|
||||||
const { data: commits, response, refetch: getCommitHistory } = useGet<{ commits: TypesCommit[]; rename_details: RenameDetails[] }>({
|
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
|
lazy: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user