Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for more quick-access git URLs #17

Merged
merged 2 commits into from
Jul 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ Optimize your development productivity in the terminal
- [Extra Feature Setup](#extra-feature-setup)
- [Factory-reset Installation](#factory-reset-installation)
- [List of Commands](#list-of-commands)
- [Defaults](#defaults)
- [Defaults](#defaults)
- [Navigation](#navigation)
- [Pseudo-random String Generation](#pseudo-random-string-generation)
- [Code Editing](#code-editing)
- [Custom Script/Environment Execution](#custom-scriptenvironment-execution)
- [Git Automation](#git-automation)
Expand Down Expand Up @@ -172,9 +171,12 @@ Please note any command with an argument in angle brackets below (ie. `<branch>`

1. `repo`: go to the respective GitHub repository url on the default branch from your current directory
2. `branch`: go to the respective GitHub repository url on the current branch from your current directory
3. `profile`: go to your GitHub profile
4. `org <myorg?>`: go to the specified url of the GitHub organization
5. `help`: go to the wix-cli GitHub Pages url for documentation
3. `prs`: go to the Pull Requests page for the respective GitHub repository url from your current directory
4. `actions`: go to the Action Workflows page for the respective GitHub repository url from your current directory
5. `issues`: go to the Issues page for the respective GitHub repository url from your current directory
6. `profile`: go to your GitHub profile
7. `org <myorg?>`: go to the specified url of the GitHub organization
8. `help`: go to the wix-cli GitHub Pages url for documentation

### Data for Custom Scripting Logic

Expand Down
Binary file modified scripts/services/__pycache__/logger.cpython-38.pyc
Binary file not shown.
27 changes: 21 additions & 6 deletions wix-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,14 @@ if [ $num_args -eq 0 ]; then
echo "- setup smart_commit ${ORANGE}: setup smart commit${RESET}"
echo ""
h1_text "URLS:"
echo "- repo ${ORANGE}: go to git repo url${RESET}"
echo "- branch ${ORANGE}: go to git branch url${RESET}"
echo "- profile ${ORANGE}: go to git profile url${RESET}"
echo "- org <myorg?> ${ORANGE}: go to git org url${RESET}"
echo "- help ${ORANGE}: go to wix-cli GitHub Pages url${RESET}"
echo "- repo ${ORANGE}: go to git repo URL${RESET}"
echo "- branch ${ORANGE}: go to git branch URL${RESET}"
echo "- prs ${ORANGE}: go to git repo Pull Requests URL${RESET}"
echo "- actions ${ORANGE}: go to git repo Actions URL${RESET}"
echo "- issues ${ORANGE}: go to git repo Issues URL${RESET}"
echo "- profile ${ORANGE}: go to git profile URL${RESET}"
echo "- org <myorg?> ${ORANGE}: go to git org URL${RESET}"
echo "- help ${ORANGE}: go to wix-cli GitHub Pages URL${RESET}"
echo ""
h1_text "MY DATA:"
echo "- user ${ORANGE}: view your user-specific data (ie. name, GitHub username)${RESET}"
Expand Down Expand Up @@ -612,7 +615,19 @@ elif [ "$1" = "repo" ]; then
elif [ "$1" = "branch" ]; then
info_text "Redirecting to $branch on $repo_url..."
giturl "https://github.com/$repo_url/tree/$branch"


elif [ "$1" = "actions" ]; then
info_text "Redirecting to Action Workflows on $repo_url..."
giturl "https://github.com/$repo_url/actions"

elif [ "$1" = "issues" ]; then
info_text "Redirecting to Issues on $repo_url..."
giturl "https://github.com/$repo_url/issues"

elif [ "$1" = "prs" ]; then
info_text "Redirecting to Pull Requests on $repo_url..."
giturl "https://github.com/$repo_url/pulls"

elif [ "$1" = "nb" ]; then
if arggt "1" ; then
npush "$2"
Expand Down