mirror of
https://github.com/jlengrand/github-repository-stats-action.git
synced 2026-03-10 08:21:21 +00:00
Cosmetics
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -128,4 +128,5 @@ out
|
|||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
raw_log
|
raw_log
|
||||||
|
.idea
|
||||||
@@ -6,7 +6,7 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
server-url:
|
server-url:
|
||||||
description: 'URL of the server to send statistics to. Used only for testing purposes'
|
description: 'URL of the server to send statistics to. Used only for testing purposes'
|
||||||
default: 'https://www.repoinsights.com' # TODO: Change!
|
default: 'https://www.repoinsights.com'
|
||||||
repository:
|
repository:
|
||||||
description: "Repository to get statistics from (Ex: jlengrand/github-repository-stats-action). \n
|
description: "Repository to get statistics from (Ex: jlengrand/github-repository-stats-action). \n
|
||||||
Should be in the OWNER/REPOSITORY format \n
|
Should be in the OWNER/REPOSITORY format \n
|
||||||
|
|||||||
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -19627,7 +19627,7 @@ async function main() {
|
|||||||
|
|
||||||
let owner;
|
let owner;
|
||||||
let repo;
|
let repo;
|
||||||
if (repository.length != 0 ) {
|
if (repository.length !== 0 ) {
|
||||||
[owner, repo] = repository.split("/");
|
[owner, repo] = repository.split("/");
|
||||||
|
|
||||||
} else{
|
} else{
|
||||||
@@ -19648,8 +19648,6 @@ async function main() {
|
|||||||
const token = core.getInput('access-token');
|
const token = core.getInput('access-token');
|
||||||
console.log(`The token is ${token}!`);
|
console.log(`The token is ${token}!`);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
console.log(`Found owner and repo : ${owner} and ${repo}`);
|
console.log(`Found owner and repo : ${owner} and ${repo}`);
|
||||||
|
|
||||||
const octokit = github.getOctokit(token);
|
const octokit = github.getOctokit(token);
|
||||||
|
|||||||
4
index.js
4
index.js
@@ -12,7 +12,7 @@ async function main() {
|
|||||||
|
|
||||||
let owner;
|
let owner;
|
||||||
let repo;
|
let repo;
|
||||||
if (repository.length != 0 ) {
|
if (repository.length !== 0 ) {
|
||||||
[owner, repo] = repository.split("/");
|
[owner, repo] = repository.split("/");
|
||||||
|
|
||||||
} else{
|
} else{
|
||||||
@@ -33,8 +33,6 @@ async function main() {
|
|||||||
const token = core.getInput('access-token');
|
const token = core.getInput('access-token');
|
||||||
console.log(`The token is ${token}!`);
|
console.log(`The token is ${token}!`);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
console.log(`Found owner and repo : ${owner} and ${repo}`);
|
console.log(`Found owner and repo : ${owner} and ${repo}`);
|
||||||
|
|
||||||
const octokit = github.getOctokit(token);
|
const octokit = github.getOctokit(token);
|
||||||
|
|||||||
Reference in New Issue
Block a user