patchrelay 0.48.0 → 0.49.1

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.
package/dist/webhooks.js CHANGED
@@ -195,6 +195,7 @@ function extractIssueMetadata(payload) {
195
195
  return undefined;
196
196
  }
197
197
  const teamRecord = asRecord(issueRecord.team);
198
+ const parentRecord = asRecord(issueRecord.parent);
198
199
  const identifier = getString(issueRecord, "identifier");
199
200
  const title = getString(issueRecord, "title");
200
201
  const url = getString(issueRecord, "url") ?? payload.url;
@@ -208,12 +209,18 @@ function extractIssueMetadata(payload) {
208
209
  const delegateId = getString(issueRecord, "delegateId") ?? getString(delegateRecord ?? {}, "id");
209
210
  const delegateName = getString(delegateRecord ?? {}, "name");
210
211
  const description = getString(issueRecord, "description");
212
+ const parentId = getString(issueRecord, "parentId") ?? getString(parentRecord ?? {}, "id");
213
+ const parentIdentifier = getString(parentRecord ?? {}, "identifier");
214
+ const parentTitle = getString(parentRecord ?? {}, "title");
211
215
  const rawPriority = issueRecord.priority;
212
216
  const priority = typeof rawPriority === "number" ? rawPriority : undefined;
213
217
  const rawEstimate = issueRecord.estimate;
214
218
  const estimate = typeof rawEstimate === "number" ? rawEstimate : undefined;
215
219
  return {
216
220
  id,
221
+ ...(parentId ? { parentId } : {}),
222
+ ...(parentIdentifier ? { parentIdentifier } : {}),
223
+ ...(parentTitle ? { parentTitle } : {}),
217
224
  ...(identifier ? { identifier } : {}),
218
225
  ...(title ? { title } : {}),
219
226
  ...(description ? { description } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.48.0",
3
+ "version": "0.49.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {