Cosmetics

This commit is contained in:
Julien Lengrand-Lambert
2023-07-07 10:55:57 +02:00
parent e8c6e82017
commit f5a00a515a
4 changed files with 5 additions and 8 deletions

3
.gitignore vendored
View File

@@ -128,4 +128,5 @@ out
.yarn/install-state.gz
.pnp.*
raw_log
raw_log
.idea

View File

@@ -6,7 +6,7 @@ inputs:
required: true
server-url:
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:
description: "Repository to get statistics from (Ex: jlengrand/github-repository-stats-action). \n
Should be in the OWNER/REPOSITORY format \n

4
dist/index.js vendored
View File

@@ -19627,7 +19627,7 @@ async function main() {
let owner;
let repo;
if (repository.length != 0 ) {
if (repository.length !== 0 ) {
[owner, repo] = repository.split("/");
} else{
@@ -19648,8 +19648,6 @@ async function main() {
const token = core.getInput('access-token');
console.log(`The token is ${token}!`);
console.log(`Found owner and repo : ${owner} and ${repo}`);
const octokit = github.getOctokit(token);

View File

@@ -12,7 +12,7 @@ async function main() {
let owner;
let repo;
if (repository.length != 0 ) {
if (repository.length !== 0 ) {
[owner, repo] = repository.split("/");
} else{
@@ -33,8 +33,6 @@ async function main() {
const token = core.getInput('access-token');
console.log(`The token is ${token}!`);
console.log(`Found owner and repo : ${owner} and ${repo}`);
const octokit = github.getOctokit(token);