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)