moodle / devdocs

Source of the Moodle Developer Resources and Documentation

Home Page:https://moodledev.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[repo] Problem with Push migated pages to Wikimedia GHA

sarjona opened this issue · comments

What is the issue that you're experiencing?

After merging #200, the Push migated pages to Wikimedia GHA started failing: https://github.com/moodle/devdocs/actions/runs/8827507626/job/24247452474#logs with the following error:

info: Starting update of migrated pages in remote site
/home/runner/work/devdocs/devdocs/scripts/utils.js:63
    articleData.newDocIds = Array.from(articleData.data.matchAll(docRegexp))
                                                        ^

TypeError: Cannot read properties of undefined (reading 'matchAll')
    at /home/runner/work/devdocs/devdocs/scripts/utils.js:63:57
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /home/runner/work/devdocs/devdocs/scripts/utils.js:322:33
    at async Command.<anonymous> (/home/runner/work/devdocs/devdocs/scripts/wikimedia-sync.js:67:9)

That's probably related to the fact that this page was migrated into an existing page and now /general/community/contribute.md has a duplicated entry in migratedPages.yml.

Are you able to provide a patch for this?

None