Skip to content

Commit

Permalink
Various fixes for automated testing
Browse files Browse the repository at this point in the history
update package configuration for axios, fix formatting with prettier, fix other issues from testing output
  • Loading branch information
alessandrozago committed Jul 26, 2024
1 parent e549828 commit 6e0ca7c
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 13 deletions.
33 changes: 26 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0",
"winston": "^3.3.3",
"winston-mail": "^2.0.0"
"winston-mail": "^2.0.0",
"axios": "^1.7.2"
},
"devDependencies": {
"@commitlint/cli": "^19.0.3",
Expand Down
2 changes: 2 additions & 0 deletions scripts/dataset/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export async function release({ shouldPublish, shouldRemoveLocalCopy, fileName }
releaseDate,
stats,
});

logger.info(`Dataset published to ${releaseUrl}`);
}

Expand All @@ -40,6 +41,7 @@ export async function release({ shouldPublish, shouldRemoveLocalCopy, fileName }
releaseDate,
stats,
});

logger.info(`Dataset published to ${releaseUrl}`);
}

Expand Down
5 changes: 3 additions & 2 deletions scripts/dataset/publishGitLab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import fsApi from 'fs';
import path from 'path';
import url from 'url';

import axios from 'axios';

import config from 'config';
import dotenv from 'dotenv';
import { Octokit } from 'octokit';
//import { Octokit } from 'octokit';

import axios from 'axios';
import FormData from 'form-data';

import * as readme from '../assets/README.templateGitLab.js';
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default async function track({ services, types, extractOnly, schedule })
logger.warn('Environment variable "GITHUB_TOKEN" was not found; the Reporter module will be ignored');
}

if (process.env.GITLAB_TOKEN) {
if (process.env.GITLAB_TOKEN) {
if (config.has('reporter.gitlabIssues.repositories.declarations')) {
const reporter = new ReporterGitlab(config.get('reporter'));

Expand All @@ -70,7 +70,7 @@ export default async function track({ services, types, extractOnly, schedule })
}
} else {
logger.warn('Environment variable "GITLAB_TOKEN" was not found; the ReporterGitlab module will be ignored');
}
}

if (!schedule) {
await archivist.track({ services, types });
Expand Down
2 changes: 1 addition & 1 deletion src/reporterGitlab/gitlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class GitLab {
static ISSUE_STATE_ALL = 'all';

constructor(repository) {
const { version } = require('../../package.json');
//const { version } = require('../../package.json');

const [owner, repo] = repository.split('/');

Expand Down

0 comments on commit 6e0ca7c

Please sign in to comment.