Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't spam duplicate warnings in github_context #2027

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chris-laplante
Copy link

Thanks to go-git/go-git#530, act will spam the console/log with a billion warnings like this:

WARN[0000] unable to get git repo: branch config: invalid merge

when a GitHub PR branch is checked out.

@chris-laplante chris-laplante requested a review from a team as a code owner September 25, 2023 19:16
Thanks to go-git/go-git#530, act will spam the
console/log with a billion warnings like this:

WARN[0000] unable to get git repo: branch config: invalid merge

when a GitHub PR branch is checked out.
Comment on lines +13 to +17
var (
loggedWarnings = make(map[string]bool)
mu sync.Mutex
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like doing this kind of stuff with globals. Caching the git stuff would be better.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll try to find some time to work on adding the caching.

Copy link
Contributor

mergify bot commented Jan 28, 2024

@chris-laplante this pull request is now in conflict 😩

@mergify mergify bot added the conflict PR has conflicts label Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict PR has conflicts size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants