alfred github workflow
Version 1.9.1
คุณสามารถค้นหาผ่าน GitHub ( gh ) และอินสแตนซ์ GitHub Enterprise ของคุณ ( ghe )
ดาวน์โหลด

ขั้นตอนการทำงานนี้ต้องใช้ PHP ซึ่งไม่ได้ติดตั้งไว้ล่วงหน้าอีกต่อไปตั้งแต่ macOS 12 Montery
คุณสามารถติดตั้งผ่าน Homebrew ( brew install php )
ในประเภท Alfred ( gh > login ) เพื่อตรวจสอบสิทธิ์กับบัญชีของคุณ การเข้าสู่ระบบใช้ OAuth ดังนั้นคุณไม่จำเป็นต้องป้อนข้อมูลรับรอง
ghe > url https://github.mycompany.com )ghe > generate token หรือ https://github.mycompany.com/settings/applications ) ต้องการการเข้าถึง repos ของคุณเท่านั้น คัดลอกโทเค็นนี้ไปยังคลิปบอร์ดของคุณghe > login <paste token here> )ghe your_enterprise_repo_name แล้วองค์กรต้องอนุมัติแอปนี้ ไม่เช่นนั้นจะไม่สามารถเข้าถึงที่เก็บข้อมูลส่วนตัวขององค์กรนั้นได้ สามารถขอสิทธิ์ได้ที่นี่
| คีย์ผสม | การกระทำ |
|---|---|
enter | เปิดรายการในเบราว์เซอร์เริ่มต้น |
cmd + c | คัดลอก URL ของรายการ |
cmd + enter | วาง URL ไว้ด้านหน้าแอปส่วนใหญ่ |
shift หรือ cmd + y | เปิด URL ใน QuickLook |
หากต้องการค้นหาผ่านอินสแตนซ์ GitHub Enterprise ของคุณ ให้แทนที่ gh ด้วย ghe
gh user/repogh user/repo #123gh user/repo @branchgh user/repo *commitgh user/repo /path/to/filegh user/repo actionsgh user/repo admingh user/repo clonegh user/repo devgh user/repo discussionsgh user/repo graphsgh user/repo issuesgh user/repo milestonesgh user/repo networkgh user/repo new issuegh user/repo new pullgh user/repo projectsgh user/repo pullsgh user/repo pulsegh user/repo releasesgh user/repo wikigh user/repo projectsgh @usergh @user overviewgh @user repositoriesgh @user starsgh @user gistsgh s repogh s @usergh my dashboardgh my notificationsgh my profilegh my issuesgh my issues createdgh my issues assignedgh my issues mentionedgh my pullsgh my pulls createdgh my pulls assignedgh my pulls mentionedgh my pulls review requestedgh my reposgh my repos newgh my settingsgh my starsgh my gistsgh > logingh > logoutgh > delete cachegh > delete databasegh > updategh > activate autoupdategh > deactivate autoupdategh > helpgh > changelogghe > url (GitHub Enterprise เท่านั้น)ghe > generate token (GitHub Enterprise เท่านั้น)ghe > enterprise reset (GitHub Enterprise เท่านั้น)