Skip to content

Commit ad90665

Browse files
committed
Fix links check in hash
1 parent 6f7c8c3 commit ad90665

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ process.env.INPUT_NOTION_TOKEN = process.env.NOTION_TOKEN
66
process.env.INPUT_GITHUB_TOKEN = process.env.GITHUB_TOKEN
77
process.env.INPUT_REPOSITORY_TYPE = 'public'
88
process.env.INPUT_GITHUB_OWNER = 'infinitaslearning'
9-
process.env.INPUT_REPOSITORY_FILTER = 'notion-github-catalog' // '.*'
9+
process.env.INPUT_REPOSITORY_FILTER = '.*'
1010
process.env.INPUT_REPOSITORY_BATCH_SIZE = '50'
1111
process.env.INPUT_PUSH_MISSING = 'true'
1212
process.env.INPUT_DATABASE = 'cecaf0beb15945158d155866ff9acce8'

src/services.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ const createProperties = (repo, pageHash, dependsOn, { systems, owners, structur
8585
}
8686
}
8787

88-
// Always have to check the hash afterwards, excluding the hash and the key but including links
89-
const newPageHash = hash({ links: repo.metadata.links, ...properties }, {
88+
// Always have to check the hash afterwards, excluding the hash and the key
89+
const hashProperties = properties
90+
// Add the links if they exist to the hash
91+
if (repo.metadata?.links) {
92+
hashProperties.links = repo.metadata?.links
93+
}
94+
const newPageHash = hash(hashProperties, {
9095
excludeKeys: (key) => {
9196
return key === 'Hash' || key === 'Updated'
9297
}

0 commit comments

Comments
 (0)