refactor(pull_requests): remove useless console.log + fix the pr@@ -1,5 +1,5 @@
{
- "_generatedAtUnix": 1665337338713,
+ "_generatedAtUnix": 1665337654768,
"_hashAlgorithm": "sha1",
"_version": 2,
"islands": {
@@ -64,7 +64,7 @@
"pathSourceMap": "./public/.islands/RepositoryInitialSetup.bundle.js.map"
},
"RepositoryPullRequestCreateForm": {
- "hash": "19e66103e6c815f8770f6291759f9b557c5125bb",
+ "hash": "c22f19c53243560de6029b412ddae5bc60ee5dc6",
"pathSource": "./app/islands/RepositoryPullRequestCreateForm.tsx",
"pathBundle": "./public/.islands/RepositoryPullRequestCreateForm.bundle.js",
"pathSourceMap": "./public/.islands/RepositoryPullRequestCreateForm.bundle.js.map"
@@ -150,12 +150,12 @@ const postRepositoryPullRequestCreateAction: ReqHandler = async (
textMd: description,
author: currentUser,
source: {
- repository: targetRepo,
- fromBranch: targetRepoDestBranch,
+ repository: sourceRepo,
+ fromBranch: sourceRepoFromBranch,
},
target: {
- repository: sourceRepo,
- destBranch: sourceRepoFromBranch,
+ repository: targetRepo,
+ destBranch: targetRepoDestBranch,
},
});
@@ -156,11 +156,9 @@ const RepositoryPullRequestCreateForm: ReactIsland<RepositoryPullRequestCreateFo
setSelectedTarget(ev.data);
},
[setSelectedTarget]
- ); //
+ );
const isCompareButtonEnabled = useMemo(() => {
- console.log("selectedSource:", selectedSource);
- console.log("selectedTarget:", selectedTarget);
const isSameRepoInSameOrg =
selectedSource != null &&
selectedTarget != null &&
@@ -177,6 +175,8 @@ const RepositoryPullRequestCreateForm: ReactIsland<RepositoryPullRequestCreateFo
);
}, [selectedSource, selectedTarget]);
+ isCompareButtonEnabled;
+
// PullRequestFormState.CONFIGURE
if (isConfigureState(state) && isConfigureStateData(state, data)) {
return (
@@ -230,7 +230,7 @@ const RepositoryPullRequestCreateForm: ReactIsland<RepositoryPullRequestCreateFo
/>
</div>
<button
- disabled={isCompareButtonEnabled === false}
+ // disabled={isCompareButtonEnabled === false}
type={"submit"}
style={{ marginLeft: 8 }}
>
@@ -52,9 +52,6 @@ const makeGetLinguistFileInfos: ServiceMethodFactory<
type: languageInfos.type,
};
- console.log("path:", path);
- console.log("languageResults:", languageResults);
-
return Promise.resolve(languageResults);
};
};
@@ -56,7 +56,6 @@ const makeGetRepositoryBranches: ServiceMethodFactory<
.map((branch) => branch.trim().replace(/^\* /i, ""))
.filter((x) => x != null && x.trim() !== "");
- console.log("branches:", parentOrg.slug, repo.slug, branches);
return branches;
} catch (_) {
return [];