My app creates commits -- is there an email associated with an app installation?

I am writing a private app that creates commits and pushes them to a private repo. I can successfully use my in-app token to push, but is there an email address I can use that will be associated with my app installation? Just like when my app leaves a comment that is attributed to $myapp [bot], I am wondering if there is a way to have the UI show $myapp [bot] for the commit author.

Bots aren’t true user accounts, so no, there isn’t a way to associate commits with the bot the same way that commits can be associated with a user. You could use a commit author name of yourapp [bot] and a support email address for the author email though so that it’s more obvious in the commit history.

I hope that helps!

This was a helpful find after hours of hair pulling.

Going to add some notes below that hopefully help future internet searchers.

We are using octokit.rb and ended up appending the following to our content changes/commits. Otherwise, it would assume the name of the person that authorized the app. Issues seem to use a badge for our github app, we’re still a little fuzzy on how to have clean branding of bot vs user to avoid confusion by end users.

author: {"name": "HipSpec [Bot]","email": "support@hipspec.com"}, committer: {"name": "HipSpec [Bot]","email": "support@hipspec.com"}

Breadcrumb for future searchers

  • How to create a commit or merge request as a bot?
  • Can I create a merge request or commit as a bot?
  • How to create a commit or merge request as a github app bot?
  • Can I create a merge request or commit as a github app bot?