Skip to content

docs(core): give key_for the reason that still holds - #1823

Open
sileht wants to merge 1 commit into
devs/sileht/mrgfy-8703-cli-auth-commands/never-send-mergify-user-token-github--f3c422bafrom
devs/sileht/mrgfy-8703-cli-auth-commands/give-key-reason-still-holds--bd81a3c5
Open

docs(core): give key_for the reason that still holds#1823
sileht wants to merge 1 commit into
devs/sileht/mrgfy-8703-cli-auth-commands/never-send-mergify-user-token-github--f3c422bafrom
devs/sileht/mrgfy-8703-cli-auth-commands/give-key-reason-still-holds--bd81a3c5

Conversation

@sileht

@sileht sileht commented Sep 10, 2026

Copy link
Copy Markdown
Member

key_for files https://host/api and https://host/api/ under one
entry, and its comment justified that by saying every request "replaces
the base path outright". That stopped being true with #1819, which made
Client::join() append a request path to the base's path prefix
instead of replacing it, so GitHub Enterprise's /api/v3 survives.

The conclusion did not change, only the reason. join() now gives the
base a trailing slash and strips the path's leading one, so both
spellings send /v1/user to https://host/api/v1/user, and one
credential entry for both is still right. The comment now says that.

Comment only.

Fixes MRGFY-8703

Co-Authored-By: Claude Opus 5 noreply@anthropic.com

Depends-On: #1808

`key_for` files `https://host/api` and `https://host/api/` under one
entry, and its comment justified that by saying every request "replaces
the base path outright". That stopped being true with #1819, which made
`Client::join()` append a request path to the base's path prefix
instead of replacing it, so GitHub Enterprise's `/api/v3` survives.

The conclusion did not change, only the reason. `join()` now gives the
base a trailing slash and strips the path's leading one, so both
spellings send `/v1/user` to `https://host/api/v1/user`, and one
credential entry for both is still right. The comment now says that.

Comment only.

Fixes MRGFY-8703

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Change-Id: Ibd81a3c529cb558d9e67d061ffe1d3d02dad2e34
@sileht

sileht commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(core): use the stored credential, deprecate GITHUB_TOKEN #1807
2 fix(core): never send a Mergify user token to GitHub #1808
3 docs(core): give key_for the reason that still holds #1823 👈

@sileht
sileht deployed to func-tests-live September 10, 2026 12:58 — with GitHub Actions Active
@mergify

mergify Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 3 of 7 protections blocking · waiting on 👀 reviews and ⛓️ dependency

Protection Waiting on
🔴 ⛓️ Depends-On Requirements ⛓️ dependency
🔴 👀 Review Requirements 👀 reviews
🔴 🔎 Reviews 👀 reviews
🟢 🤖 Continuous Integration
🟢 Enforce conventional commit
🟢 📕 PR description
🟢 🚦 Auto-queue

🔴 ⛓️ Depends-On Requirements

Waiting for

This rule is failing.

Requirement based on the presence of Depends-On in the body of the pull request

🔴 👀 Review Requirements

Waiting for

  • #approved-reviews-by>=2
This rule is failing.
  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[bot]
    • author = mergify-ci-bot
    • author = renovate[bot]

🔴 🔎 Reviews

Waiting for

  • #review-requested = 0
This rule is failing.
  • #review-requested = 0
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0

Show 4 satisfied protections

🟢 🤖 Continuous Integration

  • all of:
    • check-success=ci-gate

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:

🟢 📕 PR description

  • body ~= (?ms:.{48,})

🟢 🚦 Auto-queue

When all merge protections are satisfied, this pull request will be queued automatically.

@mergify
mergify Bot requested a review from a team September 10, 2026 13:05
@sileht
sileht marked this pull request as ready for review September 10, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant