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

Repositories: Username varies between PRs made from local development and Studio #9730

Open
mijohansen opened this issue Jan 30, 2023 · 5 comments
Labels
kind/bug Used when there is a defect / something is not working as it should. status/triage

Comments

@mijohansen
Copy link
Contributor

Description of the bug

There seem to be different users that is connected to the environment in dev and prod.

image

Steps To Reproduce

  1. Create an app.
  2. Check it out locally, make a commit to master.
  3. Open the app in the approprate altinn studio enviroment
  4. Make a change and commit the change to master.
  5. Now go to gitea and observe that the commits is made by different users

Additional Information

No response

@mijohansen mijohansen added kind/bug Used when there is a defect / something is not working as it should. status/triage labels Jan 30, 2023
@mijohansen mijohansen moved this to 📈 Todo in Team Studio Jan 30, 2023
@ivarne
Copy link
Member

ivarne commented Jan 31, 2023

A commit is attributed to a user using the Name and email fields in git. Commits are created in 3 environments

  • Locally on the users computer (user can set whatever they want. Will probably be linked in gitea based on email)
  • Commits an Merge commits in Altinn Studio. (set by altinn studio (seems to be [username] and <@jugglingnutcase>))
  • Merge commits and edits directly in Gitea (seems to be set to [username] and [username]@noreply.altinn.no)

Seemes like it would be good to have Altinn studio set something more sensible. The local environment must be fixed by better docs.

@mijohansen
Copy link
Contributor Author

Thanx, @ivarne. This is a minor, but annoying bug.

@mijohansen
Copy link
Contributor Author

This mysterious @jugglingnutcase seem to come from the example code: https://github.com/libgit2/libgit2sharp/wiki/Git-commit

Doesn't seem to have any real meaning other than actually "this code is example code, please change". Guess I can try to fix it.

@ivarne
Copy link
Member

ivarne commented Feb 8, 2023

@mijohansen
Copy link
Contributor Author

Nice, @ivarne ... bring it on! 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Used when there is a defect / something is not working as it should. status/triage
Projects
Status: 📈 Todo
Development

No branches or pull requests

2 participants