Gathering detailed insights and metrics for @culur/changesets-github-info
Gathering detailed insights and metrics for @culur/changesets-github-info
npm install @culur/changesets-github-info
Typescript
Module System
Min. Node Version
Node Version
NPM Version
71.9
Supply Chain
98.8
Quality
85.6
Maintenance
100
Vulnerability
99.3
License
@culur/config-stylelint@1.3.7
Updated on Feb 12, 2025
@culur/config-stylelint@1.3.6
Updated on Feb 11, 2025
@culur/utils-packages@1.1.2
Updated on Feb 11, 2025
@culur/types@1.2.2
Updated on Feb 11, 2025
@culur/config-vite@1.1.5
Updated on Feb 11, 2025
@culur/config-typescript@1.1.1
Updated on Feb 11, 2025
TypeScript (99.87%)
JavaScript (0.1%)
Shell (0.03%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,415
Last Day
1
Last Week
83
Last Month
113
Last Year
1,415
MIT License
4 Stars
229 Commits
1 Watchers
17 Branches
1 Contributors
Updated on Feb 12, 2025
Latest Version
1.1.3
Package Id
@culur/changesets-github-info@1.1.3
Unpacked Size
62.78 kB
Size
10.92 kB
File Count
18
NPM Version
10.9.2
Node Version
22.13.1
Published on
Feb 11, 2025
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
1,975%
83
Compared to previous week
Last Month
370.8%
113
Compared to previous month
Last Year
0%
1,415
Compared to previous year
@culur/changesets-github-info
Get the GitHub username and PR number from a commit. Intended for use with changesets.
This library if a fork of @changesets/get-github-info
. The main purpose of this library is to customize the returned results to suit the needs of use in @culur/changesets-changelog-github
.
It uses @octokit/graphql
and dataloader
to query data. It also takes advantage of the dataloader's caching and batching features to optimize queries.
Add @culur/changesets-github-info
dependency to your project.
1# Using npm 2npm install @culur/changesets-github-info 3 4# Using pnpm 5pnpm install @culur/changesets-github-info 6 7# Using yarn 8yarn add @culur/changesets-github-info
You need a GitHub Personal Access Token with read:user
and repo:status
permissions, and add it to a .env
file.
GITHUB_TOKEN=token
Then you can use it in your script like this.
1import { 2 getCommitInfo, 3 getPullRequestInfo, 4} from '@culur/changesets-github-info'; 5import { config } from 'dotenv'; 6 7config(); 8 9const commitInfo = await getCommitInfo({ 10 repo: 'culur/culur', 11 commitHash: '65810fdd21ad34a2b06e42e977480bbfade20375', 12}); 13 14const pullRequestInfo = await getPullRequestInfo({ 15 repo: 'culur/culur', 16 pullRequestNumber: 3, 17}); 18 19const commitInfo = { 20 user: { 21 name: 'github-actions', 22 link: '[@github-actions](https://github.com/apps/github-actions)', 23 }, 24 commit: { 25 hash: '65810fdd21ad34a2b06e42e977480bbfade20375', 26 message: 'chore: version packages', 27 link: '[`65810fd`](https://github.com/culur/culur/commit/65810fdd21ad34a2b06e42e977480bbfade20375)', 28 }, 29 pullRequest: { 30 number: 17, 31 title: 'chore: version packages', 32 link: '[#17](https://github.com/culur/culur/pull/17)', 33 }, 34}; 35 36const pullRequestInfo = { 37 user: { 38 name: 'github-actions', 39 link: '[@github-actions](https://github.com/apps/github-actions)', 40 }, 41 commit: { 42 hash: '0a8933299dacec0fe2ad79e20c6e117d13e1ad81', 43 message: 'chore: version packages', 44 link: '[`0a89332`](https://github.com/culur/culur/commit/0a8933299dacec0fe2ad79e20c6e117d13e1ad81)', 45 }, 46 pullRequest: { 47 number: 5, 48 title: 'chore: version packages', 49 link: '[#5](https://github.com/culur/culur/pull/5)', 50 }, 51};
See CHANGELOG for more information on what has changed recently.
See LICENSE for license rights and limitations (MIT).
No vulnerabilities found.
No security vulnerabilities found.