Blame doc/usage/tips_tricks.rst

Eashan c8383d
Tips and tricks
Eashan c8383d
===============
Eashan c8383d
Pierre-Yves Chibon 42c81c
This page contains some tips and tricks on how to use pagure. These do not
Pierre-Yves Chibon 42c81c
fit in their own page but are worth mentioning.
Pierre-Yves Chibon 42c81c
Pierre-Yves Chibon 42c81c
Eashan c8383d
Pre-fill issue template using the URL
Eashan c8383d
-------------------------------------
Eashan c8383d
Eashan c8383d
When Creating Issues for a project , Pagure supports pre-filling the title
Eashan c8383d
and description input text using url parameters
Eashan c8383d
Eashan c8383d
Example:
Eashan c8383d
~~~~~~~~
Eashan c8383d
https://pagure.io/pagure/new_issue/?title=<issue>&content=<issue content=""></issue></issue>
Eashan c8383d
Eashan c8383d
The above URL will autofill the text boxes for Title and Description field
Eashan c8383d
with Title set to <issue> and Description set to <issue content="">.</issue></issue>
Pierre-Yves Chibon e79766
Pierre-Yves Chibon e79766
Pierre-Yves Chibon e79766
Filter for issues *not* having a certain tag
Pierre-Yves Chibon e79766
--------------------------------------------
Pierre-Yves Chibon e79766
Pierre-Yves Chibon e79766
Very much in the same way pagure allows you to filter for issues having a
Pierre-Yves Chibon e79766
certain tag, pagure allows to filter for issues *not* having a certain tag.
Pierre-Yves Chibon e79766
To do this, simply prepend a ``!`` in front of the tag.
Pierre-Yves Chibon e79766
Pierre-Yves Chibon e79766
Example:
Pierre-Yves Chibon e79766
~~~~~~~~
Pierre-Yves Chibon e79766
https://pagure.io/pagure/issues?tags=!easyfix
Vivek Anand c9b5bc
Vivek Anand c9b5bc
Vivek Anand c9b5bc
Local user creation without email verification
Vivek Anand c9b5bc
----------------------------------------------
Vivek Anand c9b5bc
Vivek Anand c9b5bc
If you set ``EMAIL_SEND`` to ```False``` from the configuration file, you
Vivek Anand c9b5bc
will get the emails printed to the console instead of being sent. The admin
Vivek Anand c9b5bc
of the instance can then access the URL to manually validate the account from
Vivek Anand c9b5bc
there. This is generally used for development where we don't need to send
Vivek Anand c9b5bc
any emails.
Pierre-Yves Chibon 5cdb69
Pierre-Yves Chibon 5cdb69
Pierre-Yves Chibon 5cdb69
Filter an user's projects by their access
Pierre-Yves Chibon 5cdb69
-----------------------------------------
Pierre-Yves Chibon 5cdb69
Pierre-Yves Chibon 2ff10f
When watching a user's page, the list of all the project that user is
Pierre-Yves Chibon 5cdb69
involved in is presented regardless of whether the user has ticket, commit,
Pierre-Yves Chibon 5cdb69
admin access or is the main admin of the project.
Pierre-Yves Chibon 5cdb69
Pierre-Yves Chibon 5cdb69
You can specify an ``acl=`` argument to the url to filter the list of
Pierre-Yves Chibon 2ff10f
projects by access.
Pierre-Yves Chibon 5cdb69
Pierre-Yves Chibon 5cdb69
Pierre-Yves Chibon 2ff10f
.. note:: This also works for your home page when you are logged in.
Pierre-Yves Chibon 5cdb69
Pierre-Yves Chibon 5cdb69
Pierre-Yves Chibon 5cdb69
Examples:
Pierre-Yves Chibon 5cdb69
~~~~~~~~~
Pierre-Yves Chibon 5cdb69
https://pagure.io/user/pingou?acl=main admin
Pierre-Yves Chibon 5cdb69
https://pagure.io/user/pingou?acl=admin
Pierre-Yves Chibon 5cdb69
https://pagure.io/user/pingou?acl=commit
Pierre-Yves Chibon 52df0c
Pierre-Yves Chibon 52df0c
Pierre-Yves Chibon 52df0c
Filter issues by (custom) fields
Pierre-Yves Chibon 52df0c
--------------------------------
Pierre-Yves Chibon 52df0c
Pierre-Yves Chibon 52df0c
Via the project's settings page, admins can set custom keys to be used in
Pierre-Yves Chibon 52df0c
issues. You can search them using the URL via the arguments ``ckeys`` and
Pierre-Yves Chibon 52df0c
``cvalue`` or simpler, using the search field at the top of the issue page.
Pierre-Yves Chibon 52df0c
Pierre-Yves Chibon 52df0c
This also works for the following regular fields: ``tags``, ``milestones``,
Pierre-Yves Chibon 52df0c
``author``, ``assignee``, ``status``, ``priority`` (but tags and milestones
Pierre-Yves Chibon 52df0c
despite their name only support a single value).
Pierre-Yves Chibon 52df0c
Pierre-Yves Chibon 52df0c
Examples:
Pierre-Yves Chibon 52df0c
~~~~~~~~~
Pierre-Yves Chibon 52df0c
https://pagure.io/SSSD/sssd/issues?status=Open&search_pattern=review%3ATrue
Pierre-Yves Chibon 52df0c
https://pagure.io/pagure/issues?status=Open&search_pattern=tags%3Aeasyfix