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

Could not parse GitHub App user which include brackets #604

Open
henri-hulski opened this issue Feb 27, 2025 · 0 comments
Open

Could not parse GitHub App user which include brackets #604

henri-hulski opened this issue Feb 27, 2025 · 0 comments

Comments

@henri-hulski
Copy link

henri-hulski commented Feb 27, 2025

I'm using GitHub Actions for release and deploy. The git user is an organization GitHub App which has all necessary permissions.
The problem is that GitHub App users have square brackets in there user name and email.
So when running

gh-pages -d build -b master -r https://github.com/myorg/myrepo.github.io.git -u "mygithubapp[bot] <123456789+mygithubapp[bot]@users.noreply.github.com>"

I get the following error.

Error: Could not parse name and email from user option "mygithubapp[bot] <123456789+mygithubapp[bot]@users.noreply.github.com>" (format should be "Your Name <[email protected]>")

It seems that the email parser you are using (email-addresses) doesn't accept brackets neither in the username (only if quoted) nor in the email (I think here is no workaround). See also jackbearheart/email-addresses#52.
Any way to fix that? Maybe just using a custom regex?

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

1 participant