# header-comments

> GitHub Action to add header comments to all your files

Latest version **1.0.5** (published 2020-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install header-comments
pnpm add header-comments
yarn add header-comments
bun add header-comments
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-12-15 |
| First published | 2020-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 246.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Anand Chowdhary |
| Maintainers | kojbot |
| Keywords | github, github actions, nodejs, typescript, headers, comments |

## Links

- npm: https://www.npmjs.com/package/header-comments
- Repository: https://github.com/koj-co/header-comments
- Homepage: https://github.com/koj-co/header-comments#readme
- Issues: https://github.com/koj-co/header-comments/issues
- npm.io page: https://npm.io/package/header-comments

## Dependencies (4)

- [@koj/config](https://npm.io/package/@koj/config.md) ^1.2.5
- [@actions/core](https://npm.io/package/@actions/core.md) ^1.2.6
- [@actions/github](https://npm.io/package/@actions/github.md) ^4.0.0
- [recursive-readdir](https://npm.io/package/recursive-readdir.md) ^2.2.2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2020-12-15
- 1.0.4 — 2020-12-15
- 1.0.3 — 2020-12-15
- 1.0.2 — 2020-12-15
- 1.0.1 — 2020-12-15
- 1.0.0 — 2020-12-15

## README

# 📑 Header Comments Action

GitHub Action to add header comments to all your files

[![Build CI](https://github.com/koj-co/header-comments/workflows/Build%20CI/badge.svg)](https://github.com/koj-co/header-comments/actions?query=workflow%3A%22Build+CI%22)
[![Test CI](https://github.com/koj-co/header-comments/workflows/Test%20CI/badge.svg)](https://github.com/koj-co/header-comments/actions?query=workflow%3A%22Test+CI%22)
[![Release CI](https://github.com/koj-co/header-comments/workflows/Release%20CI/badge.svg)](https://github.com/koj-co/header-comments/actions?query=workflow%3A%22Release+CI%22)
[![Node CI](https://github.com/koj-co/header-comments/workflows/Node%20CI/badge.svg)](https://github.com/koj-co/header-comments/actions?query=workflow%3A%22Node+CI%22)

## ⭐ How it works

First, create a file `.github/FILE_HEADER` where you can write, for example, license text to put in the file header. This Action will automatically add that at the top of each file in your repository.

This Action does not commit or push files, you can use another Action like [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) to commit the changes, or [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) to create a pull request with the changes:

```yaml
name: Header Comments CI
on:
  push:
    branches:
      - main
jobs:
  test:
    name: Add comments
    runs-on: ubuntu-18.04
    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4
      - name: Add comments to src/
        uses: koj-co/header-comments
        with:
          directory: src
      - name: Create PR with changes
        uses: peter-evans/create-pull-request@v3
```

### Options

#### `directory` (optional)

Only files in this directory, for example `src`, will get headers.

## 📄 License

- Code: [MIT](./LICENSE) © [Koj](https://koj.co)
- "GitHub" is a trademark of GitHub, Inc.

<p align="center">
  <a href="https://koj.co">
    <img width="44" alt="Koj" src="https://kojcdn.com/v1598284251/website-v2/koj-github-footer_m089ze.svg">
  </a>
</p>
<p align="center">
  <sub>An open source project by <a href="https://koj.co">Koj</a>. <br> <a href="https://koj.co">Furnish your home in style, for as low as CHF175/month →</a></sub>
</p>

---
_Source: https://npm.io/package/header-comments · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
