Skip to content

Commit

Permalink
ci: version bump to v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Automated Version Bump committed Aug 30, 2022
1 parent 8466598 commit b6bfa21
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand All @@ -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 } }],
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit b6bfa21

Please sign in to comment.