Feat : Include User Identity in Git Commits / PRs Made Through Dashboard
Hi team,
I’ve been exploring Flipt and noticed that any updates made through the dashboard show up in Git as anonymous commits.
Is it possible for pull requests or commits created through the Flipt dashboard to include the identity of the user who made the changes? I’m currently using GitHub OAuth, so ideally the user’s GitHub identity could be reflected in the commit or PR author.
This would make git blame and audit history much clearer. Thanks!
@parthagarwal4 yeah thats something we've been meaning to do. Thank you for raising this issue. I think its definitely possible to tie the GitHub Oauth user to the commit. I will prioritize this feature
One thing I missed is that there is a /user/emails endpoint, and if the user:email scope is provided, we can query it to retrieve all email addresses. If the user hasn’t set a public email for their profile, we can retrieve one from the list. I don't know if we want to go that route or just simple use email fallback.
That was pretty quick did not expect this to be taken up so quickly ! Thanks a lot :)
One thing I missed is that there is a
/user/emailsendpoint, and if the user:email scope is provided, we can query it to retrieve all email addresses. If the user hasn’t set a public email for their profile, we can retrieve one from the list. I don't know if we want to go that route or just simple use email fallback.
If we do add this which email would we choose given the user has multiple? Maybe we make it a settings thing that the user can select which email to use from GitHub and we save it in local storage?
I don’t have a clear idea about it. The selector looks complex and doesn’t align well with other authentication providers.