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

Arc not configured, preconfigure user/mail/author #432

Open
rugk opened this issue Feb 11, 2019 · 5 comments
Open

Arc not configured, preconfigure user/mail/author #432

rugk opened this issue Feb 11, 2019 · 5 comments

Comments

@rugk
Copy link

rugk commented Feb 11, 2019

The trouble with the source code submission tools (ref #423), continues…

Now just before my patch was going to land someone noticed me that the diff does not have author info. No tool noticed me of this before!

Diff does not have proper author information in Phabricator. See the Lando FAQ for help with this error.

see https://wiki.mozilla.org/Phabricator/FAQ#Lando


So, I guess this is the issue:

This can happen if you have not set an author email in your .hgrc file (or git config). Set your author email in your .hgrc to your username, Firstname Lastname [email protected].

So can't we pre-configure this .hgrc file?

@jankeromnes
Copy link
Member

jankeromnes commented Feb 11, 2019

@rugk Thanks a lot for reporting this issue!

I'm not quite sure what went wrong. In theory, both .gitconfig and .hgrc should be automatically generated for you.

You can check their values at https://janitor.technology/settings/ under the "Configurations" tab.

Could you please verify that your name is correctly set up in your settings, and re-generate or fix these configuration files? (You can also re-deploy them to every container by using the link below the text area.)

@rugk
Copy link
Author

rugk commented Feb 11, 2019

Ah, yeah, this is how it was configured: https://vim.cx/?ede76a907e4e4683#xhQN8H/HfALnn3/+eU/lxkBoQkbfaKtQWTXz4xfRabo=

Thanks for the pointer, I could not adjust the files there, too, but I wonder why it did not initially configure it correctly.

@jankeromnes
Copy link
Member

but I wonder why it did not initially configure it correctly.

I suspect that's because Janitor can't know your real name when you sign in via email, so it leaves it blank unless you fill it manually.

When you sign in with GitHub (you can do that from your "Integrations" settings), it should automatically fill in your full name if it's not already set.

I think that enabling "Sign in with GitHub" generally for the Janitor web app could solve that problem.

@rugk
Copy link
Author

rugk commented Feb 12, 2019

I think, I signed in with the mail variant it uses only, then it generated the config files, and only then I adjusted the name in the Janitor page and connected it with GitHub then.
It seems it did not trigger a config regeneration.

@jankeromnes
Copy link
Member

It seems it did not trigger a config regeneration.

Yes, we don't automatically re-generate config files, because users might already have customized them, and we don't want to overwrite valuable changes.

But maybe we could detect when config files are not customized, and overwrite them (or if they are customized, show a helpful warning to the user, and maybe a diff view between old a new config?)

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

No branches or pull requests

2 participants