chore: re-instate status call for protected branches in git connected apps (#40880)

This commit is contained in:
Diljit 2025-06-06 13:53:37 +05:30 committed by GitHub
parent 8f35929b19
commit ddad013ace
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,6 @@ import type { GitArtifactPayloadAction } from "git/store/types";
import { call, put, select } from "redux-saga/effects";
import { validateResponse } from "sagas/ErrorSagas";
import handleApiErrors from "./helpers/handleApiErrors";
import { selectProtectedMode } from "git/store/selectors/gitArtifactSelectors";
export default function* fetchStatusSaga(
action: GitArtifactPayloadAction<FetchStatusInitPayload>,
@ -21,22 +20,6 @@ export default function* fetchStatusSaga(
selectGitApiContractsEnabled,
);
const isCurrentBranchProtected: boolean = yield select(
selectProtectedMode,
artifactDef,
);
if (isCurrentBranchProtected) {
// Skip status check for protected branches and set empty status
yield put(
gitArtifactActions.resetGitStatus({
artifactDef,
}),
);
return;
}
response = yield call(
fetchStatusRequest,
artifactDef.artifactType,