Skip to content

feat: dynamically export and set gitref metadata#26

Merged
esolitos merged 1 commit intomainfrom
marlon/feat/dynamic-gitref-export
Nov 18, 2025
Merged

feat: dynamically export and set gitref metadata#26
esolitos merged 1 commit intomainfrom
marlon/feat/dynamic-gitref-export

Conversation

@esolitos
Copy link
Collaborator

@esolitos esolitos commented Nov 17, 2025

What

  • Replace hardcoded extraction of git references with a loop that processes all commits in JSON.
  • dynamically set corresponding buildkite metadata

Why

  • This improves scalability and maintainability as new repos are added without modifying the script.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces hardcoded git reference extraction with a dynamic loop that processes all commits from the JSON response, improving scalability as new repositories are added to the system.

Key Changes:

  • Replaced two hardcoded jq extractions for specific repos with a while loop that iterates over all commits
  • Dynamic variable naming that converts repo names to uppercase with underscores for environment variables
  • Maintains backward compatibility by creating the same metadata keys in buildkite

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@esolitos esolitos force-pushed the marlon/feat/dynamic-gitref-export branch 5 times, most recently from 2e225fb to 3ea8bf6 Compare November 17, 2025 21:32
@esolitos esolitos requested a review from Copilot November 17, 2025 21:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Replace hardcoded extraction of git references with a loop that
processes all commits in JSON. Export environment variables for each
repo using uppercase and underscore naming, and set corresponding
buildkite metadata dynamically. This improves scalability and
maintainability as new repos are added without modifying the script.
@esolitos esolitos force-pushed the marlon/feat/dynamic-gitref-export branch from 3ea8bf6 to 1ea7272 Compare November 17, 2025 21:49
@esolitos esolitos enabled auto-merge (rebase) November 17, 2025 21:50
Copy link
Member

@gjoranv gjoranv left a comment

Choose a reason for hiding this comment

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

Great!

@esolitos esolitos merged commit 38d0f3b into main Nov 18, 2025
1 check passed
@esolitos esolitos deleted the marlon/feat/dynamic-gitref-export branch November 18, 2025 11:48
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.

3 participants