GitHub Action
List files changed in a Pull Request
GitHub Action that lists all files changed (were added, modified) in the provided pull request.
You need to add permissions for this tool.
permissions:
contents: read
uses: karpikpl/list-changed-files-action@1.1.2
To get a list of Python files changed in a PR:
uses: karpikpl/list-changed-files-action@1.1.2
with:
file-filter: '*.py'
Optional Glob file filter to
apply on the changed files in the pull request. E.g. *.py
. Default: no filter.
Optional ID of the pull request. Action will try to use pull request number from GitHub event.
Optional Another repository owner, If not set, the current repository owner
is used by default. Note that when you trying changing a repository, be aware
that GITHUB_TOKEN
should also have permission for that repository.
Optional Another repository name. Of limited use on GitHub enterprise. If
not set, the current repository is used by default. Note that when you trying
changing a repository, be aware that GITHUB_TOKEN
should also have permission
for that repository.
Optional, You can set
PAT
here. If not set, this will use ${{ github.token }}
.
Space separated list of files changed (added, modified) in the pull request that
match provided file-filter
.
e.g. 'file1.py' 'file2.py'
Head sha commit ID from the pull request.
Base sha commit ID from the pull request.
The result of the action. Success, Failure or information message. Useful for debugging.