Skip to content

Commit 81460d9

Browse files
authored
Feat: Override labels, list-id (#196)
1 parent eaa5244 commit 81460d9

File tree

10 files changed

+20345
-19819
lines changed

10 files changed

+20345
-19819
lines changed

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,24 +176,30 @@ Trello list ID for merged pull request. [How to find list ID.](https://stackover
176176

177177
NB! `trello-archive-on-merge` set to `true` will override this.
178178

179-
#### 7. `trello-move-to-merged-list-only-on-merge`
179+
#### 7. `trello-list-id-override`
180+
181+
Manually move the card to this Trello list. [How to find list ID.](https://stackoverflow.com/a/50908600/2311110)
182+
183+
NB! Will override any other list-id setting, ignoring pr state.
184+
185+
#### 8. `trello-move-to-merged-list-only-on-merge`
180186

181187
When set to true, moves to `trello-list-id-pr-merged` only when the job was triggered by "closed" action.
182188
Useful when other automations are moving cards to subsequent lists, and you want to prevent this workflow from moving them back to trello-list-id-pr-merged in response to non-merge events (e.g., when someone adds a PR comment).
183189

184190
Default: `false`
185191

186-
#### 8. `trello-board-id`
192+
#### 9. `trello-board-id`
187193

188194
Trello board ID where to move the cards. [How to find board ID.](https://stackoverflow.com/a/50908600/2311110) Useful when you want the action to move the card out from a backlog board.
189195

190-
#### 9. `trello-archive-on-merge`
196+
#### 10. `trello-archive-on-merge`
191197

192198
Archives Trello cards when PR is merged.
193199

194200
Default: `false`
195201

196-
#### 10. `trello-card-position`
202+
#### 11. `trello-card-position`
197203

198204
Position of the card after being moved to a list.
199205

@@ -257,7 +263,17 @@ Assigns branch category (e.g. feature/foo) label to Trello card.
257263

258264
Default: `true`
259265

260-
#### 2. `trello-conflicting-labels`
266+
#### 2. `trello-add-manual-labels-to-cards`
267+
268+
Manually assigns labels to Trello card.
269+
270+
Example:
271+
272+
```yaml
273+
trello-add-manual-labels-to-cards: 'v1;steve;urgent'
274+
```
275+
276+
#### 3. `trello-conflicting-labels`
261277

262278
When a card already has one of these labels then branch category label is not assigned.
263279

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,16 @@ inputs:
6363
description: Trello list ID for closed pull request. If trello-list-id-pr-merged is set and card is merged, then the card will be moved to merged list.
6464
trello-list-id-pr-merged:
6565
description: Trello list ID for merged pull request. If trello-archive-on-merge is set to true, the card is archived instead of moving to this list.
66+
trello-list-id-override:
67+
description: Trello list ID where to manually move cards. If set, overrides all other list move rules.
6668
trello-move-to-merged-list-only-on-merge:
6769
description: When set to true, moves to trello-list-id-pr-merged only when the job was triggered by "closed" action.
6870
default: false
6971
trello-add-labels-to-cards:
7072
description: Enable or disable the automatic addition of labels to cards.
7173
default: true
74+
trello-add-manual-labels-to-cards:
75+
description: Add these semicolon-separated labels to the Trello card.
7276
trello-conflicting-labels:
7377
description: When a card has one of these labels, branch category label is not assigned.
7478
trello-card-position:

0 commit comments

Comments
 (0)