FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

nitrozenio/changelog-action: Publish Nitrozen.io changelog entries from a GitHub Actions workflow, e.g. on release publish. · GitHub

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nitrozen Changelog Action

Publish a Nitrozen changelog entry straight from a GitHub Actions workflow — most commonly triggered by a GitHub Release.

name: Publish changelog

on:
  release:
    types: [published]

jobs:
  changelog:
    runs-on: ubuntu-latest
    steps:
      - uses: nitrozenio/changelog-action@v1
        with:
          api-key: ${{ secrets.NITROZEN_API_KEY }}
          project-id: '123'

When triggered by a release event, title and content default to the release's name/tag and body, so the snippet above is a complete integration on its own.

Inputs

Input Required Default Description
api-key yes Nitrozen API token. Create one from your project's Settings → API Tokens page and store it as a repo/org secret.
project-id yes Numeric Nitrozen project ID. Find it via GET /api/v1/projects or your project dashboard URL.
title no release name/tag (on release events), else '' Entry title.
content no release body (on release events), else '' Entry body (Markdown supported).
category no new Category slug. Built-in slugs: new, improvement, fix, announcement. Projects with custom categories enabled may have additional project-specific slugs.
is-published no true true publishes immediately; false creates a draft for manual review.
published-at no now (when publishing) ISO 8601 timestamp. Only applied when is-published is true.
project-slug no Project slug. Only used to build the changelog-url output.
api-base-url no https://nitrozen.io/api/v1 Override for self-hosted or staging instances.

Outputs

Output Description
entry-id ID of the created entry.
changelog-url Public URL of the entry, e.g. https://nitrozen.io/c/payments-api/61 — only set when project-slug is provided.

Examples

Explicit title/content, imported as a draft

- uses: nitrozenio/changelog-action@v1
  with:
    api-key: ${{ secrets.NITROZEN_API_KEY }}
    project-id: '123'
    title: 'API v2.4.0'
    content: |
      - Added SSO authentication
      - Fixed webhook retry bug
    category: 'new'
    is-published: 'false'

Comment the published URL back on the release

- uses: nitrozenio/changelog-action@v1
  id: nitrozen
  with:
    api-key: ${{ secrets.NITROZEN_API_KEY }}
    project-id: '123'
    project-slug: 'payments-api'

- run: echo "Published to ${{ steps.nitrozen.outputs.changelog-url }}"

Pinning for security

Examples in this README use @v1 for readability. v1 is a mutable tag — anyone with write access to this repo can move it. For workflows that handle secrets (this one takes NITROZEN_API_KEY), consider pinning to the full-length commit SHA of a specific release instead, with the version as a trailing comment so it stays human-readable:

- uses: nitrozenio/changelog-action@<40-char-commit-sha> # v1

This is GitHub's own recommendation for any third-party action. Find the SHA for a given release on the Releases page or via git ls-remote --tags https://github.com/nitrozenio/changelog-action.

How it works

This is a composite action — it runs node publish.js using the Node runtime every GitHub-hosted runner already ships, with no npm install or build step. publish.js calls Nitrozen's public POST /projects/{project}/entries API (reference) with your token and inputs, and surfaces the created entry's ID (and optionally its URL) as step outputs.

Development

node --test test/

License

MIT

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL