Skip to content

Walkbase/changelog-checker

This branch is 1 commit ahead of, 1 commit behind Zomzog/changelog-checker:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 22, 2024
1d5f1ed · May 22, 2024

History

43 Commits
Mar 31, 2020
Mar 17, 2020
Oct 31, 2022
Oct 31, 2022
Oct 31, 2022
Mar 9, 2020
Oct 31, 2022
Mar 9, 2020
Mar 9, 2020
Mar 9, 2020
Oct 31, 2022
Mar 9, 2020
Jul 22, 2021
May 22, 2024
Mar 25, 2020
Mar 25, 2020
Oct 31, 2022
Oct 31, 2022
Mar 20, 2021

Repository files navigation

build david Known Vulnerabilities

Why

This action will check that the changelog file has been updated in the PR. It will add a check on the PR which can be required for blocking the merge.

The changelog file name can be customized with fileName parameter.

The check can be disabled for a PR with a label. This label can be customized with the noChangelogLabel parameter.

The checkNotification allows switching between Simple and Detailed checks. The simple check is based on the default check of the action. The detailed check will create a second check with a more precise message, but it required write access so it does not work with forks.

Detailed check fallback to simple for forks.

Usage:

name: MyLittleWorkflow
on:
  pull_request:
    types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
    branches:
      - main
      - develop
jobs:
  build:
    name: Check Actions
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Changelog check
        uses: Zomzog/changelog-checker@v1.2.0
        with:
          fileName: myChangelog.adoc # default `CHANGELOG.adoc`
          noChangelogLabel: my custom label # default `no changelog`
          checkNotification: Simple # default `Detailed`
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Develop

Install the dependencies

$ npm install

Build the typescript and package it for distribution

$ npm run build && npm run pack

Run the tests ✔️

$ npm test

Publish to a distribution branch

Actions are run from GitHub repos so we will checkin the packed dist folder.

Then run

$ npm run pack
$ git add dist
$ git commit -a -m "prod dependencies"
$ git push origin releases/v1

Your action is now published! 🚀

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.8%
  • JavaScript 1.2%