Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[repo] Problem with Push migated pages to Wikimedia GHA #991

Open
sarjona opened this issue Apr 26, 2024 · 0 comments
Open

[repo] Problem with Push migated pages to Wikimedia GHA #991

sarjona opened this issue Apr 26, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed repo

Comments

@sarjona
Copy link
Member

sarjona commented Apr 26, 2024

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

@sarjona sarjona added bug Something isn't working help wanted Extra attention is needed repo labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed repo
Projects
None yet
Development

No branches or pull requests

1 participant