Skip to content

feat: add script to retrieve organization databaseId for VNet injection#132

Merged
joshjohanning merged 7 commits into
mainfrom
organization-id
Oct 21, 2025
Merged

feat: add script to retrieve organization databaseId for VNet injection#132
joshjohanning merged 7 commits into
mainfrom
organization-id

Conversation

@joshjohanning

Copy link
Copy Markdown
Owner

New script for organization databaseId retrieval:

  • Added get-organization-database-id-for-vnet.sh: A Bash script that uses the GitHub CLI (gh api graphql) to fetch the databaseId of a specified organization, intended for VNet injection configuration.

@joshjohanning joshjohanning requested a review from Copilot October 21, 2025 14:28

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 adds a new script to retrieve an organization's databaseId, which is required for VNet injection configuration with GitHub-hosted runners. The script uses the GitHub GraphQL API via gh api graphql to fetch this information.

Key changes:

  • New script get-organization-database-id-for-vnet.sh that queries the GraphQL API for an organization's databaseId
  • Documentation added to gh-cli/README.md with usage instructions and a reference link to GitHub's VNet injection documentation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
gh-cli/get-organization-database-id-for-vnet.sh New script that retrieves organization databaseId via GraphQL API
gh-cli/README.md Added documentation entry for the new script with usage example and VNet injection reference

Comment thread gh-cli/get-organization-database-id-for-vnet.sh Outdated
Comment thread gh-cli/get-organization-database-id-for-vnet.sh Outdated
Comment thread gh-cli/README.md Outdated
@github-actions

github-actions Bot commented Oct 21, 2025

Copy link
Copy Markdown

📋 Lint Results

⚡ ./gh-cli scripts

✅ No issues found.

🔧 ./scripts scripts

✅ No issues found.

Lint results updated at Tue Oct 21 14:50:08 UTC 2025

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings October 21, 2025 14: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 2 comments.

Comment thread gh-cli/get-organization-database-id-for-vnet.sh Outdated
Comment thread gh-cli/get-organization-database-id-for-vnet.sh Outdated
joshjohanning and others added 2 commits October 21, 2025 09:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings October 21, 2025 14:31

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 gh-cli/get-organization-database-id-for-vnet.sh
Comment thread gh-cli/get-organization-database-id-for-vnet.sh Outdated
Comment thread gh-cli/get-organization-database-id-for-vnet.sh Outdated
joshjohanning and others added 2 commits October 21, 2025 09:33
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@joshjohanning joshjohanning enabled auto-merge (squash) October 21, 2025 14:49
@joshjohanning joshjohanning merged commit 3fac43c into main Oct 21, 2025
6 checks passed
@joshjohanning joshjohanning deleted the organization-id branch October 21, 2025 14:50
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.

2 participants