Skip to content

GitHub Action to check if all PR's commits are signed

License

Notifications You must be signed in to change notification settings

DARMA-tasking/find-unsigned-commits

Repository files navigation

find-usigned-commits

The DARMA-tasking/find-usigned-commits/ is a JavaScript action that checks if there are any unsigned commits in PR.

Workflow example

name: PR checks (unsigned commits)

on:
  pull_request

jobs:
  check:
    name: Find unsigned commits
    runs-on: ubuntu-latest
    steps:
      - uses: DARMA-tasking/find-usigned-commits@master
        with:
          repo_owner: ${{ github.event.pull_request.repo.owner.login }}
          repo_name: ${{ github.event.pull_request.repo.name }}
          pr_number: ${{ github.event.pull_request.number }}

Development

Install the dependencies

$ npm install

Run lint

$ npm run lint

> [email protected] lint /home/strz/repos/darma/src/find-unsigned-commits
> eslint .

Distribution

Packaging assembles the code into one file that can be checked in to Git, enabling fast and reliable execution and preventing the need to check in node_modules. Packaging the action will create a packaged action in the dist/ folder.

Run prepare

$ npm run prepare

Since the packaged index.js is run from the dist/ folder, it needs to be added

$ git add dist/

GitHub Actions will run the entry point from the action.yml

runs:
  using: "node20"
  main: "dist/index.js" # <== entry point

To do everything at once (lint and prepare) do

$ npm run all

About

GitHub Action to check if all PR's commits are signed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published