https://github.com/mdarocha/comment-flake-lock-changelog
Automatically add comments to pull requests that modify flake.lock files, summarizing the changes made to the flake inputs.
https://github.com/mdarocha/comment-flake-lock-changelog
actions nix nix-flake
Last synced: 4 months ago
JSON representation
Automatically add comments to pull requests that modify flake.lock files, summarizing the changes made to the flake inputs.
- Host: GitHub
- URL: https://github.com/mdarocha/comment-flake-lock-changelog
- Owner: mdarocha
- License: mit
- Created: 2025-01-25T11:50:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-01T00:41:36.000Z (4 months ago)
- Last Synced: 2026-03-01T03:57:59.577Z (4 months ago)
- Topics: actions, nix, nix-flake
- Language: TypeScript
- Homepage:
- Size: 839 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Comment `flake.lock` changelog
Automatically add comments to pull requests that modify flake.lock files, summarizing the changes made to the flake inputs.
This action is meant to be used as a helper to [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock).
## Inputs
| Input | Description | Default |
| :-- | :-- | :-- |
| `pull-request-number` | Id of the PR that will be analyzed by the action | none, **required** |
| `token` | Token used for authentication with Github API | `${{ github.token }}` |
## Example usage
```yaml
name: Update flake.lock
on:
schedule:
- cron: '0 0 * * *' # runs daily at 00:00
permissions:
contents: write
pull-requests: write
jobs:
lockfile:
name: Update lockfile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v16
- name: Update flake.lock
id: update-flake-lock
uses: DeterminateSystems/update-flake-lock@v24
with:
pr-title: "Update flake.lock"
pr-labels: automated
- uses: mdarocha/comment-flake-lock-changelog@main
with:
pull-request-number: ${{ steps.update-flake-lock.outputs.pull-request-number }}
```
## Example result
