Closed sweep-ai[bot] closed 1 year ago
GitHub actions yielded the following error.
The command that failed is Run nick-fields/private-action-loader@v3
. Here are the relevant lines from the logs:
##[warning]Unexpected input(s) 'token', 'command', valid inputs are ['pal-repo-token', 'pal-repo-name', 'pal-action-directory']
##[group]Run nick-fields/private-action-loader@v3
with:
pal-repo-name: airbytehq/workflow-actions@production
command: pull
##[endgroup]
/home/runner/work/_actions/nick-fields/private-action-loader/v3/dist/index.js:8846
throw new Error(`Input required and not supplied: ${name}`);
^
Error: Input required and not supplied: pal-repo-token
This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.
GitHub actions yielded the following error.
The command that failed is Run actions/labeler@v3
. Here are the relevant lines from the logs:
##[error]Error: Input required and not supplied: repo-token
##[error]Input required and not supplied: repo-token
Please note that the error message indicates that the repo-token
input is required but not supplied.
This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.
GitHub actions yielded the following error.
The command that failed is Run actions/labeler@v3
. Here are the relevant lines from the logs:
##[error]Error: Input required and not supplied: repo-token
##[error]Input required and not supplied: repo-token
Please note that the error message indicates that the repo-token
input is required but not supplied.
This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.
GitHub actions yielded the following error.
The command that failed is Run nick-fields/private-action-loader@v3
. Here are the relevant lines from the logs:
##[warning]Unexpected input(s) 'token', 'command', valid inputs are ['pal-repo-token', 'pal-repo-name', 'pal-action-directory']
##[group]Run nick-fields/private-action-loader@v3
with:
pal-repo-name: airbytehq/workflow-actions@production
command: pull
##[endgroup]
/home/runner/work/_actions/nick-fields/private-action-loader/v3/dist/index.js:8846
throw new Error(`Input required and not supplied: ${name}`);
^
Error: Input required and not supplied: pal-repo-token
This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.
Description
This PR updates the command-line argument parsing in the
entrypoint.py
file of theairbyte-cdk/python
directory from using theargparse
library to using theClick
library. It also updates thesetup.py
file to includeClick
as a dependency and updates the unit tests intest_entrypoint.py
to reflect the changes made to the argument parsing logic.Summary of Changes
argparse
library with theClick
library in theparse_args
method ofentrypoint.py
.entrypoint.py
to work with the newClick
-based arguments.Click
as a dependency in theinstall_requires
list ofsetup.py
.test_entrypoint.py
to useClick
-based arguments and updated relevant assertions.Please review and merge this PR. Thank you!
Fixes #4.
To checkout this PR branch, run the following command in your terminal: