1
0

magic_words.rst 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Magic Words
  2. ===========
  3. Magic words are words and constructs you can use in your commit message to
  4. make pagure act on tickets or pull-requests.
  5. Enabling magic words
  6. --------------------
  7. These magic words are enabled if the ``pagure`` git hook is enable. To do
  8. so, go to your project's ``settings`` page, open the ``Hooks`` tab and
  9. activate there the ``Pagure`` hook.
  10. Using magic words
  11. -----------------
  12. To reference an issue/PR you need to use one of recognized keywords followed by
  13. a reference to the issue or PR, separated by whitespace and and optional colon.
  14. Such references can be either:
  15. - The issue/PR number preceded by the # symbol
  16. - The full URL of the issue or PR
  17. If using the full URL, it is possible to reference issues in other projects.
  18. The recognized keywords are:
  19. - fix/fixed/fixes
  20. - relate/related/relates
  21. - merge/merges/merged
  22. - close/closes/closed
  23. - resolve/resolves/resolved
  24. Examples:
  25. - Fixes #21
  26. - related: https://pagure.io/myproject/issue/32
  27. - this commit merges #74
  28. - Merged: https://pagure.io/myproject/pull-request/74
  29. Capitalization does not matter; neither does the colon (``:``) between
  30. keyword and number.