Skip to content

Automate article link map updates#7

Merged
jsoningram merged 5 commits intomainfrom
jingram/automate-article-link-map-updates
Apr 13, 2026
Merged

Automate article link map updates#7
jsoningram merged 5 commits intomainfrom
jingram/automate-article-link-map-updates

Conversation

@jsoningram
Copy link
Copy Markdown
Collaborator

@jsoningram jsoningram commented Apr 13, 2026

Creates a new workflow to automates the article link map updates


Note

Medium Risk
Adds a scheduled GitHub Actions workflow that writes to the repo and opens/updates PRs using secrets and the GitHub token, so misconfiguration could create unwanted commits/PRs. Changes are isolated to CI automation and only touch src/config/zendesk.ts when the mapping changes.

Overview
Automates updating ARTICLE_LINK_MAP by adding a new scheduled/manual GitHub Actions workflow that runs npm run update-article-link-map and checks whether src/config/zendesk.ts changed.

When changes are detected, the workflow generates a diff-based PR body (added/removed/updated article IDs), commits to automated/update-article-link-map, and creates or updates a PR; otherwise it exits without opening a PR.

Reviewed by Cursor Bugbot for commit e792d72. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment thread .github/workflows/update-article-link-map.yml
Comment thread .github/workflows/update-article-link-map.yml
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 85444ac. Configure here.

Comment thread .github/workflows/update-article-link-map.yml Outdated
1. Added Setup Node, Install dependencies steps — npm run
update-article-link-map would have failed without Node and node_modules
present.

2. Fixed the workflow link URL — now uses
$GITHUB_SERVER_URL/$GITHUB_REPOSITORY env vars to build an absolute URL
that resolves correctly from a PR page.

Further clean up
@jsoningram jsoningram merged commit f599192 into main Apr 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant