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

suspiciously large number of commits #1557

Open
xxchan opened this issue Jul 29, 2023 · 1 comment
Open

suspiciously large number of commits #1557

xxchan opened this issue Jul 29, 2023 · 1 comment
Assignees
Labels
type/bug Bug issues

Comments

@xxchan
Copy link

xxchan commented Jul 29, 2023

Bug Report

Describe the bug

https://ossinsight.io/analyze/xxchan

image

https://ossinsight.io/analyze/Mini256

image

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

@xxchan xxchan added the type/bug Bug issues label Jul 29, 2023
@Mini256
Copy link
Member

Mini256 commented Jul 31, 2023

I think this may be caused by sync upstream behavior, which cause the commits from upstream repo to be calculated into
the push_size.

We should exclude the commits generated by this behavior, but currently we may not be able to do so based on events data from gharchive. We will try to use the GitHub API to obtain the commit list to solve this problem.

https://api.github.com/repos/xxchan/extensions/events

{
	"id": "30145736669",
	"type": "PushEvent",
	"actor": {
		"id": 37948597,
		"login": "xxchan",
		"display_login": "xxchan",
		"gravatar_id": "",
		"url": "https://api.github.com/users/xxchan",
		"avatar_url": "https://avatars.githubusercontent.com/u/37948597?"
	},
	"repo": {
		"id": 590232379,
		"name": "xxchan/extensions",
		"url": "https://api.github.com/repos/xxchan/extensions"
	},
	"payload": {
		"repository_id": 590232379,
		"push_id": 14180764681,
		"size": 1780,
		"distinct_size": 1780,
		"ref": "refs/heads/main",
		"head": "9df79cbd35fa3ffb37516cf758c213690c06a49e",
		"before": "9234a9f447c8b0ba61cd0f333d1b1e47c0b7e3c3",
		"commits": []
	},
	"public": true,
	"created_at": "2023-07-02T19:59:15Z"
}

@Mini256 Mini256 self-assigned this Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issues
Projects
None yet
Development

No branches or pull requests

2 participants