Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/srz-zumix/gh-pr-ls-files
- Owner: srz-zumix
- License: mit
- Created: 2024-05-14T15:50:42.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-18T14:26:41.000Z (8 months ago)
- Last Synced: 2024-11-20T23:49:27.582Z (2 months ago)
- Topics: diff, gh-extension, github-actions
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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.