Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Ana06/get-changed-files
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: elucidat/get-changed-files
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 2 commits
  • 7 files changed
  • 2 contributors

Commits on Nov 11, 2022

  1. Updated action

    - All dependencies have been updated
    - Corrected OctoKit usage due to dependency updates
    - Uses Node 16
    - Updated readme
    amnuts committed Nov 11, 2022
    Copy the full SHA
    3df42d0 View commit details
  2. Update README.md

    amnuts authored Nov 11, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    14c6551 View commit details
Showing with 10,640 additions and 27,605 deletions.
  1. +1 −1 .eslintrc.json
  2. +9 −9 README.md
  3. +1 −1 action.yml
  4. +8,023 −23,842 dist/index.js
  5. +30 −25 package.json
  6. +17 −15 src/main.ts
  7. +2,559 −3,712 yarn.lock
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"plugins": ["jest", "@typescript-eslint"],
"extends": ["plugin:github/es6"],
"extends": ["plugin:github/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# get-changed-files

[![CI status](https://github.com/Ana06/get-changed-files/workflows/Test/badge.svg)](https://github.com/Ana06/get-changed-files/actions?query=event%3Apush+branch%3Amain)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE.txt)
[![CI status](https://github.com/elucidat/get-changed-files/workflows/Test/badge.svg)](https://github.com/elucidat/get-changed-files/actions?query=event%3Apush+branch%3Amain)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)

Get all changed/modified files in a pull request (`pull_request` or `pull_request_target`) or push's commits.
You can choose to get all changed files, only added files, only modified files, only removed files, only renamed files, or all added and modified files.
These outputs are available via the `steps` output context.
The `steps` output context exposes the output names `all`, `added`, `modified`, `removed`, `renamed`, and `added_modified`.
Renamed files that are also modified are included in `renamed`, `modified` and `added_modified`.

This project is a fork of <https://github.com/jitterbit/get-changed-files>, which supports `pull_request_target`, allow to filter files using regular expressions, removes the ahead check and considers renamed modified files as modified.
This project is a fork of <https://github.com/Ana06/get-changed-files> (that in turn forks <https://github.com/jitterbit/get-changed-files>), which uses the latest core and github actions, sets the Node version to 16, and updates all the devDependencies.

- [Usage](#usage)
- [Filtering](#filtering)
@@ -27,7 +27,7 @@ This project is a fork of <https://github.com/jitterbit/get-changed-files>, whic
See [action.yml](action.yml)

```yaml
- uses: Ana06/get-changed-files@v2.1.0
- uses: elucidat/get-changed-files@v1.0.0
with:
# Format of the steps output context.
# Can be 'space-delimited', 'csv', or 'json'.
@@ -53,7 +53,7 @@ Consider using one of the other formats if that's the case.

```yaml
- id: files
uses: Ana06/get-changed-files@v2.1.0
uses: elucidat/get-changed-files@v1.0.0
- run: |
for changed_file in ${{ steps.files.outputs.all }}; do
echo "Do something with this ${changed_file}."
@@ -67,7 +67,7 @@ Consider using one of the other formats if that's the case.

```yaml
- id: files
uses: Ana06/get-changed-files@v2.1.0
uses: elucidat/get-changed-files@v1.0.0
with:
filter: '*.php'
- run: |
@@ -83,7 +83,7 @@ Therefore, including all YML files first and excluding the YML files of your `.g
If those two globs were inverted, you **would** include all the YML files, with the ones in your `.github/*/` directories.

```yaml
- uses: Ana06/get-changed-files@v2.1.0
- uses: elucidat/get-changed-files@v1.0.0
with:
filter: |
*.yml
@@ -94,7 +94,7 @@ If those two globs were inverted, you **would** include all the YML files, with

```yaml
- id: files
uses: Ana06/get-changed-files@v2.1.0
uses: elucidat/get-changed-files@v1.0.0
with:
format: 'csv'
filter: '*'
@@ -109,7 +109,7 @@ If those two globs were inverted, you **would** include all the YML files, with

```yaml
- id: files
uses: Ana06/get-changed-files@v2.1.0
uses: elucidat/get-changed-files@v1.0.0
with:
format: 'json'
filter: '*'
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ branding:
icon: file
color: purple
runs:
using: node12
using: node16
main: dist/index.js
inputs:
token:
Loading