Advertisement
Guest User

commands.txt

a guest
Dec 13th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.35 KB | None | 0 0
  1. cranc pr create (it's not in libpagure) [title] [content]
  2.  
  3. This command creates a pull request. Its parameters should be: --title for the pr title, --content for the description of the pr, --author for the author flag, --assignee for assignee
  4.  
  5.  
  6. cranc pr list
  7.  
  8. This command lists all the prs. YOu can list the prs from a specific author by passing --author flag, --status filters status of the pr, --assignee filters assignee of the pr
  9.  
  10.  
  11. cranc pr info [request_id]
  12.  
  13. This command retuns information of a single pull request.
  14.  
  15.  
  16. cranc pr merge [request_id]
  17.  
  18. This command merges a pull request.
  19.  
  20.  
  21. cranc pr close [request_id]
  22.  
  23. This command closes a pull request.
  24.  
  25.  
  26. cranc pr comment create [request_id] [body]
  27.  
  28. This command creates a comment on pull request. --request_id specifies the id of the pull request, --body is the comment body, --commit specifies which commit to comment on, --filename specifies which file to comment on, --row specifies the line of code to comment on.
  29.  
  30.  
  31. cranc pr comment list [request_id]
  32.  
  33. This command lists all the comments on a pull request.
  34.  
  35. cranc pr flag [request_id] [username] [comment] [url]
  36.  
  37. With this command is possible to add or edit a flag of the pull request. --request_id specifies the pull request id, --username specifies the name of the application to be displayed, --percent specifies the percentage of completion to be displayed, --comment is a short message sumarizing the flag, --url specifies a relevant url, --uid specifies the unique id used to identofy the flag, --commit specifies the commit to flag on
  38.  
  39.  
  40. cranc issue create [title] [content]
  41.  
  42. This command creates a new issue. --title for the issue title, --content for the description of the issue, --priority for the priority of the ticket, --milestone for the milestone of the ticket, --tags for comma separated list of tag for the ticket, --assignee for the assignee of the ticket, --private specifies whether create this issue as private
  43.  
  44.  
  45. cranc issue list
  46.  
  47. This command lists all the issues of a project. --status filters the status of the issues, --tags filters the tags of the issues, --assignee filters the assignee of the issues, --milestones filters the milestones of the issues as a list of strings, --priority filters the priority of the issues, --no_stones if True returns only the issues having no milestone, in False returns only the issues witha milestone, --since filters the issues updated after this date (unix date format or Y-M-D), --order sets the ordering of the issues
  48.  
  49.  
  50. cranc issue info /// show (to be more git-like)? [issue_id]
  51.  
  52. This command provides information about a single issue. --issue_id is the id of the issue
  53.  
  54.  
  55. cranc issue comment [issue_id] [comment]
  56.  
  57. This command gets a specific comment of an issue. --issue_id id an id of the issue, --comment_id is an id of the comment
  58.  
  59.  
  60. cranc issue status [issue_id] [new_status]
  61.  
  62. This command changes status of an issue. --issue_id is an id of the issue, --new_status is the new status of the issue, --close_status is optional param to add reason why issue has been closed (like wontfix, fixed, duplicate, ...)
  63.  
  64.  
  65. cranc issue milestone [issue_id] [milestone]
  66.  
  67. This command changes the milestone of an issue. --issue_id is an id of the issue, --milestone is the new milestone for the issue (set None to remove milestone)
  68.  
  69.  
  70. cranc issue comment [issue_id] [body]
  71.  
  72. This command adds comment to an issue. --issue_id is an id of an issue, --body is the comment vody
  73.  
  74.  
  75. cranc user list
  76.  
  77. This command lists all the users. --pattern filters the starting letters
  78.  
  79.  
  80. cranc user show [username]
  81.  
  82. This command gets information about a specific user. --username is the username of the user to get info about
  83.  
  84.  
  85. cranc user stats /// or just a --stats flag on cranc user show? [username]
  86.  
  87. This command retrieves the activity stats about a specific user over the last year. --username filters the username of the user whose activity you're interested in, --format allows changing the date/time returned from iso format to unix timestamp (can be timestamp or isoformat. --date allows you to see the stats for a specific day.
  88.  
  89.  
  90. cranc user pr /// maybe cranc pr list --username would cover it?
  91.  
  92. This command lists pull requests filed by a user. --username is username, --page (int) the page requested (defaults to 1, --status filters the status of pull requests (default: Open, can be Closed, Merged, All.
  93.  
  94.  
  95. cranc user pr-action /// Maybe it can be moved to pr resource instead
  96.  
  97. This command lists pull requests that are actionable by user. --username is username, --page(int) the page requested (defaults to 1), --status filter the status of pull requests (default: Open, can be Closed, Merged, All.)
  98.  
  99.  
  100. cranc tags list
  101.  
  102. This command lists all the tags on this project. --pattern filters the starting letters --project allows you to check tags for a specific project (instead of the default, which is the current one)
  103.  
  104.  
  105. cranc project create [name] [description]
  106.  
  107. This command creates new project on the Pagure instance. --name for the project name, --description describes the project, --namespace for the project to fork, --url url providing more information about the project, --avatar_email is an email address for the avatar of the project, --create_readme is a boolean to specify if there should be a readme added to the project on creation --private is a boolean to speficy if the project is private
  108.  
  109.  
  110. cranc project list
  111.  
  112. This command lists all the projects on this Pagure instance. --tags filters the tags of the project, --pattern filters the projects by the pattern string, --username filters the username of the project admnistrators, --owner filters the projects by ownership, --namespace filters the projects by namespace, --fork filters whether it is a fork (True or not (False), --short specifies whether to return the entire JSON or just a subset, --page speficies that pagination should be turned on and that this specific page should be displayed, --per_page specifies the number of projects to return per page (max 100)
  113.  
  114.  
  115. cranc project branches
  116.  
  117. This command lists all the branches associated with a repository.
  118.  
  119.  
  120. cranc groups list
  121.  
  122. This command lists all the groups on this Pagure instance. --pattern filters starting letters
  123.  
  124.  
  125. cranc error
  126.  
  127. This command provides a dictionary of all error codes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement