Git Product home page Git Product logo

clq's Introduction

clq's People

Contributors

denisa avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

clq's Issues

duplicate tag

In a pull-request build, fail if the tag exists already

Relaxing/disabling version validation

First of all thank you for this awesome changelog query tool! I am using the clq indirectly with your GitHub Action but I posted the issue here directly since it is with regards to disabling the version validation. The issue I encounter is that I usually have an Added section for minor releases. As long as it is backwards comaptible, having an Added section is valid according to semver. However, right now the clq throws an error which terminates the GitHub Action.

Is it then possible to have an Added section also for minor releases? If not it would be great to have a new validation mode which does not validate the version but still checks the syntax of the changelog 😄

EDIT: Perhaps it's also an idea to add a quiet mode that raises warnings instead of errors, so the GitHub Action can continue and give an output.

releases[].version.hasPrerelease(pattern)

this query returns true if one of the pre-release elements of this version matches the pattern

eg:
“1.2.3-SNAPSHOT”.hasPrerelease(“SNAPSHOT”) -> true
“1.2.3-rc.12-SNAPSHOT”.hasPrerelease(“SNAPSHOT”) -> true
“1.2.3-rc.12”.hasPrerelease(“SNAPSHOT”) -> false
“1.2.3-rc.12-SNAPSHOT”.hasPrerelease(“rc.12”) -> true

Ensure release version increment

according to:

  • major release trigger
    • Added for new features.
    • Removed for now removed features.
  • minor release trigger
    • Changed for changes in existing functionality.
    • Deprecated for soon-to-be removed features.
  • bug-fix release trigger
    • Fixed for any bug fixes.
    • Security in case of vulnerabilities.

Date validation

  • all dates are valid
  • release are sorted by date, with newer date first

Configure: Fail on pre-release

Provide command-line option to control whether the top-most release can be a pre-release

Using --release prohibits the release [Unreleased]

Query: releases

clq -query releases[i] -> all the field, json
clq -query releases[i].date
clq -query releases[i].label
clq -query releases[i].status
clq -query releases[i].version

i starts at 0

Change validation

if a change kind is present,

  • it has an unordered list
  • with at least one element

Always process all files

Given a set of changelog.md
When clq is asked to validates them all clq *.md
Then clq does not stop at the first erroneous file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.