Skip to content

A composite action that writes the diff of bun.lockb file into a comment of pull request

License

Notifications You must be signed in to change notification settings

RobinTail/bun-diff-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RobinTail/bun-diff-action

A composite action that writes the diff of bun.lockb file into a comment of pull request. The diff syntax is highlighted and the action keeps that comment up to date.

Demo comment

Requirements

  • Running on pull_request event,
  • Permission to write comments to the pull request,
  • Check out with fetch-depth: 0,
  • Install bun.

Usage

on: pull_request
permissions:
  pull-requests: write # for comments in PRs
jobs:
  sample:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with: # required!
          fetch-depth: 0
      - name: Install bun
        uses: oven-sh/setup-bun@v2
        with:
          bun-version: latest
      - name: Show the bun lock diff
        # in case the workflow has multiple triggers:
        # if: github.event_name == 'pull_request'
        uses: RobinTail/bun-diff-action@v... # set the version

Options

with:
  working-directory:
    description: Directory to find bun.lockb file
    required: false
    default: .

Alternatives

About

A composite action that writes the diff of bun.lockb file into a comment of pull request

Resources

License

Stars

Watchers

Forks

Packages

No packages published