Changes between Version 10 and Version 11 of PullRequestsPlugin
- Timestamp:
- Aug 31, 2019, 9:56:34 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PullRequestsPlugin
v10 v11 11 11 }}} 12 12 13 A special `<command> PR: [arg]` syntax is introduced to create and control pull requests from ticket comments.14 15 13 {{{#!rbox width=320px 16 14 = Example of PRs created, reviewed and closed in ticket. … … 18 16 }}} 19 17 20 This plugin also adds a macro that lists the queried pull requests, and it also adds a new admin panel, that lists all pull requests. 18 By default the PR status can be "open", "reviewed" or "closed". The available status values can be [#Configuration configured]. 19 20 Ticket comments containing a `<command> PR: [arg]` can [#CreatePullRequest create a PR] or [#ChangeStatusofaPullRequest change its status]. 21 22 This plugin also adds a [#PRQueryMacro macro that lists the queried pull requests], and it also adds a new admin panel, that lists all pull requests. 21 23 22 24 {{{#!rbox width=320px … … 30 32 31 33 Examples: 32 * `open PR: changeset:123/ MyForkedRepositoryName`33 * `open PR: log: MyForkedRepositoryName@bookmark_name`34 * `open PR: [https://www.example.com/git/branches/ 123 Branch 123]`34 * `open PR: changeset:123/ForkRepoName` 35 * `open PR: log:ForkRepoName@branch` 36 * `open PR: [https://www.example.com/git/branches/x BranchX]` 35 37 36 The pull request ''number'' is automatically inserted into the ticket comment. 37 38 The trac.ini option `[pullrequests] create_commands` can be changed to allow multiple or different commands that create pull requests in different states. The status of a created pull request is always the same as the command that was used to create it. 38 The pull request ''number'' is automatically assigned and inserted into the ticket comment. 39 39 40 40 === Change Status of a Pull Request … … 46 46 * `closed PR:7` 47 47 48 The trac.ini option `[pullrequests] update_commands` can be changed to allow different commands that change the pull request statuses. The next status of a pull request is always the same as the command that was used to change status. 48 === Configuration 49 50 The trac.ini option `[pullrequests] create_commands` can be changed to allow multiple or different commands that [#CreatePullRequest create pull requests] in different states. The status of a created pull request is always the same as the command that was used to create it. 51 52 The trac.ini option `[pullrequests] update_commands` can be changed to allow different commands that [ChangeStatusofaPullRequets change the pull request status]. The next status of a pull request is always the same as the command that was used to change status. 53 54 Example configuration: 55 {{{#!ini 56 [pullrequests] 57 create_commands = open, draft, prototype, sketch 58 update_commands = closed, reviewed, accepted, rejected, withdrawn, deferred, superseded, updated, verified, tested, suspended 59 }}} 49 60 50 61 === PRQuery Macro … … 58 69 * `[[PRQuery(status=reviewed, author=joe)]]` 59 70 * `[[PRQuery(status=open, author=!joe)]]` 71 72 This allows creating overview wiki pages listing all relevant PRs. 60 73 61 74 == !Bugs/Feature Requests … … 77 90 You can check out PullRequestsPlugin from [/svn/pullrequestsplugin here] using Subversion, or [source:pullrequestsplugin browse the source] with Trac. 78 91 92 ||= Trac =||= Plugin =|| 93 || >=1.4 || [source:pullrequestsplugin/trunk trunk] || 94 || >=1.2 || [source:pullrequestsplugin/tags/pullrequestsplugin-1.1 1.1] || 95 79 96 == Installation 80 97