Skip to content

Commit 69f4fa5

Browse files
1 parent 8bc9ea1 commit 69f4fa5

File tree

8 files changed

+12
-9687
lines changed

8 files changed

+12
-9687
lines changed

.gitignore

Lines changed: 0 additions & 103 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
# UpdateLabelsFromPullRequestsAction
22

3-
This action checks if associated pull requests contain certain labels. If any of these labels are found in any associated pull requests, the current pull request is labeled with the labels found.
3+
## Deprecated version
44

5-
## Inputs
6-
### `current-pr-number`
7-
[**Required**] Number of the current PullRequest that triggered the action
8-
9-
### `interesting-labels`
10-
[**Required**] Labels to be sought in associated pull requests
11-
12-
13-
### `repo-token`
14-
[**Required**] Github token used to make API calls
15-
16-
## How to update ?
17-
- Install `vercel/ncc` by running this command in your terminal.
18-
```
19-
npm i -g @vercel/ncc
20-
```
21-
- Compile your index.js file.
22-
```
23-
ncc build index.js --license licenses.txt
24-
```
25-
26-
Official documentation can be found [here](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#commit-tag-and-push-your-action-to-github)
5+
This version of FinalCAD/UpdateLabelsFromPullRequestsAction is deprecated use `v1` instead.

action.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ description: 'Set labels on PR from associated PRs'
33
inputs:
44
current-pr-number:
55
description: 'PR number on which labels must be set'
6-
required: true
6+
default: ''
77
interesting-labels:
88
description: 'Labels sought. Must be separated by , ie. ''infra,sqitch'''
9-
required: true
9+
default: ''
1010
repo-token:
1111
description: 'Github token to call API'
12-
required: true
12+
default: ''
1313
runs:
14-
using: 'node16'
15-
main: 'dist/index.js'
14+
using: 'composite'
15+
steps:
16+
- name: Deprecated version of FinalCAD/UpdateLabelsFromPullRequestsAction
17+
shell: bash
18+
run: |
19+
echo '::error title=Deprecated version of FinalCAD/UpdateLabelsFromPullRequestsAction::This version of FinalCAD/UpdateLabelsFromPullRequestsAction is deprecated use `v1` instead.'
20+
exit 1

0 commit comments

Comments
 (0)