Skip to content

Commit

Permalink
Merge pull request #148 from zowe/ci/add-pr-to-project
Browse files Browse the repository at this point in the history
Add workflow to update issue and PR status on GH project board
  • Loading branch information
zFernand0 authored Jan 9, 2024
2 parents 69ec19c + 088888f commit a2d2230
Show file tree
Hide file tree
Showing 30 changed files with 594 additions and 574 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/update-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Update GitHub Project

on:
issues:
types: [labeled]
pull_request_target:
types: [opened, reopened, converted_to_draft, ready_for_review]

env:
PROJECT_NUMBER: 21
ISSUE_STATUSES: '{"priority-high": "High Priority", "priority-medium": "Medium Priority", "priority-low": "Low Priority", "Epic": "Epics"}'
PR_STATUS_DRAFT: 'In Progress'
PR_STATUS_READY: 'Review/QA'

jobs:
update-project:
name: Move project item
runs-on: ubuntu-latest
steps:
- uses: zowe-actions/shared-actions/project-move-item@main
if: ${{ github.event.issue && fromJSON(env.ISSUE_STATUSES)[github.event.label.name] }}
with:
item-status: ${{ fromJSON(env.ISSUE_STATUSES)[github.event.label.name] }}
project-number: ${{ env.PROJECT_NUMBER }}
project-token: ${{ secrets.ZOWE_ROBOT_TOKEN }}

- uses: zowe-actions/shared-actions/project-move-item@main
if: ${{ github.event.pull_request }}
with:
assign-author: true
item-status: ${{ github.event.action == 'ready_for_review' && env.PR_STATUS_READY || env.PR_STATUS_DRAFT }}
project-number: ${{ env.PROJECT_NUMBER }}
project-token: ${{ secrets.ZOWE_ROBOT_TOKEN }}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ exports[`delete data set command should display delete data set help 1`] = `
--cert-file (local file path)
The file path to a certificate file to use for authentication
The file path to a certificate file to use for authentication.
Note: The CLI does not support certificate files that require a password. For
more information, search Troubleshooting PEM Certificates in Zowe Docs.
--cert-key-file (local file path)
Expand Down Expand Up @@ -145,8 +148,8 @@ exports[`delete data set command should display delete data set help 1`] = `
\\"success\\": true,
\\"exitCode\\": 0,
\\"message\\": \\"The help was constructed for command: data-set.\\",
\\"stdout\\": \\"\\\\n COMMAND NAME\\\\n ------------\\\\n\\\\n data-set | ds\\\\n\\\\n DESCRIPTION\\\\n -----------\\\\n\\\\n Delete a data set\\\\n\\\\n USAGE\\\\n -----\\\\n\\\\n zowe zos-ftp delete data-set <dataSet> [options]\\\\n\\\\n POSITIONAL ARGUMENTS\\\\n --------------------\\\\n\\\\n dataSet\\\\t\\\\t (string)\\\\n\\\\n The data set (PDS member or physical sequential data set) which you would like\\\\n to delete.\\\\n\\\\n REQUIRED OPTIONS\\\\n ----------------\\\\n\\\\n --for-sure | -f (boolean)\\\\n\\\\n Specify this option to confirm that you want to delete the data set permanently.\\\\n\\\\n FTP CONNECTION OPTIONS\\\\n ----------------------\\\\n\\\\n --host | -H (string)\\\\n\\\\n The hostname or IP address of the z/OS server to connect to.\\\\n\\\\n --port | -P (number)\\\\n\\\\n The port of the z/OS FTP server.\\\\n\\\\n Default value: 21\\\\n\\\\n --user | -u (string)\\\\n\\\\n Username for authentication on z/OS\\\\n\\\\n --password | -p | --pass | --pw (string)\\\\n\\\\n Password to authenticate to FTP.\\\\n\\\\n --secure-ftp (boolean)\\\\n\\\\n Set to true for both control and data connection encryption, 'control' for\\\\n control connection encryption only, or 'implicit' for implicitly encrypted\\\\n control connection (this mode is deprecated in modern times, but usually uses\\\\n port 990). Note: Unfortunately, this plugin's functionality only works with FTP\\\\n and FTPS, not 'SFTP' which is FTP over SSH.\\\\n\\\\n Default value: true\\\\n\\\\n --connection-timeout | --ct (number)\\\\n\\\\n How long (in milliseconds) to wait for the control connection to be established.\\\\n\\\\n Default value: 10000\\\\n\\\\n TLS / SECURE CONNECTION OPTIONS\\\\n -------------------------------\\\\n\\\\n --reject-unauthorized | --ru (boolean)\\\\n\\\\n Reject self-signed certificates. Only specify this if you are connecting to a\\\\n secure FTP instance.\\\\n\\\\n --server-name | --sn (string)\\\\n\\\\n Server name for the SNI (Server Name Indication) TLS extension. Only specify if\\\\n you are connecting securely\\\\n\\\\n PROFILE OPTIONS\\\\n ---------------\\\\n\\\\n --zftp-profile | --zftp-p (string)\\\\n\\\\n The name of a (zftp) profile to load for this command execution.\\\\n\\\\n --base-profile | --base-p (string)\\\\n\\\\n The name of a (base) profile to load for this command execution.\\\\n\\\\n BASE CONNECTION OPTIONS\\\\n -----------------------\\\\n\\\\n --token-type | --tt (string)\\\\n\\\\n The type of token to get and use for the API. Omit this option to use the\\\\n default token type, which is provided by 'zowe auth login'.\\\\n\\\\n --token-value | --tv (string)\\\\n\\\\n The value of the token to pass to the API.\\\\n\\\\n --cert-file (local file path)\\\\n\\\\n The file path to a certificate file to use for authentication\\\\n\\\\n --cert-key-file (local file path)\\\\n\\\\n The file path to a certificate key file to use for authentication\\\\n\\\\n GLOBAL OPTIONS\\\\n --------------\\\\n\\\\n --show-inputs-only (boolean)\\\\n\\\\n Show command inputs and do not run the command\\\\n\\\\n --response-format-json | --rfj (boolean)\\\\n\\\\n Produce JSON formatted data from a command\\\\n\\\\n --help | -h (boolean)\\\\n\\\\n Display help text\\\\n\\\\n --help-web | --hw (boolean)\\\\n\\\\n Display HTML help in browser\\\\n\\\\n EXAMPLES\\\\n --------\\\\n\\\\n - Delete the data set \\\\\\"ibmuser.cntl\\\\\\":\\\\n\\\\n $ zowe zos-ftp delete data-set \\\\\\"ibmuser.cntl\\\\\\" -f\\\\n\\\\n\\",
\\"stdout\\": \\"\\\\n COMMAND NAME\\\\n ------------\\\\n\\\\n data-set | ds\\\\n\\\\n DESCRIPTION\\\\n -----------\\\\n\\\\n Delete a data set\\\\n\\\\n USAGE\\\\n -----\\\\n\\\\n zowe zos-ftp delete data-set <dataSet> [options]\\\\n\\\\n POSITIONAL ARGUMENTS\\\\n --------------------\\\\n\\\\n dataSet\\\\t\\\\t (string)\\\\n\\\\n The data set (PDS member or physical sequential data set) which you would like\\\\n to delete.\\\\n\\\\n REQUIRED OPTIONS\\\\n ----------------\\\\n\\\\n --for-sure | -f (boolean)\\\\n\\\\n Specify this option to confirm that you want to delete the data set permanently.\\\\n\\\\n FTP CONNECTION OPTIONS\\\\n ----------------------\\\\n\\\\n --host | -H (string)\\\\n\\\\n The hostname or IP address of the z/OS server to connect to.\\\\n\\\\n --port | -P (number)\\\\n\\\\n The port of the z/OS FTP server.\\\\n\\\\n Default value: 21\\\\n\\\\n --user | -u (string)\\\\n\\\\n Username for authentication on z/OS\\\\n\\\\n --password | -p | --pass | --pw (string)\\\\n\\\\n Password to authenticate to FTP.\\\\n\\\\n --secure-ftp (boolean)\\\\n\\\\n Set to true for both control and data connection encryption, 'control' for\\\\n control connection encryption only, or 'implicit' for implicitly encrypted\\\\n control connection (this mode is deprecated in modern times, but usually uses\\\\n port 990). Note: Unfortunately, this plugin's functionality only works with FTP\\\\n and FTPS, not 'SFTP' which is FTP over SSH.\\\\n\\\\n Default value: true\\\\n\\\\n --connection-timeout | --ct (number)\\\\n\\\\n How long (in milliseconds) to wait for the control connection to be established.\\\\n\\\\n Default value: 10000\\\\n\\\\n TLS / SECURE CONNECTION OPTIONS\\\\n -------------------------------\\\\n\\\\n --reject-unauthorized | --ru (boolean)\\\\n\\\\n Reject self-signed certificates. Only specify this if you are connecting to a\\\\n secure FTP instance.\\\\n\\\\n --server-name | --sn (string)\\\\n\\\\n Server name for the SNI (Server Name Indication) TLS extension. Only specify if\\\\n you are connecting securely\\\\n\\\\n PROFILE OPTIONS\\\\n ---------------\\\\n\\\\n --zftp-profile | --zftp-p (string)\\\\n\\\\n The name of a (zftp) profile to load for this command execution.\\\\n\\\\n --base-profile | --base-p (string)\\\\n\\\\n The name of a (base) profile to load for this command execution.\\\\n\\\\n BASE CONNECTION OPTIONS\\\\n -----------------------\\\\n\\\\n --token-type | --tt (string)\\\\n\\\\n The type of token to get and use for the API. Omit this option to use the\\\\n default token type, which is provided by 'zowe auth login'.\\\\n\\\\n --token-value | --tv (string)\\\\n\\\\n The value of the token to pass to the API.\\\\n\\\\n --cert-file (local file path)\\\\n\\\\n The file path to a certificate file to use for authentication.\\\\n\\\\n Note: The CLI does not support certificate files that require a password. For\\\\n more information, search Troubleshooting PEM Certificates in Zowe Docs.\\\\n\\\\n --cert-key-file (local file path)\\\\n\\\\n The file path to a certificate key file to use for authentication\\\\n\\\\n GLOBAL OPTIONS\\\\n --------------\\\\n\\\\n --show-inputs-only (boolean)\\\\n\\\\n Show command inputs and do not run the command\\\\n\\\\n --response-format-json | --rfj (boolean)\\\\n\\\\n Produce JSON formatted data from a command\\\\n\\\\n --help | -h (boolean)\\\\n\\\\n Display help text\\\\n\\\\n --help-web | --hw (boolean)\\\\n\\\\n Display HTML help in browser\\\\n\\\\n EXAMPLES\\\\n --------\\\\n\\\\n - Delete the data set \\\\\\"ibmuser.cntl\\\\\\":\\\\n\\\\n $ zowe zos-ftp delete data-set \\\\\\"ibmuser.cntl\\\\\\" -f\\\\n\\\\n\\",
\\"stderr\\": \\"\\",
\\"data\\": \\"\\\\n COMMAND NAME\\\\n ------------\\\\n\\\\n data-set | ds\\\\n\\\\n DESCRIPTION\\\\n -----------\\\\n\\\\n Delete a data set\\\\n\\\\n USAGE\\\\n -----\\\\n\\\\n zowe zos-ftp delete data-set <dataSet> [options]\\\\n\\\\n POSITIONAL ARGUMENTS\\\\n --------------------\\\\n\\\\n dataSet\\\\t\\\\t (string)\\\\n\\\\n The data set (PDS member or physical sequential data set) which you would like\\\\n to delete.\\\\n\\\\n REQUIRED OPTIONS\\\\n ----------------\\\\n\\\\n --for-sure | -f (boolean)\\\\n\\\\n Specify this option to confirm that you want to delete the data set permanently.\\\\n\\\\n FTP CONNECTION OPTIONS\\\\n ----------------------\\\\n\\\\n --host | -H (string)\\\\n\\\\n The hostname or IP address of the z/OS server to connect to.\\\\n\\\\n --port | -P (number)\\\\n\\\\n The port of the z/OS FTP server.\\\\n\\\\n Default value: 21\\\\n\\\\n --user | -u (string)\\\\n\\\\n Username for authentication on z/OS\\\\n\\\\n --password | -p | --pass | --pw (string)\\\\n\\\\n Password to authenticate to FTP.\\\\n\\\\n --secure-ftp (boolean)\\\\n\\\\n Set to true for both control and data connection encryption, 'control' for\\\\n control connection encryption only, or 'implicit' for implicitly encrypted\\\\n control connection (this mode is deprecated in modern times, but usually uses\\\\n port 990). Note: Unfortunately, this plugin's functionality only works with FTP\\\\n and FTPS, not 'SFTP' which is FTP over SSH.\\\\n\\\\n Default value: true\\\\n\\\\n --connection-timeout | --ct (number)\\\\n\\\\n How long (in milliseconds) to wait for the control connection to be established.\\\\n\\\\n Default value: 10000\\\\n\\\\n TLS / SECURE CONNECTION OPTIONS\\\\n -------------------------------\\\\n\\\\n --reject-unauthorized | --ru (boolean)\\\\n\\\\n Reject self-signed certificates. Only specify this if you are connecting to a\\\\n secure FTP instance.\\\\n\\\\n --server-name | --sn (string)\\\\n\\\\n Server name for the SNI (Server Name Indication) TLS extension. Only specify if\\\\n you are connecting securely\\\\n\\\\n PROFILE OPTIONS\\\\n ---------------\\\\n\\\\n --zftp-profile | --zftp-p (string)\\\\n\\\\n The name of a (zftp) profile to load for this command execution.\\\\n\\\\n --base-profile | --base-p (string)\\\\n\\\\n The name of a (base) profile to load for this command execution.\\\\n\\\\n BASE CONNECTION OPTIONS\\\\n -----------------------\\\\n\\\\n --token-type | --tt (string)\\\\n\\\\n The type of token to get and use for the API. Omit this option to use the\\\\n default token type, which is provided by 'zowe auth login'.\\\\n\\\\n --token-value | --tv (string)\\\\n\\\\n The value of the token to pass to the API.\\\\n\\\\n --cert-file (local file path)\\\\n\\\\n The file path to a certificate file to use for authentication\\\\n\\\\n --cert-key-file (local file path)\\\\n\\\\n The file path to a certificate key file to use for authentication\\\\n\\\\n GLOBAL OPTIONS\\\\n --------------\\\\n\\\\n --show-inputs-only (boolean)\\\\n\\\\n Show command inputs and do not run the command\\\\n\\\\n --response-format-json | --rfj (boolean)\\\\n\\\\n Produce JSON formatted data from a command\\\\n\\\\n --help | -h (boolean)\\\\n\\\\n Display help text\\\\n\\\\n --help-web | --hw (boolean)\\\\n\\\\n Display HTML help in browser\\\\n\\\\n EXAMPLES\\\\n --------\\\\n\\\\n - Delete the data set \\\\\\"ibmuser.cntl\\\\\\":\\\\n\\\\n $ zowe zos-ftp delete data-set \\\\\\"ibmuser.cntl\\\\\\" -f\\\\n\\\\n\\"
\\"data\\": \\"\\\\n COMMAND NAME\\\\n ------------\\\\n\\\\n data-set | ds\\\\n\\\\n DESCRIPTION\\\\n -----------\\\\n\\\\n Delete a data set\\\\n\\\\n USAGE\\\\n -----\\\\n\\\\n zowe zos-ftp delete data-set <dataSet> [options]\\\\n\\\\n POSITIONAL ARGUMENTS\\\\n --------------------\\\\n\\\\n dataSet\\\\t\\\\t (string)\\\\n\\\\n The data set (PDS member or physical sequential data set) which you would like\\\\n to delete.\\\\n\\\\n REQUIRED OPTIONS\\\\n ----------------\\\\n\\\\n --for-sure | -f (boolean)\\\\n\\\\n Specify this option to confirm that you want to delete the data set permanently.\\\\n\\\\n FTP CONNECTION OPTIONS\\\\n ----------------------\\\\n\\\\n --host | -H (string)\\\\n\\\\n The hostname or IP address of the z/OS server to connect to.\\\\n\\\\n --port | -P (number)\\\\n\\\\n The port of the z/OS FTP server.\\\\n\\\\n Default value: 21\\\\n\\\\n --user | -u (string)\\\\n\\\\n Username for authentication on z/OS\\\\n\\\\n --password | -p | --pass | --pw (string)\\\\n\\\\n Password to authenticate to FTP.\\\\n\\\\n --secure-ftp (boolean)\\\\n\\\\n Set to true for both control and data connection encryption, 'control' for\\\\n control connection encryption only, or 'implicit' for implicitly encrypted\\\\n control connection (this mode is deprecated in modern times, but usually uses\\\\n port 990). Note: Unfortunately, this plugin's functionality only works with FTP\\\\n and FTPS, not 'SFTP' which is FTP over SSH.\\\\n\\\\n Default value: true\\\\n\\\\n --connection-timeout | --ct (number)\\\\n\\\\n How long (in milliseconds) to wait for the control connection to be established.\\\\n\\\\n Default value: 10000\\\\n\\\\n TLS / SECURE CONNECTION OPTIONS\\\\n -------------------------------\\\\n\\\\n --reject-unauthorized | --ru (boolean)\\\\n\\\\n Reject self-signed certificates. Only specify this if you are connecting to a\\\\n secure FTP instance.\\\\n\\\\n --server-name | --sn (string)\\\\n\\\\n Server name for the SNI (Server Name Indication) TLS extension. Only specify if\\\\n you are connecting securely\\\\n\\\\n PROFILE OPTIONS\\\\n ---------------\\\\n\\\\n --zftp-profile | --zftp-p (string)\\\\n\\\\n The name of a (zftp) profile to load for this command execution.\\\\n\\\\n --base-profile | --base-p (string)\\\\n\\\\n The name of a (base) profile to load for this command execution.\\\\n\\\\n BASE CONNECTION OPTIONS\\\\n -----------------------\\\\n\\\\n --token-type | --tt (string)\\\\n\\\\n The type of token to get and use for the API. Omit this option to use the\\\\n default token type, which is provided by 'zowe auth login'.\\\\n\\\\n --token-value | --tv (string)\\\\n\\\\n The value of the token to pass to the API.\\\\n\\\\n --cert-file (local file path)\\\\n\\\\n The file path to a certificate file to use for authentication.\\\\n\\\\n Note: The CLI does not support certificate files that require a password. For\\\\n more information, search Troubleshooting PEM Certificates in Zowe Docs.\\\\n\\\\n --cert-key-file (local file path)\\\\n\\\\n The file path to a certificate key file to use for authentication\\\\n\\\\n GLOBAL OPTIONS\\\\n --------------\\\\n\\\\n --show-inputs-only (boolean)\\\\n\\\\n Show command inputs and do not run the command\\\\n\\\\n --response-format-json | --rfj (boolean)\\\\n\\\\n Produce JSON formatted data from a command\\\\n\\\\n --help | -h (boolean)\\\\n\\\\n Display help text\\\\n\\\\n --help-web | --hw (boolean)\\\\n\\\\n Display HTML help in browser\\\\n\\\\n EXAMPLES\\\\n --------\\\\n\\\\n - Delete the data set \\\\\\"ibmuser.cntl\\\\\\":\\\\n\\\\n $ zowe zos-ftp delete data-set \\\\\\"ibmuser.cntl\\\\\\" -f\\\\n\\\\n\\"
}"
`;
Loading

0 comments on commit a2d2230

Please sign in to comment.