Skip to content
file

GitHub Action

PR ls-files action

v0.1.2 Latest version

PR ls-files action

file

PR ls-files action

pull_request ls-files action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PR ls-files action

uses: srz-zumix/[email protected]

Learn more about this action in srz-zumix/gh-pr-ls-files

Choose a version

gh-pr-ls-files

This extension or action gets a list of added/deleted/modfied files in a pull request without checkout.

GitHub CLI Extension

Getting Started

gh extension install "srz-zumix/gh-pr-ls-files"
gh pr-ls-files -h
gh pr-ls-files <pr number|url|branch>
    
list files in the pull request

    -a, --added           show added files in the output
    -d, --deleted         show deleted files in the output
    -m, --modified        show modified files in the output

GitHub Actions Action

Usage

- uses: srz-zumix/gh-pr-ls-files@v0
  with:
    deleted: false

Inputs

pull_request

pull request number|url|branch. Default: github.event.pull_request.html_url

added

show added files in the output. Default: true

deleted

show deleted files in the output. Default: true

modified

show modified files in the output. Default: true

filter

show files with the specified grep filter in the output.

e.g. ".*(\.ino|\.cpp|\.c|\.h|\.hpp|\.hh)$"

delimiter

delimiter for the output.

github_token

GitHub TOKEN. Default: github.token

Outputs

files

files in the pull request.

count

count of files in the pull request.