This repository contains a collection of useful scripts for various tasks and integrations. Below you'll find detailed information about each component and how to use them.
Scripts are installed to /usr/local/lib/scripts
and can be run directly after installation.
# Pattern
scripts <provider> <action>
# Example
scripts gitlab mr-create <target_branch>
The repository includes an installation script (install.sh
) that:
- Installs the scripts to
/usr/local/lib/scripts
- Sets up auto-completion for the scripts
- Requires root privileges to install
- Adds necessary bash completion configurations
To install, run:
sudo ./install.sh
A script to automate merge request creation in GitLab.
Features:
- Automatically creates merge requests from current branch
- Uses GitLab API with private token authentication
- Extracts commit message as MR title
- Supports custom target branch selection
- Requires
GITLAB_PRIVATE_TOKEN
environment variable
Usage:
mr-create.sh [target-branch]
Manages ClickUp tasks through command line interface.
Features:
- Updates task status in ClickUp
- Handles multiple task IDs
- Requires
CU_PERSONAL_TOKEN
environment variable - Supports parent task relationships
Usage:
task-update.sh [task-ids] [status]
Sends messages to Microsoft Teams channels via webhooks.
Features:
- Sends messages to Teams channels
- Uses webhook URLs for authentication
- Simple POST request implementation
Usage:
message-send.sh
Some unneccesary commands
- Bash shell environment
curl
for API requestsjq
for JSON processingrsync
for installation- Proper environment variables set for various integrations
The following environment variables are required for different scripts:
GITLAB_PRIVATE_TOKEN
: For GitLab operationsCU_PERSONAL_TOKEN
: For ClickUp operations
The installation process sets up command auto-completion for easier script usage. This is configured through:
/etc/bash_completion.d/scripts-autocomplete
- Automatic registration in
.bashrc
- All scripts are executable shell scripts
- Each script performs input validation
- Error handling is implemented for API responses
- Scripts follow a consistent pattern for environment variable checking
This documentation was generated by Amazon Q with some adjustments.