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: tj-actions/changed-files
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v28
Choose a base ref
...
head repository: tj-actions/changed-files
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v28.0.0
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Aug 21, 2022

  1. Upgraded from v27 -> v28

    jackton1 committed Aug 21, 2022
    Copy the full SHA
    d3225fe View commit details
  2. chore: update readme

    jackton1 committed Aug 21, 2022
    Copy the full SHA
    28ac672 View commit details
Showing with 47 additions and 79 deletions.
  1. +29 −16 HISTORY.md
  2. +18 −63 README.md
45 changes: 29 additions & 16 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
# Changelog

## [Unreleased](https://github.com/tj-actions/changed-files/tree/HEAD)
## [v28](https://github.com/tj-actions/changed-files/tree/v28) (2022-08-21)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v27...HEAD)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v27...v28)

**Fixed bugs:**
**Implemented enhancements:**

- \[BUG\] changes based on last remote commit fail after rebasing [\#546](https://github.com/tj-actions/changed-files/issues/546)
- \[Feature\] An option to include old names of renamed files in deleted\_files array [\#578](https://github.com/tj-actions/changed-files/issues/578)
- \[Feature\] List files changed/modified/... by commits pushed in passed hours/days/weeks [\#452](https://github.com/tj-actions/changed-files/issues/452)

## [v27](https://github.com/tj-actions/changed-files/tree/v27) (2022-08-17)
**Fixed bugs:**

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v26.1...v27)
- \[BUG\] changes based on last remote commit fail after rebasing [\#546](https://github.com/tj-actions/changed-files/issues/546)

**Closed issues:**

- Dependency Dashboard [\#27](https://github.com/tj-actions/changed-files/issues/27)

**Merged pull requests:**

- feat: add support for using time based filtering. [\#588](https://github.com/tj-actions/changed-files/pull/588) ([jackton1](https://github.com/jackton1))
- chore: update readme [\#587](https://github.com/tj-actions/changed-files/pull/587) ([jackton1](https://github.com/jackton1))
- chore: remove skip for forks [\#586](https://github.com/tj-actions/changed-files/pull/586) ([jackton1](https://github.com/jackton1))
- chore\(deps\): update peter-evans/create-pull-request action to v4.1.1 [\#585](https://github.com/tj-actions/changed-files/pull/585) ([renovate[bot]](https://github.com/apps/renovate))
- Upgraded to v27 [\#584](https://github.com/tj-actions/changed-files/pull/584) ([jackton1](https://github.com/jackton1))

## [v27](https://github.com/tj-actions/changed-files/tree/v27) (2022-08-17)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v26.1...v27)

**Merged pull requests:**

- fix: bug force pushing commits after a rebase [\#583](https://github.com/tj-actions/changed-files/pull/583) ([jackton1](https://github.com/jackton1))
- Updated README.md [\#582](https://github.com/tj-actions/changed-files/pull/582) ([jackton1](https://github.com/jackton1))
- chore\(deps\): update peter-evans/create-pull-request action to v4.1.0 [\#581](https://github.com/tj-actions/changed-files/pull/581) ([renovate[bot]](https://github.com/apps/renovate))
@@ -885,7 +898,7 @@

## [v1.2.1](https://github.com/tj-actions/changed-files/tree/v1.2.1) (2021-11-08)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.2.0...v1.2.1)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.5...v1.2.1)

**Implemented enhancements:**

@@ -899,13 +912,13 @@
- Update actions/checkout action to v2.4.0 [\#243](https://github.com/tj-actions/changed-files/pull/243) ([renovate[bot]](https://github.com/apps/renovate))
- Upgraded to v11.5 [\#241](https://github.com/tj-actions/changed-files/pull/241) ([jackton1](https://github.com/jackton1))

## [v1.2.0](https://github.com/tj-actions/changed-files/tree/v1.2.0) (2021-10-30)
## [v11.5](https://github.com/tj-actions/changed-files/tree/v11.5) (2021-10-30)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.5...v1.2.0)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v1.2.0...v11.5)

## [v11.5](https://github.com/tj-actions/changed-files/tree/v11.5) (2021-10-30)
## [v1.2.0](https://github.com/tj-actions/changed-files/tree/v1.2.0) (2021-10-30)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.4...v11.5)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v11.4...v1.2.0)

**Merged pull requests:**

@@ -1297,7 +1310,7 @@

## [v7](https://github.com/tj-actions/changed-files/tree/v7) (2021-06-09)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6.3...v7)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6...v7)

**Closed issues:**

@@ -1313,13 +1326,13 @@
- Update tj-actions/sync-release-version action to v8.7 [\#86](https://github.com/tj-actions/changed-files/pull/86) ([renovate[bot]](https://github.com/apps/renovate))
- Upgraded to v6.3 [\#85](https://github.com/tj-actions/changed-files/pull/85) ([jackton1](https://github.com/jackton1))

## [v6.3](https://github.com/tj-actions/changed-files/tree/v6.3) (2021-05-26)
## [v6](https://github.com/tj-actions/changed-files/tree/v6) (2021-05-26)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6...v6.3)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6.3...v6)

## [v6](https://github.com/tj-actions/changed-files/tree/v6) (2021-05-26)
## [v6.3](https://github.com/tj-actions/changed-files/tree/v6.3) (2021-05-26)

[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6.2...v6)
[Full Changelog](https://github.com/tj-actions/changed-files/compare/v6.2...v6.3)

**Merged pull requests:**

81 changes: 18 additions & 63 deletions README.md
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28

- name: List all changed files
run: |
@@ -165,11 +165,11 @@ Support this project with a :star:
- name: Get changed files using defaults
id: changed-files
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
- name: Get changed files using a comma separator
id: changed-files-comma
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
separator: ","
@@ -191,7 +191,7 @@ Support this project with a :star:
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
files: |
my-file.txt
@@ -232,14 +232,14 @@ Support this project with a :star:
- name: Use a source file or list of file(s) to populate to files input.
id: changed-files-specific-source-file
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
files_from_source_file: |
test/changed-files-list.txt
- name: Use a source file or list of file(s) to populate to files input and optionally specify more files.
id: changed-files-specific-source-file-and-specify-files
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
files_from_source_file: |
test/changed-files-list.txt
@@ -248,13 +248,13 @@ Support this project with a :star:
- name: Use a different commit SHA
id: changed-files-custom-sha
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
sha: ${{ github.event.pull_request.head.sha }}
- name: Use a different base SHA
id: changed-files-custom-base-sha
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
base_sha: "2096ed0"
@@ -266,7 +266,7 @@ Support this project with a :star:
- name: Run changed-files with defaults on the dir1
id: changed-files-for-dir1
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
path: dir1
@@ -278,19 +278,19 @@ Support this project with a :star:
- name: Run changed-files using the last commit on the remote branch
id: changed-files-since-last-remote-commit
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
since_last_remote_commit: "true"
- name: Run changed-files using the fork point of a pull request
id: changed-files-fork-point
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
use_fork_point: "true"
- name: Run changed-files with quotepath disabled
id: changed-files-quotepath
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
quotepath: "false"
@@ -312,7 +312,7 @@ Support this project with a :star:
- name: Run changed-files with the commit of the last successful test workflow run
id: changed-files-base-sha-push
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
base_sha: ${{ steps.last_successful_commit_push.outputs.commit_hash }}
@@ -333,32 +333,32 @@ Support this project with a :star:
- name: Run changed-files with the commit of the last successful test workflow run on main
if: github.event_name == 'pull_request'
id: changed-files-base-sha-pull-request
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
base_sha: ${{ steps.last_successful_commit_pull_request.outputs.commit_hash }}
- name: Run changed-files with dir_names
id: changed-files-dir-names
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
dir_names: "true"
# All outputs are JSON formatted arrays and can be used in other actions and matrix compatible jobs.
- name: Run changed-files with json output
id: changed-files-json
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
json: "true"
- name: Run changed-files since 2022-08-19
id: changed-files-since
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
since: "2022-08-19"
- name: Run changed-files until 2022-08-20
id: changed-files-until
uses: tj-actions/changed-files@v27
uses: tj-actions/changed-files@v28
with:
until: "2022-08-20"
```
@@ -376,51 +376,6 @@ Support this project with a :star:
> However, this action will handle spaces in file names, with a recommendation of using a separator to prevent hidden issues.
> ![Screen Shot 2021-10-23 at 9 37 34 AM](https://user-images.githubusercontent.com/17484350/138558767-b13c90bf-a1ae-4e86-9520-70a6a4624f41.png)

## Versioning

This project follows a `v(major).(patch)` versioning scheme with the exception of pointing the git ref of the latest patch release to the major version tag.

> NOTE: :warning:
>
> * Users referencing the legacy `v1.x.x` → `v5.0.0` semantic versions, are required to switch over to `v10.x` → `v15.x` respectively as new releases would no longer be deployed using the old versioning scheme.
> * A breaking change was introduced in `v1.1.4` and `v13.x` which has been fixed.

## Migration guide

With the switch from using grep's Extended regex to match files to the natively supported workflow glob pattern matching syntax introduced in [v13](https://github.com/tj-actions/changed-files/releases/tag/v13) you'll need to modify patterns used to match `files`.

**BEFORE**

```yml
...
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/changed-files@v12.2
with:
files: |
\.sh$
.(sql|py)$
^(mynewfile|custom)
```

**AFTER**

```yml
...
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/changed-files@v27
with:
files: |
*.sh
*.sql
*.py
mynewfile
custom/**
```

## Credits

This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter).