alfred github workflow
Version 1.9.1
您可以搜尋 GitHub ( gh
) 和您的 GitHub Enterprise 實例 ( ghe
)。
下載
此工作流程需要 PHP,自 macOS 12 Montery 起不再預先安裝 PHP。
您可以透過 Homebrew ( brew install php
) 安裝它。
在 Alfred 中輸入 ( gh > login
) 以針對您的帳戶進行身份驗證。登入使用 OAuth,因此您無需輸入憑證。
ghe > url https://github.mycompany.com
)ghe > generate token
或https://github.mycompany.com/settings/applications
)。它只需要存取您的存儲庫。將此令牌複製到剪貼簿。ghe > login <paste token here>
)ghe your_enterprise_repo_name
組織必須批准此應用程序,否則無法存取該組織的私人儲存庫。可以在此處請求存取權限。
組合鍵 | 行動 |
---|---|
enter | 在預設瀏覽器中開啟條目 |
cmd + c | 複製條目的 URL |
cmd + enter | 將 URL 貼到最前面的應用程式 |
shift 或cmd + y | 在 QuickLook 中開啟 URL |
若要搜尋 GitHub Enterprise 實例,請將gh
替換為ghe
。
gh user/repo
gh user/repo #123
gh user/repo @branch
gh user/repo *commit
gh user/repo /path/to/file
gh user/repo actions
gh user/repo admin
gh user/repo clone
gh user/repo dev
gh user/repo discussions
gh user/repo graphs
gh user/repo issues
gh user/repo milestones
gh user/repo network
gh user/repo new issue
gh user/repo new pull
gh user/repo projects
gh user/repo pulls
gh user/repo pulse
gh user/repo releases
gh user/repo wiki
gh user/repo projects
gh @user
gh @user overview
gh @user repositories
gh @user stars
gh @user gists
gh s repo
gh s @user
gh my dashboard
gh my notifications
gh my profile
gh my issues
gh my issues created
gh my issues assigned
gh my issues mentioned
gh my pulls
gh my pulls created
gh my pulls assigned
gh my pulls mentioned
gh my pulls review requested
gh my repos
gh my repos new
gh my settings
gh my stars
gh my gists
gh > login
gh > logout
gh > delete cache
gh > delete database
gh > update
gh > activate autoupdate
gh > deactivate autoupdate
gh > help
gh > changelog
ghe > url
(僅限 GitHub Enterprise)ghe > generate token
(僅限 GitHub Enterprise)ghe > enterprise reset
(僅限 GitHub Enterprise)