-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Labels
Description
Description:
I propose the following updates to the existing script to enhance the payload creation and improve the handling of API responses when creating a GitHub repository.
Changes:
-
Instead of directly creating the payload using cat, we're now using jq to construct a JSON object with the necessary fields. This ensures the proper handling of special characters and prevents potential issues.
-
Removed the private and auto_init fields from the payload creation since you set them to false by default.
-
Utilized jq to parse the response from GitHub and extract the relevant information for error handling and success messages.
Benefits:
- The updated payload creation using jq ensures proper handling of special characters and prevents issues that may arise when using cat directly.
- The use of jq to parse the response allows for more accurate error handling and success messages, providing better feedback during the repository creation process.