feat(pull_requests): add a "nothing to pull" when the diff files length is 0 or less
+ 16
- 2
@@ -1,5 +1,5 @@
 {
-  "_generatedAtUnix": 1665327556839,
+  "_generatedAtUnix": 1665328026365,
   "_hashAlgorithm": "sha1",
   "_version": 2,
   "islands": {

...
@@ -64,7 +64,7 @@
       "pathSourceMap": "./public/.islands/RepositoryInitialSetup.bundle.js.map"
     },
     "RepositoryPullRequestCreateForm": {
-      "hash": "da23a4714b31aff0f9a61eaf5635080ce8755859",
+      "hash": "8b7d27a4a368329ad810309272b7ff848395f1d2",
       "pathSource": "./app/islands/RepositoryPullRequestCreateForm.tsx",
       "pathBundle": "./public/.islands/RepositoryPullRequestCreateForm.bundle.js",
       "pathSourceMap": "./public/.islands/RepositoryPullRequestCreateForm.bundle.js.map"

app/islands/RepositoryPullRequestCreateForm.tsx
@@ -213,6 +213,20 @@ const RepositoryPullRequestCreateForm: ReactIsland<RepositoryPullRequestCreateFo
     }
     // PullRequestFormState.COMPARE
     if (isCompareState(state) && isCompareStateData(state, data)) {
+      if (data.fileDiffs.length <= 0) {
+        return (
+          <Grid.Col fluid nowrap>
+            <h1>Nothing to request Pull from... 🤔</h1>
+            <p>
+              The source and the target you've just selected seems to be equals.
+              Try comparing two branches that have some differences before you
+              can create a pull request from the diff.
+            </p>
+            <a href={`/${parentOrgSlug}/${repoSlug}/pulls/new`}>Go back</a>
+          </Grid.Col>
+        );
+      }
+
       return (
         <Grid.Col fluid nowrap>
           <form