Installations
npm install @adobe/gatsby-source-github-file-contributors
Developer Guide
Typescript
No
Module System
N/A
Min. Node Version
>=10.0.0
Node Version
12.19.0
NPM Version
6.14.8
Releases
fix: No md files found on Windows
Published on 15 Jan 2021
feat: add support for default_branch
Published on 21 Oct 2020
fix: Github API failure/rate-limit handling
Published on 19 Oct 2020
fix: handle null users returned by the Github API
Published on 15 Oct 2020
fix: github token not required (will not throw exception)
Published on 14 Sept 2020
0.1.1
Published on 14 Aug 2020
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
adobe
Download Statistics
Total Downloads
85,924
Last Day
45
Last Week
179
Last Month
691
Last Year
13,797
GitHub Statistics
1 Stars
26 Commits
5 Forks
29 Watching
3 Branches
232 Contributors
Bundle Size
142.00 B
Minified
129.00 B
Minified + Gzipped
Package Meta Information
Latest Version
0.3.1
Package Id
@adobe/gatsby-source-github-file-contributors@0.3.1
Unpacked Size
40.21 kB
Size
12.69 kB
File Count
20
NPM Version
6.14.8
Node Version
12.19.0
Total Downloads
Cumulative downloads
Total Downloads
85,924
Last day
32.4%
45
Compared to previous day
Last week
5.9%
179
Compared to previous week
Last month
-9.2%
691
Compared to previous month
Last year
-36.6%
13,797
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
@adobe/gatsby-source-github-file-contributors
A Gatsby source plugin to get contributors per file for a Github repo
Install
1npm install --save @adobe/gatsby-source-github-file-contributors
Example
1// In gatsby-config.js 2plugins: [ 3 { 4 resolve: `@adobe/gatsby-source-github-file-contributors`, 5 options: { 6 pages: { 7 root: '', // root of the page paths (below) in the Github repo 8 paths: ['src/pages'], // relative path of the pages from the config 9 extensions: ['md'] // page extensions to filter for 10 }, 11 repo: { 12 token: process.env.REPO_GITHUB_TOKEN, // Github Personal Access Token 13 owner: process.env.REPO_OWNER, // user or org name 14 name: process.env.REPO_NAME, 15 branch: process.env.REPO_BRANCH, // defaults to 'main' 16 default_branch: process.env.REPO_DEFAULT_BRANCH // defaults to 'main' 17 } 18 } 19 } 20];
GraphQL
{
allGithub {
nodes {
repository
branch
default_branch
root
}
}
allGithubContributors {
nodes {
contributors {
date
login
name
}
path
}
}
}
Github Personal Access Token
Without a Github Personal Access Token, your requests will be rate-limited.
The GraphQL API v4 rate limit is 5,000 points per hour when authenticated, and 60 points per hour when anonymous.
The number of points in a GraphQL API call is returned in the metadata for the call.
Contributing
Contributions are welcome! Read the Contributing Guide for more information.
Licensing
This project is licensed under the Apache V2 License. See LICENSE for more information.
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/adobe/.github/.github/SECURITY.md:1
- Info: Found linked content: github.com/adobe/.github/.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/adobe/.github/.github/SECURITY.md:1
- Info: Found text in security policy: github.com/adobe/.github/.github/SECURITY.md:1
Reason
Found 3/26 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Score
4.7
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More