Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/srz-zumix/gh-pr-ls-files

This extension or action gets a list of added/deleted/modfied files in a pull request without checkout.
https://github.com/srz-zumix/gh-pr-ls-files

diff gh-extension github-actions

Last synced: 2 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

```sh
gh extension install "srz-zumix/gh-pr-ls-files"
```

```sh
gh pr-ls-files -h
```

```text
gh pr-ls-files

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

```yaml
- 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.