|
2 | 2 | <img alt="label-when-approved-action status" |
3 | 3 | src="https://github.com/TobKed/label-when-approved-action/workflows/Test%20the%20build/badge.svg"></a> |
4 | 4 |
|
5 | | -# Get Workflow Runs action |
| 5 | +# Label When Approved action |
6 | 6 |
|
7 | 7 |
|
8 | 8 | <!-- START doctoc generated TOC please keep comment here to allow auto update --> |
@@ -35,12 +35,12 @@ projects. |
35 | 35 |
|
36 | 36 | ## Inputs |
37 | 37 |
|
38 | | -| Input | Required | Example | Comment | |
39 | | -|-------------------------------|----------|-----------------------------------------------------------------|-------------------------------------------------------------------------| |
40 | | -| `token` | yes | `${{ secrets.GITHUB_TOKEN }}` | The github token passed from `${{ secrets.GITHUB_TOKEN }}` | |
41 | | -| `label` | no | `spproved by committers` | Label to be added/removed to the Pull Request if approved/not approved | |
42 | | -| `require_committers_approval` | no | `true` | Is approval from user with write permission required | |
43 | | -| `comment` | no | `This became approved, rerun tests manually or rebase and push` | Add optional comment to the PR when approved | |
| 38 | +| Input | Required | Example | Comment | |
| 39 | +|-------------------------------|----------|-------------------------------------------------------------------|-------------------------------------------------------------------------------| |
| 40 | +| `token` | yes | `${{ secrets.GITHUB_TOKEN }}` | The github token passed from `${{ secrets.GITHUB_TOKEN }}` | |
| 41 | +| `label` | no | `Approved by committers` | Label to be added/removed to the Pull Request if approved/not approved | |
| 42 | +| `require_committers_approval` | no | `true` | Is approval from user with write permission required | |
| 43 | +| `comment` | no | `PR approved by at least one committer and no changes requested.` | Add optional comment to the PR when approved (requires label input to be set) | |
44 | 44 |
|
45 | 45 | ## Outputs |
46 | 46 |
|
@@ -68,14 +68,15 @@ jobs: |
68 | 68 | isApprovedByAnyone: ${{ steps.label-when-approved-by-anyone.outputs.isApproved }} |
69 | 69 | steps: |
70 | 70 | - name: Label when approved by commiters |
71 | | - uses: TobKed/label-when-approved-action@v0.1 |
| 71 | + uses: TobKed/label-when-approved-action@v1 |
72 | 72 | id: label-when-approved-by-commiters |
73 | 73 | with: |
74 | 74 | token: ${{ secrets.GITHUB_TOKEN }} |
75 | 75 | label: 'ready to merge (committers)' |
76 | 76 | require_committers_approval: 'true' |
| 77 | + comment: 'PR approved by at least one committer and no changes requested.' |
77 | 78 | - name: Label when approved by anyone |
78 | | - uses: TobKed/label-when-approved-action@v0.1 |
| 79 | + uses: TobKed/label-when-approved-action@v1 |
79 | 80 | id: label-when-approved-by-anyone |
80 | 81 | with: |
81 | 82 | token: ${{ secrets.GITHUB_TOKEN }} |
|
0 commit comments