Skip to content

github: combine gh pr view calls into a single one - #18658

Draft
morphis wants to merge 1 commit into
canonical:mainfrom
morphis:optimize-gh-pr-view
Draft

github: combine gh pr view calls into a single one#18658
morphis wants to merge 1 commit into
canonical:mainfrom
morphis:optimize-gh-pr-view

Conversation

@morphis

@morphis morphis commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Checklist

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

This PR has no domain label assigned. @canonical/lxd-maintainers please set the appropriate domain labels.

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 the domain-reviewers GitHub Actions workflow by reducing GitHub CLI API calls, fetching PR labels and review requests in a single gh pr view invocation and parsing both from the captured JSON.

Changes:

  • Consolidate two gh pr view calls (labels + review requests) into one.
  • Parse labels and review requests from the captured JSON payload using jq.

Comment thread .github/workflows/domain-reviewers.yml Outdated
Signed-off-by: Simon Fels <simon.fels@canonical.com>

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

@tomponline

Copy link
Copy Markdown
Member

Please can this be rebased

@tomponline
tomponline marked this pull request as draft July 6, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants