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

change disco github app name to include name of server #16

Open
gregsadetsky opened this issue Jan 11, 2025 · 4 comments
Open

change disco github app name to include name of server #16

gregsadetsky opened this issue Jan 11, 2025 · 4 comments

Comments

@gregsadetsky
Copy link
Member

https://github.com/letsdiscodev/disco-daemon/blob/main/disco/endpoints/githubapps.py#L128

per @robsimmons's suggestion

@gregsadetsky
Copy link
Member Author

note that the max length of github app names is 34 chars, so we must truncate "Disco @(server) (random name)" to fit that length

@robsimmons
Copy link

Is the random name actually necessary? I was assuming it was there because the same app name would cause some kind of problem.

@gregsadetsky
Copy link
Member Author

it's unfortunately necessary because the app name must be globally unique to github

https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app#registering-a-github-app

image

@gregsadetsky
Copy link
Member Author

just following up, we'd like to move to

Disco (server) (some hex)

and truncate the server name. and not use random words, but a short hex string instead.

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