npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

op-release-notes

v1.4.8

Published

<img src="https://gitlab.sandia.gov/op/op-release-notes/raw/master/images/icon.png" height="120" align="left">

Downloads

47

Readme

op Release Notes

op Release Notes is a simple release notes tool that pulls directly from your GitLab repository gleening closed issues based on your defined milestones.

op Release Notes utilizes GitLab API to pull all open issues that have a milestone assigned in your GitLab project. It will use the milestone as the versioning number and group closed issues to those milestones. It will create a "release-notes.json" file.

You may use the JSON file however you deem, just know there is also a web based tool available to you that will draw the release notes.


Example of usage in an application

Screen Shot

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

To use op Release Notes, you will need to have a couple of things:

Installing

Install op-release-notes NPM package

npm install op-release-notes

Edit your projects package.json file to add config variables

  "config": {
    "gitlabUrl": "https://gitlab.sandia.gov",
    "gitlabProjectId": "<git project id>",
    "gitlabAccessToken": "<personal access token>",
    "iconPath": "images/icon_sm.png"
  },

Configure JSON generation trigger

The JSON file will be created upon request. This can be setup to run real-time in your code, upon bootup of the application or as part of your CI/CD process. It is up to you to determine the correct injection point into your process.

Real-time

If you would like real-time generation... Insert the following in your application at the point in the flow where you would like GitLab queried and the "release-notes.json" file populated.

const opRelNotes = require("op-release-notes");
opRelNotes.QueryForData();
CI/CD Process

If you would like CI/CD generation... place this anywhere in your CI/CD process.

Note: The data will be gathered from GitLab at the time it processes, so any unclosed issues will not be captured. Please make sure you take this into concideration prior to injecting this step in your process. {: .note}

Here is an example of it running after a commit and unit test.

//just kidding... I havent proven this out yet to give a sample... still working on it
check back === later

Displaying the Release Results

Feel free to take the "release-notes.json" file and process it however you see fit in your application. We have provided a Javascript function to display the Release Notes in a given element id.

For an example of how to use this, try the following:

<div id="release-notes-container"></div>

<script>
    const opRelNotes = require("op-release-notes");

    // Enter your HTML element ID to create the release notes.
    opRelNotes.Draw("release-notes-container");
</script>

Authors

  • Philip Eckenroth - Initial work