fix: 🎯 Fix: Redirect GitHub App token refresh logs to stderr to prevent invalid JSON output - #4
Open
42104 wants to merge 1 commit into
Open
fix: 🎯 Fix: Redirect GitHub App token refresh logs to stderr to prevent invalid JSON output#442104 wants to merge 1 commit into
42104 wants to merge 1 commit into
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复 Issue #1
Issue 标题: 🎯 Fix: Redirect GitHub App token refresh logs to stderr to prevent invalid JSON output
平台: GITHUB
仓库: madalynerlge2/cli
修复方案:
fmt.Println、log.Println或写入os.Stdout的操作。2. 将这些输出替换为使用IOStreams.ErrOut(如果当前上下文可访问)或os.Stderr。3. 检查 HTTP 传输层(round-tripper)中是否有令牌刷新的拦截点,确保其中的日志也重定向到 stderr。4. 添加单元测试,验证在令牌刷新过程中,stdout 不会包含任何日志信息,而 stderr 会包含预期的日志输出。修改文件:
README.mdmain.go自动化流水线:
此 PR 由 Bounty Hunter 自动生成