project_settings.rst 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. Project settings
  2. ================
  3. Each project have a number of options that can be tweaked in the settings
  4. page of the project which is accessible to the person having full commits
  5. to the project.
  6. This page presents the different settings and there effect.
  7. `Always merge`
  8. ------------------------
  9. This Boolean enables or disables always making a merge commit when merging
  10. a pull-request.
  11. When merging a pull-request in pagure there are three states:
  12. * fast-forward: when the commits in the pull-request can be fast-forwarded
  13. pagure signals it and just fast-forward the commit, keeping the history linear.
  14. * merge: when the commits in the pull-request cannot be merged without a merge
  15. commit, pagure signals it and performs this merge commit.
  16. * conflicts: when the commits in the pull-request cannot be merged at all
  17. automatically due to one or more conflicts. Then pagure signals it and prevent
  18. merging.
  19. If the `Always merge` option is on, then the `fast-forward` option
  20. above is disabled in favor of the `merge` option.
  21. `Boards`
  22. --------------------------
  23. The boards feature provides simple kanban board functionality by showing issues in columns that represent state.
  24. The settings page lists existing boards and allows adminisrators to add new boards.
  25. `Comment editing`
  26. --------------------------
  27. This Boolean enables or disables editing comments.
  28. After commenting on a ticket or a pull-request, the admins of the project
  29. and the author of the comment may be allowed to edit the comment.
  30. This allows them to adjust the wording or the style as they wish.
  31. .. note:: notification about a comment is only sent once with the original
  32. text, changes performed later will not trigger a new notification.
  33. Some project may not want to allow editing comments after they were posted
  34. and this setting allows turning it on or off.
  35. `Enforce signed-off commits in pull-request`
  36. -----------------------------------------------------
  37. This Boolean enables or disables checking for a 'Signed-off-by' line (case
  38. insensitive) in the commit messages of the pull-requests.
  39. If this line is missing, pagure will display a message near the `Merge`
  40. button, allowing project admin to request the PR to be updated.
  41. .. note:: This setting does not prevent commits without this 'signed-off-by'
  42. line to be pushed directly, it only work at the pull-request level.
  43. `Issue tracker`
  44. ------------------------
  45. This Boolean simply enables or disables the issue tracker for the project.
  46. So if you are tracking your ticket on a different system, you can simply
  47. disable reporting issue on pagure by un-checking this option.
  48. `Minimum score to merge pull-request`
  49. ----------------------------------------------
  50. This option can be used for project wishing to enforce having a minimum
  51. number of people reviewing a pull-request before it can be merged.
  52. If this option is enabled, anyone can vote in favor or against a pull-request
  53. and the sum of the votes in favor minus the sum of the votes against give
  54. the pull-request a score that should be equal or greater than the value
  55. entered in this option for the pull-request to be allowed to be merged.
  56. .. note:: Only the main comments (i.e.: not in-line) are taken into account
  57. to calculate the score of the pull-request.
  58. To vote in favor of a pull-request, use either:
  59. * ``+1``
  60. * ``:thumbsup:``
  61. To vote against a pull-request, use either:
  62. * ``-1``
  63. * ``:thumbsdown:``
  64. .. note:: Pull-Request not reaching the minimum score are not automatically
  65. merged
  66. .. note:: Anyone can vote on the pull-request, not only the contributors.
  67. .. note:: Only one vote per person is taken into account to compute the final
  68. score.
  69. `Only assignee can merge pull-request`
  70. -----------------------------------------------
  71. This option can be used for project wishing to institute a strong review
  72. workflow where pull-request are first assigned then merged.
  73. If this option is enabled, only the person assigned to the pull-request
  74. can merge it.
  75. `Project documentation`
  76. --------------------------------
  77. Pagure offers the option to have a git repository specific for the
  78. documentation of the project.
  79. This repository is then accessible under the ``Docs`` tab in the menu of the
  80. project.
  81. If you prefer to store your documentation elsewhere or maybe even within
  82. the sources of the project, you can disable the ``Docs`` tab by un-checking
  83. this option.
  84. `Pull requests`
  85. ------------------------
  86. Pagure offers the option to fork a project, make changes to it and then ask
  87. the developer to merge these changes into the project. This is similar to
  88. the pull-request mechanism on GitHub or GitLab.
  89. However, some projects may prefer receiving patches by email on their list
  90. or via another hosting platform or simply do not wish to use the
  91. pull-request mechanism at all. Un-checking this option will therefore
  92. prevent anyone from opening a pull-request against this project.
  93. .. note:: disabling pull-requests does *not* disable forking the projects.
  94. `Web-hooks`
  95. --------------------
  96. Pagure offers the option of sending notification about event happening on a
  97. project via [web-hooks|https://en.wikipedia.org/wiki/Webhook]. This option
  98. is off by default and can be turned on for a pagure instance in its
  99. configuration file.
  100. The URL of the web-hooks can be entered in this field.
  101. .. note:: See the ``notifications`` documentation to learn more about
  102. web-hooks in pagure and how to use them.
  103. `Tags`
  104. ------
  105. Pagure allows you to define "tags" that can be added to Issues. Tags are
  106. unique to each project, and they can only be defined in the project
  107. settings page. The Tag color can also be customized for a more robust
  108. visual representation of the tag.
  109. `Deploy keys`
  110. -------------
  111. Deploy keys are SSH keys that have access to pull/push only to a single
  112. project.
  113. Upon creation, admins can determine whether this particular key has read/write
  114. access or read-only.