Skip to content

Reduce API usage by querying releases in a more targeted manner#2730

Merged
plengauer merged 8 commits into
mainfrom
plengauer-patch-3
Jan 1, 2026
Merged

Reduce API usage by querying releases in a more targeted manner#2730
plengauer merged 8 commits into
mainfrom
plengauer-patch-3

Conversation

@plengauer

Copy link
Copy Markdown
Owner

No description provided.

@plengauer plengauer self-assigned this Dec 21, 2025
@plengauer plengauer marked this pull request as ready for review December 21, 2025 09:16
Copilot AI review requested due to automatic review settings December 21, 2025 09:17
@plengauer plengauer enabled auto-merge (squash) December 21, 2025 09:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 optimizes GitHub API usage by introducing a targeted function to query individual releases instead of fetching all releases. The new gh_release() function accepts a tag parameter and queries either the latest release (when tag is "main") or a specific tagged release, reducing unnecessary API calls and pagination overhead.

Key changes:

  • Adds gh_release() function for targeted single-release queries
  • Uses GitHub API's /releases/latest and /releases/tag/{tag} endpoints to fetch specific releases

Comment thread actions/instrument/shared/github.sh
Comment thread actions/instrument/shared/github.sh Outdated
Copilot AI review requested due to automatic review settings December 21, 2025 09:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread actions/instrument/shared/install.sh Outdated
Copilot AI review requested due to automatic review settings December 21, 2025 09:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread actions/instrument/job/inject_and_init.sh Outdated
Copilot AI review requested due to automatic review settings December 21, 2025 09:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 3 out of 3 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings December 21, 2025 17:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread actions/instrument/shared/github.sh
Comment thread actions/instrument/shared/install.sh
Comment thread actions/instrument/job/inject_and_init.sh
@plengauer plengauer merged commit fabf81f into main Jan 1, 2026
1664 of 1692 checks passed
@plengauer plengauer deleted the plengauer-patch-3 branch January 1, 2026 08:59
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