You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-12
Original file line number
Diff line number
Diff line change
@@ -4,23 +4,25 @@
4
4
5
5
**Name:**`tsinis/ship-show-ask`
6
6
7
-
This is a fork of the [Auto Approve](https://github.com/marketplace/actions/auto-approve) GitHub Action adjusted for a Ship, Show, Ask branching strategy.
7
+
This action will get information about the preferred ship/show/ask strategy of the pull request from its title (by searching for keywords in the title). This is a fork of the [Auto Approve](https://github.com/marketplace/actions/auto-approve) GitHub Action adjusted for a Ship, Show, Ask branching strategy.
8
8
9
9
## Usage instructions
10
10
11
-
Create a workflow file (e.g. `.github/workflows/ship-show-ask.yml`) that contains a step that `uses: tsinis/[email protected].0`. Here's an example workflow file:
11
+
Create a workflow file (e.g. `.github/workflows/ship-show-ask.yml`) that contains a step that `uses: tsinis/[email protected].1`. Here's an example workflow file:
# pull-request-number: 1 # optional ID of a pull request to approve. By default, this action tries to use the pull_request event payload.
32
37
```
33
38
34
39
In this example, the action is configured to recognize 'lgtm', 'lgty', and 'check' as the keywords for the respective strategies. The keywords are case-sensitive, a label will not be added to the pull request based on the strategy, the keywords doesn't require brackets, and if no keyword is detected, the action will fallback to the Ask strategy.
@@ -47,6 +52,9 @@ You can customize these options by changing the values in the `with` block.
47
52
-`add-label`: Whether to add a label to the pull request based on the strategy. Default is 'true'.
48
53
-`require-brackets`: Whether the keywords require brackets. Default is 'true'.
49
54
-`fallback-to-ask`: Whether to fallback to the Ask strategy if no keyword is detected. Default is 'false'.
55
+
-`review-message`: Message to use on PR approval.
56
+
-`github-token`: GITHUB_TOKEN secret, default to ${{ github.token }}
57
+
-`pull-request-number`: id of a pull request to approve. By default, this action tries to use the pull_request event payload.
If you want to use this action from a workflow file that doesn't run on the `pull_request` or `pull_request_target` events, use the `pull-request-number` input:
0 commit comments