Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 25, 2026

Aligns environment variable naming with GCP's standard convention. Breaking change acceptable for pre-1.0 project.

Changes

  • internal/config/config.go: Read GOOGLE_CLOUD_PROJECT instead of GCP_PROJECT
  • main.go: Update error messages to reference new variable name
  • README.md: Update configuration documentation
- ProjectID: getEnv("GCP_PROJECT", ""),
+ ProjectID: getEnv("GOOGLE_CLOUD_PROJECT", ""),
- log.Fatal("GCP_PROJECT environment variable must be set")
+ log.Fatal("GOOGLE_CLOUD_PROJECT environment variable must be set")
Original prompt

This project uses the "GCP_PROJECT" envirionment variable. This doesn't match the standard GCP uses which is "GOOGLE_CLOUD_PROJECT". Update the project to use "GOOGLE_CLOUD_PROJECT" instead. This is allowed to be a breaking change as this proejct isn't 1.0 yet. Just update all references everywhere so it uses the correct envirionment variable.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: JaredHatfield <208119+JaredHatfield@users.noreply.github.com>
Copilot AI changed the title [WIP] Update environment variable to use GOOGLE_CLOUD_PROJECT Replace GCP_PROJECT with GOOGLE_CLOUD_PROJECT Jan 25, 2026
Copilot AI requested a review from JaredHatfield January 25, 2026 17:41
@codecov
Copy link

codecov bot commented Jan 25, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (df9922b) to head (16301ac).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
main.go 0.00% 2 Missing ⚠️
internal/config/config.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #113   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines        120     120           
=====================================
  Misses       120     120           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JaredHatfield JaredHatfield marked this pull request as ready for review January 25, 2026 18:06
@JaredHatfield JaredHatfield merged commit bdeb6ad into main Jan 25, 2026
5 checks passed
@JaredHatfield JaredHatfield deleted the copilot/update-environment-variable branch January 25, 2026 18:21
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