1@skipWindows
2Feature: git town-ship: shipping a coworker's feature branch
3
4  As a developer shipping a coworker's feature branch
5  I want my coworker to be the author of the commit added to the main branch
6  So that my coworker is given credit for their work
7
8
9  Background:
10    Given my repo has a feature branch named "feature"
11    And the following commits exist in my repo
12      | BRANCH  | LOCATION | MESSAGE         | AUTHOR                            |
13      | feature | local    | feature commit1 | developer <developer@example.com> |
14      |         |          | feature commit2 | developer <developer@example.com> |
15      |         |          | feature commit3 | coworker <coworker@example.com>   |
16    And I am on the "feature" branch
17
18
19  Scenario Outline: prompt for squashed commit author
20    When I run "git-town ship -m 'feature done'" and answer the prompts:
21      | PROMPT                                        | ANSWER   |
22      | Please choose an author for the squash commit | <ANSWER> |
23    And my repo now has the following commits
24      | BRANCH | LOCATION      | MESSAGE      | AUTHOR           |
25      | main   | local, remote | feature done | <FEATURE_AUTHOR> |
26
27    Examples:
28      | ANSWER        | FEATURE_AUTHOR                    |
29      | [ENTER]       | developer <developer@example.com> |
30      | [DOWN][ENTER] | coworker <coworker@example.com>   |
31