Skip to content

fix: 946 associate commits by email #973

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

kriswest
Copy link
Contributor

resolves #946

Updates push parsing to extract commiter emails and to associate commits with users via email, rather than the git user.name config.

Note that:

The Git username is not the same as your GitHub username.

https://docs.github.com/en/get-started/git-basics/setting-your-username-in-git

and

GitHub uses your commit email address to associate commits with your account on GitHub.

https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address

Copy link

netlify bot commented Apr 11, 2025

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit f9aa184
🔍 Latest deploy log https://app.netlify.com/sites/endearing-brigadeiros-63f9d0/deploys/681b541ed518ab0008c7d0c9

@kriswest kriswest changed the title 946 associate commits by email fix: 946 associate commits by email Apr 11, 2025
@kriswest
Copy link
Contributor Author

Looks like I didn't check the CLI test cases and need to sort something out there

@github-actions github-actions bot added the fix label Apr 11, 2025
@kriswest
Copy link
Contributor Author

Fixed the failing tests but am waiting on a review (in git proxy), will update monday

Copy link

codecov bot commented Apr 15, 2025

Codecov Report

Attention: Patch coverage is 69.69697% with 10 lines in your changes missing coverage. Please review.

Project coverage is 56.26%. Comparing base (1c4db5a) to head (f9aa184).

Files with missing lines Patch % Lines
src/proxy/processors/push-action/parsePush.ts 0.00% 6 Missing ⚠️
src/db/file/pushes.ts 66.66% 1 Missing and 1 partial ⚠️
.../processors/push-action/checkUserPushPermission.ts 83.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #973      +/-   ##
==========================================
+ Coverage   49.82%   56.26%   +6.43%     
==========================================
  Files          48       48              
  Lines        1724     1733       +9     
  Branches      176      178       +2     
==========================================
+ Hits          859      975     +116     
+ Misses        841      727     -114     
- Partials       24       31       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kriswest
Copy link
Contributor Author

Code coverage is as good as I can get it, will pick up a little more when #979 is merged

@kriswest
Copy link
Contributor Author

@JamieSlome @coopernetes @grovesy this is ready for a review. I think this will be important to supporting anything other than GitHub (alongside a fix for #950).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Commits should be associated with users via email rather than the git user.name config
1 participant