Skip to content

Commit

Permalink
RD-45528 Deprecated versions
Browse files Browse the repository at this point in the history
  • Loading branch information
loganmauzaize-finalcad committed Jan 30, 2025
1 parent 49d4e47 commit 5f0757b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 9,808 deletions.
103 changes: 0 additions & 103 deletions .gitignore

This file was deleted.

36 changes: 2 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,5 @@
# CreatePullRequestAction

This action creates a pull request based on the parameters you use.
## Deprecated version

## Inputs
### `repo-token`
[**Required**] Github token used to make API calls. Must have at least admin:org:read

### `title`
[**Required**] Title of the pull request

### `base`
[**Required**] Name of the destination branch

### `branch`
[**Required**] Name of the source branch

### `team-reviewers`
List of comma-separated names of teams. All users contained in these teams will be individually asked for a review

### `user-reviewers`
List of comma-separated logins of users

### `labels`
List of comma-separated label names. If one does not exist, it will be created

## How to update ?
- Install `vercel/ncc` by running this command in your terminal.
```
npm i -g @vercel/ncc
```
- Compile your index.js file.
```
ncc build index.js --license licenses.txt
```

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)
This version of FinalCAD/CreatePullRequestAction is deprecated use `v1` instead.
25 changes: 15 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,33 @@ description: 'Creates a pull request, assign users and labels'
inputs:
repo-token:
description: 'Must be able to read all members of organization'
required: true
default: ''
repo:
description: 'owner/repo-name'
required: true
default: ''
destination:
description: 'Name of the destination branch'
required: true
default: ''
source:
description: 'Name of the source branch'
required: true
default: ''
title:
description: 'Title of the pull request'
required: true
default: ''
team-reviewers:
description: 'List of comma-separated names of teams. All users contained in these teams will be individually asked for a review'
required: false
default: ''
user-reviewers:
description: 'List of comma-separated logins of users'
required: false
default: ''
labels:
description: 'List of comma-separated label names. If one does not exist, it will be created'
required: false
default: ''
runs:
using: 'node16'
main: 'dist/index.js'
using: 'composite'
steps:
- name: Deprecated version of FinalCAD/CreatePullRequestAction
shell: bash
run: |
echo '::error title=Deprecated version of FinalCAD/CreatePullRequestAction::This version of FinalCAD/CreatePullRequestAction is deprecated use `v1` instead.'
exit 1
Loading

0 comments on commit 5f0757b

Please sign in to comment.