favware / cliff-jumper

CLI tool to create a semantic release, git-cliff powered Changelog, and releases to GitHub all in one
MIT License
43 stars 4 forks source link

request: No GitHub-related checks #188

Open CHE1RON opened 1 month ago

CHE1RON commented 1 month ago

Is there an existing issue or pull request for this?

Feature description

Make the package run with "No GitHub" flag 😋

Currently, it does this first:

✔ Checking GitHub repository configuration...
✔ Checking GitHub releasing configuration...

.. but people not using GitHub (we're using cliff-jumper on a self-hosted GitLab) do not need (even barely noticeable, speedwise) checks like these.

Desired solution

A flag -ngh, --no-github flag, disabling all GitHub features

Alternatives considered

using package as-is

Additional context

No response

CHE1RON commented 1 month ago

Now that I think of it: would you be interested in being able to create GitLab releases with this (using @gitbeaker/rest package), if a contribution like that would be of interest ..

My initial proposal for a "No GitHub" flag still stands, though 😅

favna commented 1 month ago

It should be noted that this change will really only be cosmetic in the end because it's microsecond work to do the actual checks as it just checks user input, it doesn't make any API calls or such.

https://github.com/favware/cliff-jumper/blob/a4223cf60acbd02a195ee89773c005736fd18d81/src/lib/preflight-checks.ts#L70-L120

As for GitLab, I have never worked with a GitLab repository or its API. I suppose I can explore that option, but keep in mind that I won't be able to guarantee it's functionality as much as I will for GitHub i.e. when GitLab changes something because I won't be using it myself.

CHE1RON commented 1 month ago

We are currently using a bash script, GitLab's CLI tool glab & git-cliff for changelog/release notes & version bumps (calculating the next version using its newly added --bump flag). Using cliff-jumper would be much easier and as far as I can see, it includes everything we need. I would be happy to contribute & maintain the (compared to the current GitHub features much less elaborate) GitLab part.

favna commented 1 week ago

Sorry for taking absolutely forever for this, but I'm finally getting to this. I just contributed to git-cliff to add gitlab token and repository to the npm package: https://github.com/orhun/git-cliff/pull/843

CHE1RON commented 1 week ago

Sounds fantastic! 🤩