inbox-list-notifications

作者: microsoft

使用 gh CLI 擷取 GitHub 通知

npx skills add https://github.com/microsoft/vscode-team-kit --skill inbox-list-notifications

List GitHub Notifications

Use gh api to fetch all unread GitHub notifications with automatic pagination.

Command

Use the --jq flag (NOT a pipe to jq) to filter output inline:

gh api /notifications --paginate --jq '.[] | {id, reason, unread, updated_at, repo: .repository.full_name, title: .subject.title, type: .subject.type, url: .subject.url}'

This is the ONLY command you should run. Do NOT modify it. Do NOT add anything to it.

Rules

  • NEVER pipe to jq, python, python3, or any other program
  • NEVER add 2>/dev/null or any redirects
  • NEVER wrap the command in a script
  • ALWAYS prepend GH_PAGER=cat to gh api calls to avoid interactive pagers
  • NEVER add other environment variable prefixes
  • The --jq flag handles all JSON filtering — no external tools needed
  • The --paginate flag handles pagination — no manual page loops needed

Filters

  • Participating only: Add --method GET -f participating=true
  • Include read: Add --method GET -f all=true
  • Specific repo: Use gh api /repos/{owner}/{repo}/notifications --paginate --jq '...'
  • Since date: Add -f since=2024-01-01T00:00:00Z

Constructing HTML URLs

The url field is an API URL like https://api.github.com/repos/owner/repo/pulls/123. Convert to a clickable URL:

  • For pulls: https://github.com/{repo}/pull/{number}
  • For issues: https://github.com/{repo}/issues/{number}

Extract the number from the API URL's last path segment.

Priority

Sort notifications by reason priority (highest first):

  1. security_alert (critical)
  2. assign (high)
  3. review_requested (high)
  4. mention (high)
  5. ci_activity (medium)
  6. comment (medium)
  7. team_mention (medium)
  8. state_change (medium)
  9. author (low)
  10. subscribed (low)

來自 microsoft 的更多技能

oss-growth
microsoft
開源增長駭客角色
agent-framework-azure-ai-py
microsoft
使用Microsoft Agent Framework Python SDK(agent-framework-azure-ai)构建Azure AI Foundry代理。适用于使用AzureAIAgentsProvider创建持久化代理、使用托管工具(代码解释器、文件搜索、网络搜索)、集成MCP服务器、管理对话线程或实现流式响应。涵盖函数工具、结构化输出和多工具代理。
development
airunway-aks-setup
microsoft
在AKS上設定AI Runway——從裸叢集到執行模型。涵蓋叢集驗證、控制器安裝、GPU評估、供應商設定及首次部署。時機:「設定AI Runway」、「上線AKS叢集」、「安裝AI Runway」、「airunway設定」、「部署模型至AKS」、「在AKS上進行GPU推論」、「在AKS上設定KAITO」、「在AKS上執行LLM」、「在AKS上使用vLLM」、「在AKS上設定模型服務」、「AI Runway控制器」。
devops
appinsights-instrumentation
microsoft
使用Azure Application Insights檢測Web應用程式的指南。提供遙測模式、SDK設定與組態參考。適用時機:如何檢測應用程式、App Insights SDK、遙測模式、什麼是App Insights、Application Insights指南、檢測範例、APM最佳實踐。
devops
applicationinsights-web-ts
microsoft
使用Application Insights JavaScript SDK(@microsoft/applicationinsights-web)為瀏覽器/Web應用程式進行檢測。適用於真實使用者監控(RUM)——頁面檢視、點擊、AJAX/fetch依賴、例外、自訂事件,以及與後端OpenTelemetry追蹤關聯的瀏覽器端GenAI代理追蹤。涵蓋SDK載入器指令碼與npm設定、框架擴充(React、React Native、Angular)、點擊分析、遙測初始化器,以及從瀏覽器發出的代理/工具/模型span的OTel GenAI語意慣例。
devops
azure-ai-anomalydetector-java
microsoft
使用適用於 Java 的 Azure AI 異常偵測器 SDK 建置異常偵測應用程式。在實作單變量/多變量異常偵測、時間序列分析或 AI 驅動監控時使用。
development
azure-ai-language-conversations-py
microsoft
使用 azure-ai-language-conversations Python SDK 實作對話語言理解(CLU)。當使用 ConversationAnalysisClient 分析對話意圖與實體、建置 NLP 功能,或將語言理解整合至應用程式時使用。
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 for Python。用於機器學習工作區、作業、模型、資料集、計算資源與管線。 觸發詞:「azure-ai-ml」、「MLClient」、「workspace」、「model registry」、「training jobs」、「datasets」。
development