You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a bit of context, the idiomatic way to indicate a successful action is a zero exit-code, which you can check by running echo $? right after running a gh command. Ideally, nothing trivial/verbose should be printed to stdout/stderr. However, this is not a rule set in stone and good number of gh commands do not apply it.
So, I'm not a fan of a trivial message like the second example you provided, but the first example is a nice experience and makes sense to me, since it shows the affected git configuration sections and could provide a some insight to the user.
As a side note, since the auth setup-git had no successful-mode output so far, it wouldn't be a breaking change. So, I'm going to comment the A/C
Given I have already logged in on one or more hosts and Given I have an interactive terminal (tty) When I run gh auth setup-git Then I see an output indicating the affected changes; e.g.
✓ Added credentials for https://github.com
✓ Added credentials for https://gist.github.com
Given I have already logged in on one or more hosts and Given I have an non-interactive terminal (non-tty) When I run gh auth setup-git Then I see no output (no changes in behavior)
As a side note, since the auth setup-git had no successful-mode output so far, it wouldn't be a breaking change. So, I'm going to comment the A/C
@babakks and I discussed this and decided that changing the output for non-interactive would actually be a breaking change. So, we updated the AC to only change interactive output.
@RAZOR099 Thanks for your interest! 🍻 We still need to discuss this internally and decide if this is something we would want to stamp a
help wantedContributions welcome
on it. I'll now remove the
coreThis issue is not accepting PRs from outside contributors
label so that we'll pick it up for internal discussion.
Activity
cadillacwigfall21 commentedon Jul 1, 2025
babakks commentedon Jul 2, 2025
Hi @adamchainz, and thanks for creating the issue. 🙏
May I ask what do you expect to see as output? Can you give me an example?
adamchainz commentedon Jul 2, 2025
Maybe:
But even a simple one-liner "✔️ Updated Git configuration" would be fine!
babakks commentedon Jul 4, 2025
Nice suggestion, @adamchainz! 👍
As a bit of context, the idiomatic way to indicate a successful action is a zero exit-code, which you can check by running
echo $?right after running aghcommand. Ideally, nothing trivial/verbose should be printed to stdout/stderr. However, this is not a rule set in stone and good number ofghcommands do not apply it.So, I'm not a fan of a trivial message like the second example you provided, but the first example is a nice experience and makes sense to me, since it shows the affected git configuration sections and could provide a some insight to the user.
As a side note, since theauth setup-githad no successful-mode output so far, it wouldn't be a breaking change. So, I'm going to comment the A/Cbabakks commentedon Jul 4, 2025
Acceptance Criteria
Given I have already logged in on one or more hosts and
Given I have an interactive terminal (tty)
When I run
gh auth setup-gitThen I see an output indicating the affected changes; e.g.
Given I have already logged in on one or more hosts and
Given I have an non-interactive terminal (non-tty)
When I run
gh auth setup-gitThen I see no output (no changes in behavior)
BagToad commentedon Jul 8, 2025
@babakks and I discussed this and decided that changing the output for non-interactive would actually be a breaking change. So, we updated the AC to only change interactive output.
adamchainz commentedon Jul 8, 2025
Totally fair!
Heapnotizer commentedon Jul 27, 2025
Hi @babakks @BagToad , is this issue free to work on?
babakks commentedon Aug 1, 2025
@RAZOR099 Thanks for your interest! 🍻 We still need to discuss this internally and decide if this is something we would want to stamp a help wantedContributions welcome
on it. I'll now remove the
core
This issue is not accepting PRs from outside contributors
label so that we'll pick it up for internal discussion.