Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 1bd8d1c
Author: slugb0t <wheresdorian@gmail.com>
Date:   Tue Nov 5 11:08:12 2024 -0800

    fix: :bug: check license content all times

commit 2a86142
Merge: 0633f39 be31908
Author: Dorian Portillo <wheresdorian@gmail.com>
Date:   Tue Nov 5 10:26:45 2024 -0800

    Merge branch 'main' into staging

commit 0633f39
Author: slugb0t <wheresdorian@gmail.com>
Date:   Tue Nov 5 10:23:15 2024 -0800

    docs: :memo: update changelog

commit 73075f0
Author: slugb0t <wheresdorian@gmail.com>
Date:   Tue Nov 5 09:55:32 2024 -0800

    chore: :loud_sound: :hammer: remove logs

commit 5a3d124
Author: slugb0t <wheresdorian@gmail.com>
Date:   Fri Nov 1 15:53:25 2024 -0700

    refactor: :recycle: remove import

commit f22515e
Author: slugb0t <wheresdorian@gmail.com>
Date:   Fri Nov 1 14:10:50 2024 -0700

    feat: :fix: redirect to login if not signed in

commit 07c61bc
Author: slugb0t <wheresdorian@gmail.com>
Date:   Fri Nov 1 13:43:29 2024 -0700

    refacotr: :recycle: update protectRoute to redirect to login when no user or session

commit 26d715b
Author: slugb0t <wheresdorian@gmail.com>
Date:   Fri Nov 1 13:11:22 2024 -0700

    refactor: :recycle: safety checks for protected middleware

commit 45d8f15
Author: Dorian Portillo <wheresdorian@gmail.com>
Date:   Fri Nov 1 12:30:41 2024 -0700

    refactor: ♻️ 🐛 Codefair 3.1.0 (#89)

    * fix: 🐛 patch removing pull_request.closed bug on metadata pr merge

    * fix: 🐛 don't update firstPublished in the codemeta file + better logs

    * fix: 🐛 patch error on reading db entry when it doesn't exist

    * chore: 🔊 better log on successful Zenodo publish

    * style: 🎨 margins between text and icon

    * feat: ✨ links to the list of tools used for codefair in /codefair

    * refactor: ✨ ♻️ abstract the license validation fn

    * doc: 🔖 update changelog

    * feat: ✨ ♻️ abstraction to zenodo workflow

    * wip: 🚧 abstracting zenodo workflow

    * feat: ✨ add help link in the Zenodo release page

    * refactor: ♻️ ✨ abstract out github release functions

    * refactor: 🔊 ♻️ improve error tracing in metadata file

    * chore: 🔨 remove todo

    * refactor: ✨ ♻️ abstracted Zenodo workflow (bot)

    * wip: 🚧 save custom license content when no assertion is provided

    * ✨ feat: add support for custom licenses (#90)

    * ✨ feat: add support for custom licenses

    * 🐛 fix: reset citation license field

    * 🐛 fix: update zenodo workflow for custom licenses

    * fix: 🐛 license is valid with custom license

    * feat: ✨ custom license template

    * ✨ feat: update codemeta, license and cwl ui paths (#91)

    * ✨ feat: update meta paths for consistency

    * 🚚 fix: updatel icense request path

    * ✨ feat: add support for custom license title (#92)

    * refactor: ♻️ ✨ new patches for license, cwl, metadata UI's

    * refactor: ✨ ♻️ apply migrations from UI to bot

    * feat: ✨ request custom license title from user

    * refactor: ♻️ hide message box when custom license title is blank

    * refactor: ♻️ issue dashboard requests custom title

    * feat: ✨ Saving custom title (#93)

    * feat: ✨ save custom title option

    * refactor: :recyle: reuse saveLicenseDraft for storing custom license title

    * refactor: ♻️ join draft and save title buttons together

    * refactor: ♻️ use naive-ui's properties for styling

    * chore: 🔨 remove typo

    * chore: 🔨 remove unused variables

    * feat: ✨ toasts for custom title saved button

    * refactor: ♻️ function rename

    * feat: ✨ create Zenodo metadata fn handles custom licenses

    * feat: ✨ custom license reference for archival workflow

    * refactor: ♻️ stop creating identifiers for new db entries

    * refactor: ♻️ 🐛 revert allowing custom licenses for zenodo

    * refactor: ♻️ Custom License Support (#94)

    * refactor: ♻️ ✨ custom title saved updates dashboard, disable create release btn when custom license

    * refactor: ♻️ block progress of fair release if license is custom

    * feat: ✨ listener for when custom license title is saved through UI

    * feat: ✨ prevent fair release if not fair compliant

    * refactor: ♻️ improve license validation and update template text for custom licenses

    * refactor: ♻️ re-render issue from ui side

    * refactor: ♻️ update to message explaining custom licenses

    * db calls running in parallel

    * fix: 🐛 prevent Zendo section from being seen when the license is custom

    * fix: 🐛 trim license content before comparison

    ---------

    Co-authored-by: Sanjay Soundarajan <sanjay.16@live.com>

commit 604e4db
Author: slugb0t <wheresdorian@gmail.com>
Date:   Thu Oct 17 10:52:34 2024 -0700

    merge: :twisted_rightwards_arrows: merge main to staging
  • Loading branch information
slugb0t committed Nov 5, 2024
1 parent 7a89f2d commit 7b856c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bot/license/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ function validateLicense(licenseRequest, existingLicense) {
}
}

if (licenseContent !== "") {
licenseContentEmpty = false;
}

return { licenseId, licenseContent, licenseContentEmpty };
}

Expand Down

0 comments on commit 7b856c6

Please sign in to comment.