github-issue-tower-defence-management 2.177.1 → 2.178.0

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.
@@ -6,7 +6,7 @@
6
6
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
7
7
  <link rel="manifest" href="/manifest.webmanifest" />
8
8
  <title>TDPM Console</title>
9
- <script type="module" crossorigin src="/assets/index-qne1gT7I.js"></script>
9
+ <script type="module" crossorigin src="/assets/index-DWY_h56F.js"></script>
10
10
  <link rel="stylesheet" crossorigin href="/assets/index-DrLmS10d.css">
11
11
  </head>
12
12
  <body>
@@ -244,7 +244,8 @@ function isIssueOrPullRequestBodyResponse(value) {
244
244
  function isIssueOrPullRequestStateResponse(value) {
245
245
  return (isRecord(value) &&
246
246
  typeof value.state === 'string' &&
247
- typeof value.title === 'string');
247
+ typeof value.title === 'string' &&
248
+ (value.state_reason === undefined || isNullableString(value.state_reason)));
248
249
  }
249
250
  function isIssueCommentsResponseItem(value) {
250
251
  if (!isRecord(value))
@@ -2978,6 +2979,7 @@ class ApiV3CheerioRestIssueRepository extends BaseGitHubRepository_1.BaseGitHubR
2978
2979
  merged: body.merged,
2979
2980
  isPullRequest: true,
2980
2981
  title: body.title,
2982
+ stateReason: '',
2981
2983
  };
2982
2984
  }
2983
2985
  const issueStateUrl = `https://api.github.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues/${issueNumber}`;
@@ -3003,6 +3005,7 @@ class ApiV3CheerioRestIssueRepository extends BaseGitHubRepository_1.BaseGitHubR
3003
3005
  merged: false,
3004
3006
  isPullRequest: false,
3005
3007
  title: body.title,
3008
+ stateReason: body.state_reason ?? '',
3006
3009
  };
3007
3010
  };
3008
3011
  this.getPullRequestSummary = async (prUrl) => {