schneidmaster / gitreports.com

Git Reports is a free service that lets you set up a stable URL for anonymous users to submit bugs and other Issues to your GitHub repositories.
MIT License
134 stars 26 forks source link

Ability to change/remove accounts creating issues #180

Open CareyJWilliams opened 4 years ago

CareyJWilliams commented 4 years ago

When viewing a repo in the gitreports dashboard, you can see the following:

Owner: Organisation Users: UserA, UserB Status: Active Public Link: View

Note that I have two users. It's always UserA that is being used to create new issues submitted via gitreports but, I would very much prefer it to be UserB. There doesn't seem to be anyway to change this preference, nor to remove a user. I tried revoking permissions to gitreports on UserA, but that just seems to prevent issues being created at all.

Any ideas?

Thanks in advance!

schneidmaster commented 4 years ago

Currently, the user whose username comes first alphabetically is the one that is used to create the issue, and there is not a way to configure this. That comes from this code:

https://github.com/schneidmaster/gitreports.com/blob/master/app/models/repository.rb#L2-L14

Happy to accept a PR adding a configuration option for which user to submit issues as.

Flaflo commented 4 years ago

And how do you remove a User completely?