# PRs awaiting my review echo -e "\n$YELLOW Awaiting your review:$NC" gh pr list --search "review-requested:@me" --state open --limit 5 \ --json title,number,url,author,headRefName \ --template 'range .printf " #%v by @%v: %v\n %v\n" .number .author.login .title .urlend' 2>/dev/null show_ci_status() echo -e "\n$CYANπ CI/CD Status:$NC" local branch=$(get_current_branch)
cat > ~/.local/share/applications/github-desktop-info.desktop << EOF [Desktop Entry] Name=GitHub Desktop Info Comment=GitHub repository information dashboard Exec=$HOME/bin/gh-desktop-info Icon=github Terminal=true Type=Application Categories=Development;Git; EOF This provides a comprehensive, informative GitHub Desktop-like experience for Linux with real-time insights into your repository's activity, PR status, and CI/CD health.
echo -e " Current branch: $GREEN$branch$NC" echo -e " $GREENAhead:$NC $ahead commits $REDBehind:$NC $behind commits" linux github desktop
# Recent branches echo -e "\n$YELLOW Recent branches (last 30 days):$NC" git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)' show_repo_health() length' 2>/dev/null Function to show quick actions menu show_actions_menu() echo -e "\n$CYANβ‘ Quick Actions:$NC" echo " 1) Create new branch" echo " 2) Create PR from current branch" echo " 3) Sync with upstream (fetch & rebase)" echo " 4) View file changes" echo " 5) Exit"
# Get latest workflow runs gh run list --branch "$branch" --limit 3 \ --json status,conclusion,displayTitle,url,createdAt \ --template 'range .printf " %v: %v β %v\n %v\n" .displayTitle .status .conclusion .urlend' 2>/dev/null show_commit_activity() \ awk 'printf " %s: %d commits\n", substr($0, index($0,$2)), $1' Function to show branch insights show_branch_insights() cut -d' ' -f2) # PRs awaiting my review echo -e "\n$YELLOW
#!/bin/bash Features: PR status, CI/CD info, commit history, branch insights set -e Colors for better visualization RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' BLUE='\033[0;34m' PURPLE='\033[0;35m' CYAN='\033[0;36m' NC='\033[0m' # No Color Configuration REPO_PATH="$1:-." cd "$REPO_PATH" Function to get current branch info get_current_branch() Function to check if repository is clean is_repo_clean() wc -l Function to get ahead/behind counts get_ahead_behind() awk 'print $1, $2' else echo "0 0" fi Function to display PR information show_pr_info() echo " No open PRs"
read -p "Select action [1-5]: " action case $action in 1) read -p "New branch name: " new_branch git checkout -b "$new_branch" echo -e "$GREENβ Created and switched to branch: $new_branch$NC" ;; 2) read -p "PR title: " pr_title read -p "PR description: " pr_desc gh pr create --title "$pr_title" --body "$pr_desc" --web ;; 3) git fetch --all git rebase origin/$(get_current_branch) echo -e "$GREENβ Synced with upstream$NC" ;; 4) git status --short ;; 5) exit 0 ;; esac watch_repo() head -5 echo "" fi show_branch_insights show_pr_info show_ci_status show_commit_activity show_repo_health echo -e "\n$CYANββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ$NC" echo "Press 'q' to quit, 'a' for actions menu, any other key to refresh..." read -t 5 -n 1 key if [[ $key == "q" ]]; then break elif [[ $key == "a" ]]; then show_actions_menu echo "Press any key to continue..." read -n 1 fi done Main execution main() -w) watch_repo ;; pr Here's a comprehensive script that adds informative features
I'll help you develop an informative feature for GitHub Desktop on Linux. Since GitHub Desktop doesn't have an official Linux version, I'll show you how to create a feature-rich alternative using gh CLI and git with enhanced informative capabilities. Here's a comprehensive script that adds informative features to your GitHub workflow on Linux: