Все источники
GitHub Notifications
РазработкаGet GitHub notifications in your menu bar. Supports filtering by repository.
@codytseng #github #notifications #developer
Install and configure this source
- Install Glanceway and open it on your Mac before using the install link above.
- Choose Install in Glanceway. If the browser cannot open the app, download the .gwsrc file and import it through source management.
- Complete the required fields below, save, and choose a refresh interval. Check the source after its first successful fetch.
Configuration checklist
GITHUB_TOKEN— Required. Personal access token from GitHub Settings Use your own credential; do not share it in screenshots or public files.REPOSITORY— Optional. Optional: Filter by repository (format: owner/repo)
Use a personal access token (classic) with notifications access. The GitHub notifications endpoint does not support fine-grained tokens. REPOSITORY accepts one owner/repo value. An empty list may mean there are no unread notifications.
Example settings
GITHUB_TOKEN: <your GitHub classic token>
REPOSITORY: glanceway/glanceway-sources If items are missing
- Verify the field names, list entries, and credentials against the current version’s configuration table. Sample values below are examples, not active credentials.
- Check network access and upstream service availability. Authentication failures and rate limits can prevent a refresh; use a slower interval when the provider limits requests.
- An empty result can also mean there are no matching items. Fetched content and update timing depend on the provider and source implementation.
Настройки
| Название | Ключ | Тип | Обязательно | По умолчанию | Описание |
|---|---|---|---|---|---|
| GitHub Token | GITHUB_TOKEN | secret | Да | — | Personal access token from GitHub Settings |
| Repository | REPOSITORY | string | Нет | — | Optional: Filter by repository (format: owner/repo) |
Исходный код
id: codytseng/github-notifications
version: 1.1.0
name: GitHub Notifications
description: |
Get GitHub notifications in your menu bar.
Supports filtering by repository.
author: codytseng
author_url: https://github.com/codytseng
category: Developer
tags:
- github
- notifications
- developer
config:
- key: GITHUB_TOKEN
name: GitHub Token
type: secret
required: true
description: "Personal access token from GitHub Settings"
- key: REPOSITORY
name: Repository
type: string
required: false
description: "Optional: Filter by repository (format: owner/repo)" id: codytseng/github-notifications
version: 1.1.0
name: GitHub Notifications
description: |
Get GitHub notifications in your menu bar.
Supports filtering by repository.
author: codytseng
author_url: https://github.com/codytseng
category: Developer
tags:
- github
- notifications
- developer
config:
- key: GITHUB_TOKEN
name: GitHub Token
type: secret
required: true
description: "Personal access token from GitHub Settings"
- key: REPOSITORY
name: Repository
type: string
required: false
description: "Optional: Filter by repository (format: owner/repo)" module.exports = async (api) => {
const token = api.config.get("GITHUB_TOKEN");
const repository = api.config.get("REPOSITORY");
async function fetchData() {
const url = repository
? `https://api.github.com/repos/${repository}/notifications?per_page=100`
: "https://api.github.com/notifications?per_page=100";
const response = await api.fetch(url, {
headers: { Authorization: `Bearer ${token}` },
});
if (!response.ok || !response.json) {
throw new Error(
`Failed to fetch GitHub notifications (HTTP ${response.status})`,
);
}
const items = response.json
.map((item) => {
const itemUrl = item.subject.url
? item.subject.url
.replace("api.github.com/repos", "github.com")
.replace("/pulls/", "/pull/")
.replace("/issues/", "/issues/")
: null;
if (!itemUrl) {
return null;
}
return {
id: item.id,
title: item.subject.title,
subtitle: item.repository.full_name,
url: itemUrl,
timestamp: item.updated_at,
notify: true,
};
})
.filter(Boolean);
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; module.exports = async (api) => {
const token = api.config.get("GITHUB_TOKEN");
const repository = api.config.get("REPOSITORY");
async function fetchData() {
const url = repository
? `https://api.github.com/repos/${repository}/notifications?per_page=100`
: "https://api.github.com/notifications?per_page=100";
const response = await api.fetch(url, {
headers: { Authorization: `Bearer ${token}` },
});
if (!response.ok || !response.json) {
throw new Error(
`Failed to fetch GitHub notifications (HTTP ${response.status})`,
);
}
const items = response.json
.map((item) => {
const itemUrl = item.subject.url
? item.subject.url
.replace("api.github.com/repos", "github.com")
.replace("/pulls/", "/pull/")
.replace("/issues/", "/issues/")
: null;
if (!itemUrl) {
return null;
}
return {
id: item.id,
title: item.subject.title,
subtitle: item.repository.full_name,
url: itemUrl,
timestamp: item.updated_at,
notify: true,
};
})
.filter(Boolean);
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; id: codytseng/github-notifications
version: 1.0.0
name: GitHub Notifications
description: |
Get GitHub notifications in your menu bar.
Supports filtering by repository.
author: codytseng
author_url: https://github.com/codytseng
category: Developer
tags:
- github
- notifications
- developer
config:
- key: GITHUB_TOKEN
name: GitHub Token
type: secret
required: true
description: "Personal access token from GitHub Settings"
- key: REPOSITORY
name: Repository
type: string
required: false
description: "Optional: Filter by repository (format: owner/repo)" id: codytseng/github-notifications
version: 1.0.0
name: GitHub Notifications
description: |
Get GitHub notifications in your menu bar.
Supports filtering by repository.
author: codytseng
author_url: https://github.com/codytseng
category: Developer
tags:
- github
- notifications
- developer
config:
- key: GITHUB_TOKEN
name: GitHub Token
type: secret
required: true
description: "Personal access token from GitHub Settings"
- key: REPOSITORY
name: Repository
type: string
required: false
description: "Optional: Filter by repository (format: owner/repo)" module.exports = async (api) => {
const token = api.config.get("GITHUB_TOKEN");
const repository = api.config.get("REPOSITORY");
async function fetchData() {
const url = repository
? `https://api.github.com/repos/${repository}/notifications?per_page=100`
: "https://api.github.com/notifications?per_page=100";
const response = await api.fetch(url, {
headers: { Authorization: `Bearer ${token}` },
});
if (!response.ok || !response.json) {
throw new Error(
`Failed to fetch GitHub notifications (HTTP ${response.status})`,
);
}
const items = response.json
.map((item) => {
const itemUrl = item.subject.url
? item.subject.url
.replace("api.github.com/repos", "github.com")
.replace("/pulls/", "/pull/")
.replace("/issues/", "/issues/")
: null;
if (!itemUrl) {
return null;
}
return {
id: item.id,
title: item.subject.title,
subtitle: item.repository.full_name,
url: itemUrl,
timestamp: item.updated_at,
};
})
.filter(Boolean);
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; module.exports = async (api) => {
const token = api.config.get("GITHUB_TOKEN");
const repository = api.config.get("REPOSITORY");
async function fetchData() {
const url = repository
? `https://api.github.com/repos/${repository}/notifications?per_page=100`
: "https://api.github.com/notifications?per_page=100";
const response = await api.fetch(url, {
headers: { Authorization: `Bearer ${token}` },
});
if (!response.ok || !response.json) {
throw new Error(
`Failed to fetch GitHub notifications (HTTP ${response.status})`,
);
}
const items = response.json
.map((item) => {
const itemUrl = item.subject.url
? item.subject.url
.replace("api.github.com/repos", "github.com")
.replace("/pulls/", "/pull/")
.replace("/issues/", "/issues/")
: null;
if (!itemUrl) {
return null;
}
return {
id: item.id,
title: item.subject.title,
subtitle: item.repository.full_name,
url: itemUrl,
timestamp: item.updated_at,
};
})
.filter(Boolean);
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; Похожие источники
Dev.to
РазработкаTop articles from Dev.to developer community
#dev #articles #programming
GitHub Trending
РазработкаTrending repositories on GitHub
#github #trending #programming
Lobsters
РазработкаHottest stories from Lobsters
#news #tech #programming
npm Trending
РазработкаPopular and trending packages on npm
#npm #packages #javascript