Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cranc pr create (it's not in libpagure) [title] [content]
- 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
- cranc pr list
- 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
- cranc pr info [request_id]
- This command retuns information of a single pull request.
- cranc pr merge [request_id]
- This command merges a pull request.
- cranc pr close [request_id]
- This command closes a pull request.
- cranc pr comment create [request_id] [body]
- 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.
- cranc pr comment list [request_id]
- This command lists all the comments on a pull request.
- cranc pr flag [request_id] [username] [comment] [url]
- 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
- cranc issue create [title] [content]
- 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
- cranc issue list
- 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
- cranc issue info /// show (to be more git-like)? [issue_id]
- This command provides information about a single issue. --issue_id is the id of the issue
- cranc issue comment [issue_id] [comment]
- 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
- cranc issue status [issue_id] [new_status]
- 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, ...)
- cranc issue milestone [issue_id] [milestone]
- 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)
- cranc issue comment [issue_id] [body]
- This command adds comment to an issue. --issue_id is an id of an issue, --body is the comment vody
- cranc user list
- This command lists all the users. --pattern filters the starting letters
- cranc user show [username]
- This command gets information about a specific user. --username is the username of the user to get info about
- cranc user stats /// or just a --stats flag on cranc user show? [username]
- 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.
- cranc user pr /// maybe cranc pr list --username would cover it?
- 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.
- cranc user pr-action /// Maybe it can be moved to pr resource instead
- 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.)
- cranc tags list
- 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)
- cranc project create [name] [description]
- 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
- cranc project list
- 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)
- cranc project branches
- This command lists all the branches associated with a repository.
- cranc groups list
- This command lists all the groups on this Pagure instance. --pattern filters starting letters
- cranc error
- This command provides a dictionary of all error codes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement