Skip to content

Codex: run update-link-index on default branch instead of hardcoded main#22

Merged
reakaleek merged 1 commit intomainfrom
fix/codex-update-link-index-default-branch
Mar 5, 2026
Merged

Codex: run update-link-index on default branch instead of hardcoded main#22
reakaleek merged 1 commit intomainfrom
fix/codex-update-link-index-default-branch

Conversation

@reakaleek
Copy link
Copy Markdown
Member

What

  • Run the update-link-index job when pushing to the repository default branch instead of only main
  • Repos with master (or any other default branch) can now register in the codex link index

Why

  • Enables onboarding repos whose default branch is master to Elastic Internal Docs
  • The previous check github.ref == 'refs/heads/main' caused update-link-index to never run for those repos, so they never appeared in the codex

Notes

  • Uses github.event.repository.default_branch to support any default branch name

Made with Cursor

@reakaleek reakaleek added the fix label Mar 3, 2026
@reakaleek reakaleek requested review from a team, Mpdreamz and cotti March 3, 2026 21:01
@reakaleek reakaleek merged commit fe1d117 into main Mar 5, 2026
3 checks passed
@reakaleek reakaleek deleted the fix/codex-update-link-index-default-branch branch March 5, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants