mirror of
https://github.com/LukeHagar/usage-statistics.git
synced 2025-12-06 04:21:55 +00:00
chore: bump version to 1.0.7 and build action
This commit is contained in:
3
dist/collectors/github.js
vendored
3
dist/collectors/github.js
vendored
@@ -3,6 +3,7 @@
|
||||
*/
|
||||
import { Octokit } from '@octokit/rest';
|
||||
import { graphql } from '@octokit/graphql';
|
||||
import * as core from '@actions/core';
|
||||
const PlatformSettings = {
|
||||
name: 'GitHub',
|
||||
};
|
||||
@@ -82,7 +83,7 @@ export async function collectGithub(repository) {
|
||||
throw new Error(`Invalid repository format: ${repository}. Expected "owner/repo"`);
|
||||
}
|
||||
// Initialize Octokit for REST API calls
|
||||
const token = process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN || '';
|
||||
const token = core.getInput('github-token');
|
||||
const octokit = new Octokit({
|
||||
auth: token,
|
||||
userAgent: 'usage-statistics-tracker'
|
||||
|
||||
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -46486,12 +46486,15 @@ const dist_src_Octokit = Octokit.plugin(requestLog, legacyRestEndpointMethods, p
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@octokit/graphql/dist-node/index.js
|
||||
var dist_node = __nccwpck_require__(7);
|
||||
// EXTERNAL MODULE: ./node_modules/@actions/core/lib/core.js
|
||||
var core = __nccwpck_require__(7484);
|
||||
;// CONCATENATED MODULE: ./dist/collectors/github.js
|
||||
/**
|
||||
* GitHub repository statistics collector with enhanced metrics using Octokit SDK and GraphQL
|
||||
*/
|
||||
|
||||
|
||||
|
||||
const PlatformSettings = {
|
||||
name: 'GitHub',
|
||||
};
|
||||
@@ -46571,7 +46574,7 @@ async function collectGithub(repository) {
|
||||
throw new Error(`Invalid repository format: ${repository}. Expected "owner/repo"`);
|
||||
}
|
||||
// Initialize Octokit for REST API calls
|
||||
const token = process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN || '';
|
||||
const token = core.getInput('github-token');
|
||||
const octokit = new dist_src_Octokit({
|
||||
auth: token,
|
||||
userAgent: 'usage-statistics-tracker'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "usage-statistics",
|
||||
"version": "1.0.6",
|
||||
"version": "1.0.7",
|
||||
"type": "module",
|
||||
"description": "A comprehensive GitHub Action for tracking download statistics across multiple platforms",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user