Skip to content

Prefix MergeButler token environment variables#21

Merged
Keboo merged 2 commits intomainfrom
keboo/prefix-env-vars
Apr 13, 2026
Merged

Prefix MergeButler token environment variables#21
Keboo merged 2 commits intomainfrom
keboo/prefix-env-vars

Conversation

@Keboo
Copy link
Copy Markdown
Owner

@Keboo Keboo commented Apr 13, 2026

Summary

MergeButler currently reads unprefixed token environment variables, which makes the token configuration surface inconsistent with the requested MERGEBUTLER__... names. This change switches the runtime token lookup and all user-facing guidance to the prefixed variables only.

The implementation centralizes the token environment-variable names in PlatformServiceFactory, reuses that source of truth in the CLI and MCP fallback messages, and updates the README and doc-writer skill docs to match. The tests were tightened to verify both that the prefixed variables are used and that the legacy GITHUB_TOKEN / AZURE_DEVOPS_TOKEN names are ignored.

Validation

  • dotnet build .\MergeButler.slnx --no-restore
  • dotnet run --project .\MergeButler -- evaluate --help
  • dotnet run --project .\MergeButler -- evaluate --pr https://github.com/owner/repo/pull/1 --platform GitHub --dry-run with only GITHUB_TOKEN set still reports MERGEBUTLER__GITHUB_TOKEN as missing

Notes

  • dotnet test --solution .\MergeButler.slnx --no-build still fails before running tests because of the existing Microsoft.Testing.Platform TypeLoadException.

Keboo and others added 2 commits April 13, 2026 11:32
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Keboo Keboo merged commit 9e0070e into main Apr 13, 2026
3 checks passed
@Keboo Keboo deleted the keboo/prefix-env-vars branch April 13, 2026 18:39
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.

1 participant