Skip to content

Commit

Permalink
refactor: ♻️ PR feedback resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
slugb0t committed Aug 29, 2024
1 parent 4b6c306 commit 4161959
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions bot/cwl/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export function getCWLFiles(context, owner, repoName) {
});
}

/**
* * This function validates the CWL file using the cwltool validator
* @param {String} downloadUrl - The download URL of the CWL file
* @returns {Array} - Array containing the validation status and message
*/
export async function validateCWLFile(downloadUrl) {
try {
const response = await fetch("https://cwl.saso.one/validate", {
Expand Down
4 changes: 2 additions & 2 deletions bot/db.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MongoClient } from "mongodb";
const MONGODB_URI = process.env.MONGODB_URI;
const MONGODB_DB_NAME = process.env.MONGODB_DB_NAME;
const { MONGODB_URI } = process.env;
const { MONGODB_DB_NAME } = process.env;

class Database {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion bot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export default async (app, { getRouter }) => {
// When a pull request is opened
app.on("pull_request.opened", async (context) => {
const owner = context.payload.repository.owner.login;
const repository = context.payload.repository;
const { repository } = context.payload;
const prTitle = context.payload.pull_request.title;
const prLink = context.payload.pull_request.html_url;
const definedPRTitles = [
Expand Down
2 changes: 1 addition & 1 deletion ui/components/ProfileStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function logout() {
</n-flex>

<div v-else>
<a v-if="!onHideLoginPages || devMode" href="/login/github">
<a v-if="!onHideLoginPages" href="/login/github">
<n-button color="black">
<template #icon>
<Icon name="bi:github" />
Expand Down

0 comments on commit 4161959

Please sign in to comment.