Changes between Version 10 and Version 11 of PullRequestsPlugin


Ignore:
Timestamp:
Aug 31, 2019, 9:56:34 AM (5 years ago)
Author:
lucid
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PullRequestsPlugin

    v10 v11  
    1111}}}
    1212
    13 A special `<command> PR: [arg]` syntax is introduced to create and control pull requests from ticket comments.
    14 
    1513{{{#!rbox width=320px
    1614= Example of PRs created, reviewed and closed in ticket.
     
    1816}}}
    1917
    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.
     18By default the PR status can be "open", "reviewed" or "closed". The available status values can be [#Configuration configured].
     19
     20Ticket comments containing a `<command> PR: [arg]` can [#CreatePullRequest create a PR] or [#ChangeStatusofaPullRequest change its status].
     21
     22This 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.
    2123
    2224{{{#!rbox width=320px
     
    3032
    3133Examples:
    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]`
    3537
    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.
     38The pull request ''number'' is automatically assigned and inserted into the ticket comment.
    3939
    4040=== Change Status of a Pull Request
     
    4646* `closed PR:7`
    4747
    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
     50The 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
     52The 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
     54Example configuration:
     55{{{#!ini
     56[pullrequests]
     57create_commands = open, draft, prototype, sketch
     58update_commands = closed, reviewed, accepted, rejected, withdrawn, deferred, superseded, updated, verified, tested, suspended
     59}}}
    4960
    5061=== PRQuery Macro
     
    5869* `[[PRQuery(status=reviewed, author=joe)]]`
    5970* `[[PRQuery(status=open, author=!joe)]]`
     71
     72This allows creating overview wiki pages listing all relevant PRs.
    6073
    6174== !Bugs/Feature Requests
     
    7790You can check out PullRequestsPlugin from [/svn/pullrequestsplugin here] using Subversion, or [source:pullrequestsplugin browse the source] with Trac.
    7891
     92||= Trac =||= Plugin =||
     93|| >=1.4 || [source:pullrequestsplugin/trunk trunk] ||
     94|| >=1.2 || [source:pullrequestsplugin/tags/pullrequestsplugin-1.1 1.1] ||
     95
    7996== Installation
    8097