git-stack-cli 1.11.3 → 1.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30163,7 +30163,7 @@ function DetectInitialPR(props) {
30163
30163
  if (!has_existing_metadata) {
30164
30164
  // check for pr with matching branch name to initialize group
30165
30165
  const pr = await pr_status(branch_name);
30166
- if (pr) {
30166
+ if (pr && pr.state === "OPEN") {
30167
30167
  return patch({ status: "prompt", pr });
30168
30168
  }
30169
30169
  }
@@ -37392,7 +37392,7 @@ async function command() {
37392
37392
  .wrap(123)
37393
37393
  // disallow unknown options
37394
37394
  .strict()
37395
- .version("1.11.3" )
37395
+ .version("1.11.4" )
37396
37396
  .showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`")
37397
37397
  .help("help", "Show usage via `git stack help`")
37398
37398
  .argv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-stack-cli",
3
- "version": "1.11.3",
3
+ "version": "1.11.4",
4
4
  "description": "",
5
5
  "author": "magus",
6
6
  "license": "MIT",
@@ -126,7 +126,8 @@ export function DetectInitialPR(props: Props) {
126
126
  if (!has_existing_metadata) {
127
127
  // check for pr with matching branch name to initialize group
128
128
  const pr = await github.pr_status(branch_name);
129
- if (pr) {
129
+
130
+ if (pr && pr.state === "OPEN") {
130
131
  return patch({ status: "prompt", pr });
131
132
  }
132
133
  }