CONTRIBUTING.rst 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. Contributing
  2. ============
  3. Quick Links for Contributing
  4. ----------------------------
  5. - Compiling and building OBS Studio:
  6. https://github.com/obsproject/obs-studio/wiki/Install-Instructions
  7. - Our bug tracker:
  8. https://github.com/obsproject/obs-studio/issues
  9. - Discord Server: https://obsproject.com/discord
  10. - Development chat: #development on the Discord server (see above)
  11. - Development forum:
  12. https://obsproject.com/forum/list/general-development.21/
  13. - Developer/API Documentation:
  14. https://obsproject.com/docs
  15. - To contribute language translations, do not make pull requests.
  16. Instead, use crowdin. Read here for more information:
  17. https://github.com/obsproject/obs-studio/wiki/How-To-Contribute-Translations-For-OBS
  18. - To add a new service to OBS Studio please see the service submission guidelines:
  19. https://github.com/obsproject/obs-studio/wiki/Service-Submission-Guidelines
  20. General Guidelines
  21. ------------------
  22. - The OBS Project uses English as a common language. Please ensure that any
  23. submissions have at least machine-translated English descriptions and titles.
  24. - Templates for Pull Requests and Issues must be properly filled out. Failure
  25. to do so may result in your PR or Issue being closed. The templates request
  26. the bare minimum amount of information required for us to process them.
  27. - Contributors to the OBS Project are expected to abide by the OBS Project Code of Conduct: https://github.com/obsproject/obs-studio/blob/master/COC.rst
  28. Coding Guidelines
  29. -----------------
  30. - OBS Studio uses kernel normal form (linux variant), for more
  31. information, please read here:
  32. https://github.com/torvalds/linux/blob/master/Documentation/process/coding-style.rst
  33. - Avoid trailing spaces. To view trailing spaces before making a
  34. commit, use "git diff" on your changes. If colors are enabled for
  35. git in the command prompt, it will show you any whitespace issues
  36. marked with red.
  37. - Tabs for indentation, spaces for alignment. Tabs are treated as 8
  38. columns wide.
  39. - 120 columns max
  40. - Comments and names of variables/functions/etc. must be in English
  41. - Formatting scripts (macOS/Linux only) are available `here <./build-aux>`__
  42. Commit Guidelines
  43. -----------------
  44. - OBS Studio uses the 50/72 standard for commits. 50 characters max
  45. for the title (excluding module prefix), an empty line, and then a
  46. full description of the commit, wrapped to 72 columns max. See this
  47. link for more information: http://chris.beams.io/posts/git-commit/
  48. - Make sure commit titles are always in present tense, and are not
  49. followed by punctuation.
  50. - Prefix each commit's titles with the module name, followed by a colon
  51. and a space (unless modifying a file in the base directory). After
  52. that, the first word should be capitalized.
  53. So for example, if you are modifying the obs-ffmpeg plugin::
  54. obs-ffmpeg: Fix bug with audio output
  55. Or for libobs::
  56. libobs: Fix source not displaying
  57. Note: When modifying cmake modules, just prefix with "cmake".
  58. - If you still need examples, please view the commit history.
  59. - Commit titles and descriptions must be in English
  60. AI/Machine Learning Policy
  61. --------------------------
  62. AI/machine learning systems such as those based on the GPT family (Copilot,
  63. ChatGPT, etc.) are prone to generating plausible-sounding, but wrong code that
  64. makes incorrect assumptions about OBS internals or APIs it interfaces with.
  65. This means code generated by such systems will require human review and is
  66. likely to require human intervention. If the submitter is unable to undertake
  67. that work themselves due to a lack of understanding of the OBS codebase and/or
  68. programming, the submission has a high likelihood of being invalid.
  69. Such invalid submissions end up taking maintainers' time to review and respond
  70. away from legitimate submissions.
  71. Additionally, such systems have been demonstrated to reproduce code contained
  72. in the training data, which may have been originally published under a license
  73. that would prohibit its inclusion in OBS.
  74. Because of the above concerns, we have opted to take the following policy
  75. towards submissions with regard to the use of these AI tools:
  76. - Submissions created largely or entirely by AI systems are not allowed.
  77. - The use of GitHub Copilot and other assistive AI technologies is heavily
  78. discouraged.
  79. - Low-effort or incorrect submissions that are determined to have been
  80. generated by, or created with aid of such systems may lead to a ban from
  81. contributing to the repository or project as a whole.