diff --git a/dist/index.js b/dist/index.js index f2a3db1..01ac7a6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3216,6 +3216,7 @@ const { Client } = __nccwpck_require__(324); __nccwpck_require__(437).config(); const SUPPORTED_PROPERTY_TYPES = { + URL: "url", RICH_TEXT: "rich_text", MULTI_SELECT: "multi_select", }; @@ -3241,6 +3242,15 @@ const generateUpdateProps = ( }; } + if (propertyType === SUPPORTED_PROPERTY_TYPES.URL) { + const url = pageDetails.properties[propertyName].url; + url.push({ name: newValue }); + + return { + url: url, + }; + } + if (existingValueAction === SUPPORTED_EXISTING_VALUE_ACTIONS.OVERWRITE) { return { rich_text: [{ type: "text", text: { content: newValue } }], diff --git a/package-lock.json b/package-lock.json index 583cd5e..8856d08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "notion-update-page", - "version": "1.0.5", + "version": "1.0.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "notion-update-page", - "version": "1.0.5", + "version": "1.0.6", "license": "ISC", "dependencies": { "@actions/core": "^1.5.0", diff --git a/package.json b/package.json index 47cbcf6..2124cf5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "notion-update-page", "description": "Updating Notion page on merge of pull request", - "version": "1.0.5", + "version": "1.0.6", "main": "index.js", "scripts": { "start": "NODE_ENV=offline node index.js",