CONTRIBUTING.rst 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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://obsproject.com/forum/threads/how-to-contribute-translations-for-obs.16327/
  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. - 80 columns max
  40. - Comments and names of variables/functions/etc. must be in English
  41. Commit Guidelines
  42. -----------------
  43. - OBS Studio uses the 50/72 standard for commits. 50 characters max
  44. for the title (excluding module prefix), an empty line, and then a
  45. full description of the commit, wrapped to 72 columns max. See this
  46. link for more information: http://chris.beams.io/posts/git-commit/
  47. - Make sure commit titles are always in present tense, and are not
  48. followed by punctuation.
  49. - Prefix each commit's titles with the module name, followed by a colon
  50. and a space (unless modifying a file in the base directory). After
  51. that, the first word should be capitalized.
  52. So for example, if you are modifying the obs-ffmpeg plugin::
  53. obs-ffmpeg: Fix bug with audio output
  54. Or for libobs::
  55. libobs: Fix source not displaying
  56. Note: When modifying cmake modules, just prefix with "cmake".
  57. - If you still need examples, please view the commit history.
  58. - Commit titles and descriptions must be in English
  59. AI/Machine Learning Policy
  60. --------------------------
  61. AI/machine learning systems such as those based on the GPT family (Copilot,
  62. ChatGPT, etc.) are prone to generating plausible-sounding, but wrong code that
  63. makes incorrect assumptions about OBS internals or APIs it interfaces with.
  64. This means code generated by such systems will require human review and is
  65. likely to require human intervention. If the submitter is unable to undertake
  66. that work themselves due to a lack of understanding of the OBS codebase and/or
  67. programming, the submission has a high likelihood of being invalid.
  68. Such invalid submissions end up taking maintainers' time to review and respond
  69. away from legitimate submissions.
  70. Additionally, such systems have been demonstrated to reproduce code contained
  71. in the training data, which may have been originally published under a license
  72. that would prohibit its inclusion in OBS.
  73. Because of the above concerns, we have opted to take the following policy
  74. towards submissions with regard to the use of these AI tools:
  75. - Submissions created largely or entirely by AI systems are not allowed.
  76. - The use of GitHub Copilot and other assistive AI technologies is heavily
  77. discouraged.
  78. - Low-effort or incorrect submissions that are determined to have been
  79. generated by, or created with aid of such systems may lead to a ban from
  80. contributing to the repository or project as a whole.