Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/client/src/git/requests/pullRequest.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { ApiResponse } from "api/types";
import type { GitArtifact } from "git/types";

export interface PullResponseData {
artifact: GitArtifact;
mergeStatus: {
isMergeAble: boolean;
status: string; // pull merge status
Expand Down
2 changes: 1 addition & 1 deletion app/client/src/git/sagas/pullSaga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function* pullSaga(
yield put(
gitArtifactActions.pullSuccess({
artifactDef,
responseData: response.data,
responseData: response.data.artifact,
}),
);
}
Expand Down
4 changes: 3 additions & 1 deletion app/client/src/git/store/actions/pullActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export const pullInitAction = createArtifactAction<PullInitPayload>((state) => {
return state;
});

export type PullSuccessPayload = GitAsyncSuccessPayload<PullResponseData>;
export type PullSuccessPayload = GitAsyncSuccessPayload<
PullResponseData["artifact"]
>;

export const pullSuccessAction = createArtifactAction<PullSuccessPayload>(
(state) => {
Expand Down
Loading