-
Notifications
You must be signed in to change notification settings - Fork 304
Github issue docs #495
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
Open
beck-thompson
wants to merge
6
commits into
space-wizards:master
Choose a base branch
from
beck-thompson:github-stuff
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Github issue docs #495
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
bef00dc
Github issue docs
beck-thompson 27d17b8
Minor spelling mistake - must close pr
beck-thompson d11908d
No more commands
beck-thompson 0ce7a79
Add extra clarification
beck-thompson 09cc82a
refactor: partial rewrite - clarifications and more detailed steps
Fildrance 29e8b12
refactor: newlines for images aligning
Fildrance File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Setting up GitHub integration | ||
| SS14 servers support basic GitHub integration. Currently this is used just for creation of bug reports using GitHub Issues (ability to do so for players is limited by CVar (See [Important CVars](#important-cvars))). | ||
|
|
||
|
|
||
| # Setup | ||
| This intregration uses GitHub App as authorization, so to use it you will need to create one. | ||
|
|
||
| WARNING! Keep in mind that steps, related to GitHub UI and interactions can be out of date due to changes on GitHub side. In case of problems with this guide - try looking into up-to date instructions | ||
| https://docs.github.com/en/apps/creating-github-apps | ||
|
|
||
| 0. (Optional) Create a new repository that only your GitHub organization has access to. You might want to do this if you are worried about spamming the main repository. You can transfer issues from this new repository to your main repository, but GitHub have known limitation. If you would like players issues to be created in private repository and then transfer them to public one by hand, GitHub does not provide any automation for that specific case (private->public). | ||
| 1. Create a new GitHub app (IMPORTANT! **Make sure you are logged in as the repository owner** (This is usually the organization itself)! ): | ||
| * go to `https://github.com/settings/apps` and click 'New GitHub App' | ||
| * Fill 'GitHub App name' with whatever you would like app to be named | ||
| * Add any valid url for 'Homepage URL' - this is not used anywhere except for app description | ||
| * Uncheck 'Active' checkbox under 'Webhook' section - you will not need it | ||
| * Under 'Permissions' section in 'Repository permissions' allow issue read+write permissions (and metadata, which will be checked automatically) | ||
|
|
||
|  | ||
| * Ensure that 'Only on this account' installation option is checked | ||
|
|
||
|  | ||
| * Click Create GitHub App at the bottom of the page | ||
| 2. Under the "General" tab, get the app's **app ID** and also generate a **private key** (this will be a link in panel located at the top of window). This will download the private key to your computer. | ||
|  | ||
|  | ||
| 3. Go to you 'Install App' section of app page and click 'Install' for your organization. Only give it access to repository that should contain created issues. | ||
|  | ||
|  | ||
| 4. Upload private key that you got in step 2 to the server and add following lines to your server configuration | ||
| ```toml | ||
| [github] | ||
| # Can be found at https://github.com/settings/apps/APPNAME - scroll to the bottom | ||
| github_app_private_key_path = "/home/root/<PATH TO FOLDER WHERE YOU STORED YOUR PRIVATE KEY>" | ||
| # The app id found at https://github.com/settings/apps/APPNAME | ||
| github_app_id = <YOUR APP ID> | ||
| # If url is: https://github.com/space-wizards/space-station-14 | ||
| # repo name is "space-station-14", repo owner is "space-wizards" | ||
| github_repository_name = <your repository owner - typically organization or user> | ||
| github_repository_owner = <your repository name> | ||
|
|
||
| [bug_reports] | ||
| enable_player_bug_reports = true | ||
| ``` | ||
|
|
||
| # Testing | ||
| If you run into issues, the servers console should display errors, make sure to look at that if issues are not being created. The `testgithubapi` console command also will do a few checks to ensure you filled out all the required fields (And also create 1 issue, as there is no other way to check if feature is working). | ||
|
|
||
| # CVars | ||
| Go to `CCVars.BugReports.cs` for the full updated list of cvars! Almost all the settings can be tweaked there - you probably want to change them depending on what type of fork you are running. Put them in the server configuration to change them like the other settings. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.