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

Add basic contributing docs #664

Merged
merged 4 commits into from
Sep 3, 2024
Merged

Add basic contributing docs #664

merged 4 commits into from
Sep 3, 2024

Conversation

F1F7Y
Copy link
Member

@F1F7Y F1F7Y commented Jul 10, 2023

Adds docs with guidelines for contributing.

@F1F7Y F1F7Y added needs code review Changes from PR still need to be reviewed in code feedback wanted Feedback is wanted whether the changes by this PR are desired labels Jul 10, 2023
Copy link
Member

@GeckoEidechse GeckoEidechse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just basic typo fixes and such

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
F1F7Y and others added 2 commits July 11, 2023 19:05
Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>
@F1F7Y F1F7Y requested a review from GeckoEidechse July 11, 2023 17:27
CONTRIBUTING.md Outdated Show resolved Hide resolved
@uniboi uniboi removed the needs code review Changes from PR still need to be reviewed in code label Jul 20, 2023
Copy link
Contributor

@uniboi uniboi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Comment on lines +25 to +47
### Comment your code
- If you're adding a new file you should add a doc comment noting what the file does and its origin
```cpp
///-----------------------------------------------------------------------------
/// Origin: Northstar
/// Purpose: handles server-side rui
///-----------------------------------------------------------------------------
```
Alternative to `Origin: Northstar` would be `Origin: Respawn`
- Each function should have a header doc comment
```cpp
///-----------------------------------------------------------------------------
/// Sends a string message to player
/// Returns true if it succeeded
///-----------------------------------------------------------------------------
bool function NSSendInfoMessageToPlayer( entity player, string text )
```
### Functions
- Functions should have spaces in the parentheses
```cpp
bool function NSSendInfoMessageToPlayer( entity player, string text )
```
- If a function need to be threaded off using `thread` it should have a `_Threaded` suffix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking over this again, I think it might make more sense to just put this into ModdingDocs and then link to ModdingDocs from here. It should be mentioned in ModdingDocs anyway and that way if we do any changes, we only need to update one location (ModdingDocs) as opposed to two locations (this file and ModdingDocs) ^^

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bruh

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree though

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I disagree, guidelines how to coontribute to the repository should be in the repository itself. Can't hurt to have this in the modding docs as well but this should be in here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case we should link from the ModdingDocs to here. Basically I just want to avoid duplicating information as based on experience it is more than likely that one of the two won't be updated when something changes ^^

@GeckoEidechse
Copy link
Member

Honestly before keeping this in PR hell forever, might make more sense to merge now as-is and then adjust afterwards, moving stuff between docs and here depending on how we feel about it.

Just need to double check with release repo, whether or not we manually pick the files we want to keep for release or remove the ones we don't want and based on that I need to update CI in release repo accordingly.

@GeckoEidechse GeckoEidechse self-assigned this Aug 31, 2024
@GeckoEidechse
Copy link
Member

GeckoEidechse commented Sep 3, 2024

Yeah, looks like it requires a change in release repo CI as well :dread:

EDIT:

@GeckoEidechse GeckoEidechse merged commit e66b164 into main Sep 3, 2024
@GeckoEidechse GeckoEidechse deleted the add-contributing-md branch September 3, 2024 15:40
@GeckoEidechse GeckoEidechse removed their assignment Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback wanted Feedback is wanted whether the changes by this PR are desired
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants