Compare commits
101 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0874344d6e | ||
|
|
9f8300f8b4 | ||
|
|
a06b9e80ae | ||
|
|
4c5f5d698f | ||
|
|
07c64e5618 | ||
|
|
5bd333239b | ||
|
|
831e892562 | ||
|
|
e052d30e1c | ||
|
|
23a449039c | ||
|
|
60e2739e15 | ||
|
|
0f319d7425 | ||
|
|
d477ae513d | ||
|
|
5891cbdfd5 | ||
|
|
c9eaa5c000 | ||
|
|
fd91508dbb | ||
|
|
e8a7e82269 | ||
|
|
159b05372c | ||
|
|
635f118699 | ||
|
|
634b61511e | ||
|
|
77fcf43160 | ||
|
|
5f084a52a4 | ||
|
|
ff2cb1b4f2 | ||
|
|
5d5da31340 | ||
|
|
29bc0d3fd9 | ||
|
|
c9f9d5784e | ||
|
|
a4fba0109c | ||
|
|
8a6546164a | ||
|
|
bad2eb6859 | ||
|
|
b2dbd4264a | ||
|
|
57d40e662d | ||
|
|
185549c022 | ||
|
|
f853fd0592 | ||
|
|
cd3c6e6bbd | ||
|
|
e5ce44a301 | ||
|
|
ccdcd17ffd | ||
|
|
e4b8dafc5d | ||
|
|
2d756ea4c5 | ||
|
|
ce497c39e9 | ||
|
|
2d21bbb405 | ||
|
|
90941b398f | ||
|
|
2ca8dc42f6 | ||
|
|
ee096d679e | ||
|
|
4621617d4b | ||
|
|
4bbd49b998 | ||
|
|
c6557ed000 | ||
|
|
f0e7702ccc | ||
|
|
6354e6c542 | ||
|
|
117616472f | ||
|
|
4ff79362e5 | ||
|
|
0713a11242 | ||
|
|
064742427d | ||
|
|
efe5e6c7a4 | ||
|
|
01e9662a12 | ||
|
|
20576b4b9e | ||
|
|
077b23f6a6 | ||
|
|
02768050b1 | ||
|
|
427adf47f0 | ||
|
|
5c6aa49478 | ||
|
|
aa0b62a2d0 | ||
|
|
0320702dd5 | ||
|
|
38903688b4 | ||
|
|
98a74d2cd6 | ||
|
|
068000d9c6 | ||
|
|
490ac3999e | ||
|
|
2859a60726 | ||
|
|
d03038e4e4 | ||
|
|
77af4bed28 | ||
|
|
a5cf6aa30c | ||
|
|
15807c9c84 | ||
|
|
dc458cf753 | ||
|
|
92ca3eebd0 | ||
|
|
f591d0c7f0 | ||
|
|
35023362e2 | ||
|
|
e436cb6d85 | ||
|
|
257d47dfba | ||
|
|
4918e11830 | ||
|
|
aa08304bd4 | ||
|
|
008ba8ceec | ||
|
|
fe6c3ea0ca | ||
|
|
7fc073d922 | ||
|
|
7e4bfc2f1f | ||
|
|
ef3a7f51d6 | ||
|
|
a65c2f2100 | ||
|
|
ea042d8095 | ||
|
|
8293f8c984 | ||
|
|
0ff732eeb3 | ||
|
|
8df6fc260f | ||
|
|
d516645658 | ||
|
|
2c97e7ea24 | ||
|
|
1c8e606958 | ||
|
|
74605cb326 | ||
|
|
aa15b58e8a | ||
|
|
0a392e7438 | ||
|
|
85efc7df8e | ||
|
|
2a095d24c2 | ||
|
|
ac3dc5e392 | ||
|
|
dd7e9d3b17 | ||
|
|
0647a31f54 | ||
|
|
9d67dd3dbe | ||
|
|
5acd7e3646 | ||
|
|
9f4af73d05 |
3
.github/workflows/matrix-example.yml
vendored
3
.github/workflows/matrix-example.yml
vendored
@@ -24,8 +24,7 @@ jobs:
|
||||
id: changed-files
|
||||
uses: ./
|
||||
with:
|
||||
json: true
|
||||
escape_json: false
|
||||
matrix: true
|
||||
- name: List all changed files
|
||||
run: echo '${{ steps.changed-files.outputs.all_changed_files }}'
|
||||
|
||||
|
||||
2
.github/workflows/sync-release-version.yml
vendored
2
.github/workflows/sync-release-version.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
- name: Run git-cliff
|
||||
uses: tj-actions/git-cliff@v1
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v6.0.0
|
||||
uses: peter-evans/create-pull-request@v6.0.4
|
||||
with:
|
||||
base: "main"
|
||||
labels: "merge when passing"
|
||||
|
||||
99
.github/workflows/test.yml
vendored
99
.github/workflows/test.yml
vendored
@@ -60,7 +60,7 @@ jobs:
|
||||
yarn install
|
||||
|
||||
- name: Run eslint on changed files
|
||||
uses: tj-actions/eslint-changed-files@v23
|
||||
uses: tj-actions/eslint-changed-files@v24
|
||||
if: github.event_name == 'pull_request'
|
||||
with:
|
||||
token: ${{ secrets.PAT_TOKEN }}
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
yarn all
|
||||
|
||||
- name: Verify Changed files
|
||||
uses: tj-actions/verify-changed-files@v18
|
||||
uses: tj-actions/verify-changed-files@v19
|
||||
id: changed_files
|
||||
with:
|
||||
files: |
|
||||
@@ -567,6 +567,43 @@ jobs:
|
||||
shell:
|
||||
bash
|
||||
|
||||
test-dir-names-nested-folder:
|
||||
name: Test changed-files with dir-names in a nested folder
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: needs.build.outputs.files_changed != 'true'
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download build assets
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: build-assets
|
||||
path: dist
|
||||
|
||||
- name: Get changed files in the .github folder
|
||||
id: changed-files
|
||||
uses: ./
|
||||
with:
|
||||
path: .github
|
||||
json: true
|
||||
escape_json: false
|
||||
dir_names: true
|
||||
dir_names_exclude_current_dir: true
|
||||
|
||||
- name: Show output
|
||||
run: |
|
||||
echo "${{ toJSON(steps.changed-files.outputs) }}"
|
||||
shell:
|
||||
bash
|
||||
|
||||
test-non-existing-repository:
|
||||
name: Test changed-files with non existing repository
|
||||
runs-on: ubuntu-latest
|
||||
@@ -645,6 +682,27 @@ jobs:
|
||||
echo "${{ toJSON(steps.changed-files.outputs) }}"
|
||||
shell:
|
||||
bash
|
||||
|
||||
- name: Run changed-files excluding submodule
|
||||
id: changed-files-exclude-submodule
|
||||
uses: ./
|
||||
with:
|
||||
base_sha: "85bd869"
|
||||
sha: "adde7bb"
|
||||
fetch_depth: 60000
|
||||
exclude_submodules: true
|
||||
|
||||
- name: Verify no added files
|
||||
if: steps.changed-files-exclude-submodule.outputs.added_files != ''
|
||||
run: |
|
||||
echo "Expected: ('') got ${{ steps.changed-files-exclude-submodule.outputs.added_files }}"
|
||||
exit 1
|
||||
|
||||
- name: Show output
|
||||
run: |
|
||||
echo "${{ toJSON(steps.changed-files-exclude-submodule.outputs) }}"
|
||||
shell:
|
||||
bash
|
||||
test-yaml:
|
||||
name: Test changed-files with yaml
|
||||
runs-on: ubuntu-latest
|
||||
@@ -951,8 +1009,11 @@ jobs:
|
||||
bash
|
||||
test-dir-names-deleted-files-include-only-deleted-dirs-directory:
|
||||
name: Test dir names deleted files include only deleted dirs
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.platform }}
|
||||
needs: build
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||
if: needs.build.outputs.files_changed != 'true'
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -960,7 +1021,7 @@ jobs:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: cd1e384723e4d1a184568182ac2b27c53ebf017f
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
submodules: true
|
||||
fetch-depth: 2
|
||||
@@ -972,6 +1033,7 @@ jobs:
|
||||
sha: cd1e384723e4d1a184568182ac2b27c53ebf017f
|
||||
dir_names: true
|
||||
dir_names_deleted_files_include_only_deleted_dirs: true
|
||||
fetch_depth: 60000
|
||||
- name: Show output
|
||||
run: |
|
||||
echo '${{ toJSON(steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory.outputs) }}'
|
||||
@@ -991,6 +1053,35 @@ jobs:
|
||||
exit 1
|
||||
shell:
|
||||
bash
|
||||
- name: Run changed-files with dir_names and dir_names_deleted_files_include_only_deleted_dirs with the test directory deleted returns posix path separator
|
||||
id: changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator
|
||||
uses: ./
|
||||
with:
|
||||
base_sha: a52f8621d26d5d9f54b80f74bda2d9eedff94693
|
||||
sha: cd1e384723e4d1a184568182ac2b27c53ebf017f
|
||||
dir_names: true
|
||||
dir_names_deleted_files_include_only_deleted_dirs: true
|
||||
use_posix_path_separator: true
|
||||
fetch_depth: 60000
|
||||
- name: Show output
|
||||
run: |
|
||||
echo '${{ toJSON(steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs) }}'
|
||||
shell:
|
||||
bash
|
||||
- name: Check deleted_files output on non windows platform
|
||||
if: steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs.deleted_files != 'test/test3' && runner.os != 'Windows'
|
||||
run: |
|
||||
echo "Invalid output: Expected (test/test3) got (${{ steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs.deleted_files }})"
|
||||
exit 1
|
||||
shell:
|
||||
bash
|
||||
- name: Check deleted_files output on windows platform
|
||||
if: "!contains(steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs.deleted_files, 'test/test3') && runner.os == 'Windows'"
|
||||
run: |
|
||||
echo "Invalid output: Expected (test/test3) got (${{ steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs.deleted_files }})"
|
||||
exit 1
|
||||
shell:
|
||||
bash
|
||||
|
||||
test-since-last-remote-commit:
|
||||
name: Test changed-files since last remote commit
|
||||
|
||||
2
.github/workflows/update-readme.yml
vendored
2
.github/workflows/update-readme.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
||||
uses: tj-actions/remark@v3
|
||||
|
||||
- name: Verify Changed files
|
||||
uses: tj-actions/verify-changed-files@v18
|
||||
uses: tj-actions/verify-changed-files@v19
|
||||
id: verify_changed_files
|
||||
with:
|
||||
files: |
|
||||
|
||||
629
HISTORY.md
629
HISTORY.md
@@ -1,5 +1,311 @@
|
||||
# Changelog
|
||||
|
||||
# [44.2.0](https://github.com/tj-actions/changed-files/compare/v44.1.0...v44.2.0) - (2024-04-18)
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add support for specifying the max number for retries to fetch missing history ([#2052](https://github.com/tj-actions/changed-files/issues/2052)) ([07c64e5](https://github.com/tj-actions/changed-files/commit/07c64e56185e44568aa942ce23164b22828747eb)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md ([#2053](https://github.com/tj-actions/changed-files/issues/2053))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([4c5f5d6](https://github.com/tj-actions/changed-files/commit/4c5f5d698fbf2d763d5f13815ac7c2ccbef1ff7f)) - (tj-actions[bot])
|
||||
- Updated README.md ([#2049](https://github.com/tj-actions/changed-files/issues/2049))
|
||||
|
||||
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> ([831e892](https://github.com/tj-actions/changed-files/commit/831e892562944fa1fa9356c6b6e231553148f7bc)) - (tj-actions[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v44.1.0 ([#2050](https://github.com/tj-actions/changed-files/issues/2050))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([5bd3332](https://github.com/tj-actions/changed-files/commit/5bd333239b5f6fc69dcea71aafdd8c9da21aa0a2)) - (tj-actions[bot])
|
||||
|
||||
# [44.1.0](https://github.com/tj-actions/changed-files/compare/v44.0.1...v44.1.0) - (2024-04-17)
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add option to exclude submodules when detecting changes ([#2047](https://github.com/tj-actions/changed-files/issues/2047)) ([e052d30](https://github.com/tj-actions/changed-files/commit/e052d30e1c0bdf27cd806b01ca3b393f47b50c62)) - (Tonye Jack)
|
||||
|
||||
## <!-- 16 -->➕ Add
|
||||
|
||||
- Added missing changes and modified dist assets.
|
||||
([d477ae5](https://github.com/tj-actions/changed-files/commit/d477ae513d5b52384bbf032bcc395a548501f3fc)) - (GitHub Action)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Update peter-evans/create-pull-request action to v6.0.4 ([23a4490](https://github.com/tj-actions/changed-files/commit/23a449039c6fee9756073fb578b2659e524ea07a)) - (renovate[bot])
|
||||
- **deps:** Update typescript-eslint monorepo to v7.7.0 ([60e2739](https://github.com/tj-actions/changed-files/commit/60e2739e15ad6e8a2d5a3b2c8c2d420894687405)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([0f319d7](https://github.com/tj-actions/changed-files/commit/0f319d742554833419bdc95d68ecb50ccebcd39d)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([5891cbd](https://github.com/tj-actions/changed-files/commit/5891cbdfd5eb99762cc467c50ed8b39f26cc9d74)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/micromatch to v4.0.7 ([c9eaa5c](https://github.com/tj-actions/changed-files/commit/c9eaa5c000b860baef243fabe5562a694dc58c0e)) - (renovate[bot])
|
||||
- **deps:** Update peter-evans/create-pull-request action to v6.0.3 ([fd91508](https://github.com/tj-actions/changed-files/commit/fd91508dbb9a3cf89ed4b32684b6eeb925e0e157)) - (renovate[bot])
|
||||
- **deps:** Update dependency typescript to v5.4.5 ([e8a7e82](https://github.com/tj-actions/changed-files/commit/e8a7e822693e723321608f9be7209c66c3f74860)) - (renovate[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v44.0.1 ([#2037](https://github.com/tj-actions/changed-files/issues/2037))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([159b053](https://github.com/tj-actions/changed-files/commit/159b05372c2d806218e9370a3e877b6d9db80737)) - (tj-actions[bot])
|
||||
|
||||
# [44.0.1](https://github.com/tj-actions/changed-files/compare/v44.0.0...v44.0.1) - (2024-04-09)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- **deps:** Update dependency @octokit/rest to v20.1.0 ([57d40e6](https://github.com/tj-actions/changed-files/commit/57d40e662d530daae769897d18bded8d3cf4263b)) - (renovate[bot])
|
||||
|
||||
## <!-- 16 -->➕ Add
|
||||
|
||||
- Added missing changes and modified dist assets.
|
||||
([5f084a5](https://github.com/tj-actions/changed-files/commit/5f084a52a4aa792443ce2bbb4a91daa956a83c4f)) - (GitHub Action)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Update dependency @types/node to v20.12.7 ([635f118](https://github.com/tj-actions/changed-files/commit/635f118699dd888d737c15018cd30aff2e0274f8)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.12.6 ([634b615](https://github.com/tj-actions/changed-files/commit/634b61511ee053fabd2cfaaf72201ee2aba54a71)) - (renovate[bot])
|
||||
- **deps:** Update typescript-eslint monorepo to v7.6.0 ([77fcf43](https://github.com/tj-actions/changed-files/commit/77fcf43160285ab257bfa4b0ef824674404bb585)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([ff2cb1b](https://github.com/tj-actions/changed-files/commit/ff2cb1b4f2d5b477f5e0720e406ebb59af963a5b)) - (renovate[bot])
|
||||
- **deps:** Update dependency eslint-plugin-jest to v28.2.0 ([5d5da31](https://github.com/tj-actions/changed-files/commit/5d5da31340cc6c5ce75e99ca8e5436aeda1c111f)) - (renovate[bot])
|
||||
- **deps:** Update dependency eslint-plugin-jest to v28.1.1 ([29bc0d3](https://github.com/tj-actions/changed-files/commit/29bc0d3fd93da8b4eae1bc7568d193b2092baf9c)) - (renovate[bot])
|
||||
- **deps:** Update dependency eslint-plugin-jest to v28 ([#2030](https://github.com/tj-actions/changed-files/issues/2030)) ([c9f9d57](https://github.com/tj-actions/changed-files/commit/c9f9d5784e44a3f04e2995c42e6ca15f7c41374b)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.12.5 ([a4fba01](https://github.com/tj-actions/changed-files/commit/a4fba0109cdb1460d2d6a345cbe68883a3efec47)) - (renovate[bot])
|
||||
- **deps:** Bump undici from 5.28.3 to 5.28.4 ([#2026](https://github.com/tj-actions/changed-files/issues/2026)) ([8a65461](https://github.com/tj-actions/changed-files/commit/8a6546164ab50b552bf37a71eb624e115731c3ee)) - (dependabot[bot])
|
||||
- **deps:** Update dependency typescript to v5.4.4 ([bad2eb6](https://github.com/tj-actions/changed-files/commit/bad2eb6859141c0628b71ff4ae0fa1a39a8cfd1a)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.12.4 ([b2dbd42](https://github.com/tj-actions/changed-files/commit/b2dbd4264a1b1ffc90b7b807d01e572eaf935f06)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.12.3 ([185549c](https://github.com/tj-actions/changed-files/commit/185549c022e131c14c82c9ddfd42ca3fc4a503c2)) - (renovate[bot])
|
||||
- **deps:** Update typescript-eslint monorepo to v7.5.0 ([f853fd0](https://github.com/tj-actions/changed-files/commit/f853fd059210921daf74c68d70c6f77b2dd21f8c)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([cd3c6e6](https://github.com/tj-actions/changed-files/commit/cd3c6e6bbdabefdea4c7311299eacf440eefabaf)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.12.2 ([e5ce44a](https://github.com/tj-actions/changed-files/commit/e5ce44a30190a3af4c81b960587845596e2300ca)) - (renovate[bot])
|
||||
- **deps:** Update tj-actions/eslint-changed-files action to v24 ([#2019](https://github.com/tj-actions/changed-files/issues/2019)) ([ccdcd17](https://github.com/tj-actions/changed-files/commit/ccdcd17ffd1350eb36c1ff43637d0dbd40b8cdfb)) - (renovate[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v44 ([#2017](https://github.com/tj-actions/changed-files/issues/2017))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([e4b8daf](https://github.com/tj-actions/changed-files/commit/e4b8dafc5d0002cc57a632e6a376df5c8c368481)) - (tj-actions[bot])
|
||||
|
||||
# [44.0.0](https://github.com/tj-actions/changed-files/compare/v43.0.1...v44.0.0) - (2024-03-27)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- Ensure the fork remote doesn't exists before creating it ([#2012](https://github.com/tj-actions/changed-files/issues/2012)) ([4bbd49b](https://github.com/tj-actions/changed-files/commit/4bbd49b9986b1300b75e8efb5778350b750ae6c8)) - (Tonye Jack)
|
||||
- Update previos sha for forks ([#2011](https://github.com/tj-actions/changed-files/issues/2011)) ([f0e7702](https://github.com/tj-actions/changed-files/commit/f0e7702ccc35952acb83edeb7400b05c0a67e2be)) - (Tonye Jack)
|
||||
- Update to add the fork remote ([#2010](https://github.com/tj-actions/changed-files/issues/2010)) ([6354e6c](https://github.com/tj-actions/changed-files/commit/6354e6c5426d1e7c7a2d8a5887e26b535837958e)) - (Tonye Jack)
|
||||
- Check for setting remote urls for forks ([#2009](https://github.com/tj-actions/changed-files/issues/2009)) ([1176164](https://github.com/tj-actions/changed-files/commit/117616472fb771d9e030aa0c3741057ad520d9cf)) - (Tonye Jack)
|
||||
- Bug with prs from forks returning incorrect set of changed files ([#2007](https://github.com/tj-actions/changed-files/issues/2007)) ([4ff7936](https://github.com/tj-actions/changed-files/commit/4ff79362e5015d6d0c6c0050b3082c97a5b7e84a)) - (Tonye Jack)
|
||||
|
||||
## <!-- 17 -->➖ Remove
|
||||
|
||||
- Unused code ([#2014](https://github.com/tj-actions/changed-files/issues/2014)) ([90941b3](https://github.com/tj-actions/changed-files/commit/90941b398f6d8d3ade3e2b8f179d0c64f3679de6)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md ([#2016](https://github.com/tj-actions/changed-files/issues/2016))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([2d756ea](https://github.com/tj-actions/changed-files/commit/2d756ea4c53f7f6b397767d8723b3a10a9f35bf2)) - (tj-actions[bot])
|
||||
- Update README.md ([2d21bbb](https://github.com/tj-actions/changed-files/commit/2d21bbb405b3e0e15479b93c4d9989b4b780a266)) - (Tonye Jack)
|
||||
- Updated README.md ([#2013](https://github.com/tj-actions/changed-files/issues/2013))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([2ca8dc4](https://github.com/tj-actions/changed-files/commit/2ca8dc42f60aab6d0f54beb4e1bd63f15aa53632)) - (tj-actions[bot])
|
||||
- Update README.md ([4621617](https://github.com/tj-actions/changed-files/commit/4621617d4b568fe72798b05a512482442405549c)) - (tonyejack1)
|
||||
- Update README.md ([c6557ed](https://github.com/tj-actions/changed-files/commit/c6557ed000b9d1dbc0abcb5c2a7efc1ef3baa379)) - (Tonye Jack)
|
||||
- Update README.md ([0713a11](https://github.com/tj-actions/changed-files/commit/0713a11242c796d0e601c9ac8f009c2beed0d646)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update description of outputs removing asterisks ([#2015](https://github.com/tj-actions/changed-files/issues/2015)) ([ce497c3](https://github.com/tj-actions/changed-files/commit/ce497c39e9043c5dec72f4506445f6b5dbd1f027)) - (tonyejack1)
|
||||
- Update description of other_deleted_files output ([#2008](https://github.com/tj-actions/changed-files/issues/2008)) ([ee096d6](https://github.com/tj-actions/changed-files/commit/ee096d679e877096b9d6e42066f654e0d9d65b1a)) - (tonyejack1)
|
||||
- **deps:** Update typescript-eslint monorepo to v7.4.0 ([0647424](https://github.com/tj-actions/changed-files/commit/064742427d8106b59345e3fabb40031068c82c41)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([efe5e6c](https://github.com/tj-actions/changed-files/commit/efe5e6c7a415f33e8936dea8c45a8fe80be66a92)) - (renovate[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v43.0.1 ([#2004](https://github.com/tj-actions/changed-files/issues/2004))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([01e9662](https://github.com/tj-actions/changed-files/commit/01e9662a12a71c5aea74e82ca1c58fa76a640c61)) - (tj-actions[bot])
|
||||
|
||||
# [43.0.1](https://github.com/tj-actions/changed-files/compare/v43.0.0...v43.0.1) - (2024-03-20)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- Remove warning with detecting the local git repository when using Github's REST API ([#2002](https://github.com/tj-actions/changed-files/issues/2002)) ([077b23f](https://github.com/tj-actions/changed-files/commit/077b23f6a68d9322b1b4ed4d0c88791b30b314d8)) - (Tonye Jack)
|
||||
|
||||
## <!-- 13 -->📦 Bumps
|
||||
|
||||
- Bump @typescript-eslint/eslint-plugin from 7.3.0 to 7.3.1 ([#1995](https://github.com/tj-actions/changed-files/issues/1995))
|
||||
|
||||
Signed-off-by: dependabot[bot] <support@github.com>
|
||||
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
||||
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> ([5c6aa49](https://github.com/tj-actions/changed-files/commit/5c6aa4947834d6dd7af1de76ed0e000a8cbc0964)) - (dependabot[bot])
|
||||
- Bump @typescript-eslint/parser from 7.3.0 to 7.3.1 ([#1996](https://github.com/tj-actions/changed-files/issues/1996))
|
||||
|
||||
Signed-off-by: dependabot[bot] <support@github.com>
|
||||
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ([0320702](https://github.com/tj-actions/changed-files/commit/0320702dd5d94814f6c31f81f51dda71ff2d2afc)) - (dependabot[bot])
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Update README.md ([2859a60](https://github.com/tj-actions/changed-files/commit/2859a60726ea6e36242029176333d2d37880bbc5)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Update dependency typescript to v5.4.3 ([20576b4](https://github.com/tj-actions/changed-files/commit/20576b4b9ed46d41e2d45a2256e5e2316dde6834)) - (renovate[bot])
|
||||
- Update inputs.ts adding comment about fetch_depth ([#2000](https://github.com/tj-actions/changed-files/issues/2000)) ([0276805](https://github.com/tj-actions/changed-files/commit/02768050b13fdd81ec63a329d99c63c70c0498d5)) - (Tonye Jack)
|
||||
- **deps:** Update dependency @types/node to v20.11.30 ([427adf4](https://github.com/tj-actions/changed-files/commit/427adf47f0f2cc0562d8ed340e6ada019719e4ed)) - (renovate[bot])
|
||||
- **deps:** Update dependency @typescript-eslint/eslint-plugin to v7.3.1 ([aa0b62a](https://github.com/tj-actions/changed-files/commit/aa0b62a2d0821235d320c725d8a3ac5eaa3d227a)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.11.29 ([3890368](https://github.com/tj-actions/changed-files/commit/38903688b4f76a85d37c033f85de20dc15cae06f)) - (renovate[bot])
|
||||
- **deps:** Update typescript-eslint monorepo to v7.3.0 ([98a74d2](https://github.com/tj-actions/changed-files/commit/98a74d2cd69797eb746b5f87fc277dd48b6fecb7)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([068000d](https://github.com/tj-actions/changed-files/commit/068000d9c6712e4e03b15f450774548890556fc7)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.11.28 ([490ac39](https://github.com/tj-actions/changed-files/commit/490ac3999ea698495f8c32c2936450b9db118b2d)) - (renovate[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v43 ([#1990](https://github.com/tj-actions/changed-files/issues/1990))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([d03038e](https://github.com/tj-actions/changed-files/commit/d03038e4e418521b091b356b50cff5d7be177c78)) - (tj-actions[bot])
|
||||
|
||||
# [43.0.0](https://github.com/tj-actions/changed-files/compare/v42.1.0...v43.0.0) - (2024-03-13)
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add support for returning true for `any_{changed, modified, deleted}` outputs when no patterns are specified ([#1988](https://github.com/tj-actions/changed-files/issues/1988)) ([a5cf6aa](https://github.com/tj-actions/changed-files/commit/a5cf6aa30cfbe1e0764d2aa5e9f42edb847b6d55)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md ([#1989](https://github.com/tj-actions/changed-files/issues/1989))
|
||||
|
||||
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> ([77af4be](https://github.com/tj-actions/changed-files/commit/77af4bed286740ef1a6387dc4e4e4dec39f96054)) - (tj-actions[bot])
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Update dependency @types/node to v20.11.27 ([15807c9](https://github.com/tj-actions/changed-files/commit/15807c9c84ec7ff092c52f2f9fecc600e81420f1)) - (renovate[bot])
|
||||
- **deps:** Update peter-evans/create-pull-request action to v6.0.2 ([dc458cf](https://github.com/tj-actions/changed-files/commit/dc458cf7531fd39dcf942beb39ef6bdcaddc9715)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/lodash to v4.17.0 ([92ca3ee](https://github.com/tj-actions/changed-files/commit/92ca3eebd01cb3fc4d88a4cbd10f344ea4a116d3)) - (renovate[bot])
|
||||
- **deps:** Update dependency @typescript-eslint/eslint-plugin to v7.2.0 ([f591d0c](https://github.com/tj-actions/changed-files/commit/f591d0c7f0b790ca8c139ce92ff4e8c238cb8940)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.11.26 ([3502336](https://github.com/tj-actions/changed-files/commit/35023362e2b0ff1cd9b970167a1603614e1ad854)) - (renovate[bot])
|
||||
- **deps:** Update dependency @typescript-eslint/parser to v7.2.0 ([e436cb6](https://github.com/tj-actions/changed-files/commit/e436cb6d85bcd4aecab64c542f2268998a1cdd2f)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([257d47d](https://github.com/tj-actions/changed-files/commit/257d47dfba22be3e0a17f6bad47ff07f7e76747c)) - (renovate[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v42.1.0 ([#1977](https://github.com/tj-actions/changed-files/issues/1977))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([4918e11](https://github.com/tj-actions/changed-files/commit/4918e1183080b35a085c91c8abc9e6adc4de61a1)) - (tj-actions[bot])
|
||||
|
||||
# [42.1.0](https://github.com/tj-actions/changed-files/compare/v42.0.7...v42.1.0) - (2024-03-09)
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add matrix alias to simplify using outputs for matrix jobs ([#1975](https://github.com/tj-actions/changed-files/issues/1975)) ([008ba8c](https://github.com/tj-actions/changed-files/commit/008ba8ceec9f1757264e0512542d5ecab6d87ae6)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md ([#1976](https://github.com/tj-actions/changed-files/issues/1976))
|
||||
|
||||
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> ([aa08304](https://github.com/tj-actions/changed-files/commit/aa08304bd477b800d468db44fe10f6c61f7f7b11)) - (tj-actions[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v42.0.7 ([#1974](https://github.com/tj-actions/changed-files/issues/1974))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([fe6c3ea](https://github.com/tj-actions/changed-files/commit/fe6c3ea0ca88f25e4ba51fa00c27bb5dd06cb08a)) - (tj-actions[bot])
|
||||
|
||||
# [42.0.7](https://github.com/tj-actions/changed-files/compare/v42.0.6...v42.0.7) - (2024-03-07)
|
||||
|
||||
## <!-- 16 -->➕ Add
|
||||
|
||||
- Added missing changes and modified dist assets.
|
||||
([7fc073d](https://github.com/tj-actions/changed-files/commit/7fc073d92265804a8d4e4982b637dee053daf6c5)) - (GitHub Action)
|
||||
- Added missing changes and modified dist assets.
|
||||
([ea042d8](https://github.com/tj-actions/changed-files/commit/ea042d8095a33fa94ad9d96bc929ea8810d43730)) - (GitHub Action)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Update README.md ([a65c2f2](https://github.com/tj-actions/changed-files/commit/a65c2f2100bbf5456ab3003d2f2f8694a766ca15)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Lock file maintenance ([7e4bfc2](https://github.com/tj-actions/changed-files/commit/7e4bfc2f1fa97a8c535ef93b2d1639d23f0ab0dc)) - (renovate[bot])
|
||||
- Add test for detecting changed-files in a nested directory ([#1972](https://github.com/tj-actions/changed-files/issues/1972)) ([ef3a7f5](https://github.com/tj-actions/changed-files/commit/ef3a7f51d62496589f0de8e46e5e60a39d45364b)) - (Tonye Jack)
|
||||
- **deps:** Update dependency typescript to v5.4.2 ([8293f8c](https://github.com/tj-actions/changed-files/commit/8293f8c984e14294df9f3eb755952f415c0a2f72)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.11.25 ([0ff732e](https://github.com/tj-actions/changed-files/commit/0ff732eeb3b7415f6f56c1dba85b003012e800a1)) - (renovate[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v42.0.6 ([#1968](https://github.com/tj-actions/changed-files/issues/1968))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([8df6fc2](https://github.com/tj-actions/changed-files/commit/8df6fc260f394ebf7993aad987f0cae9147d94b8)) - (tj-actions[bot])
|
||||
|
||||
# [42.0.6](https://github.com/tj-actions/changed-files/compare/v42.0.5...v42.0.6) - (2024-03-06)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- **deps:** Update dependency yaml to v2.4.1 ([2c97e7e](https://github.com/tj-actions/changed-files/commit/2c97e7ea24c4a092b276d77917d5d7dbf4ea65b7)) - (renovate[bot])
|
||||
|
||||
## <!-- 16 -->➕ Add
|
||||
|
||||
- Added missing changes and modified dist assets.
|
||||
([d516645](https://github.com/tj-actions/changed-files/commit/d516645658aa4705b46600cdbf9e6d54f56b973f)) - (GitHub Action)
|
||||
- Added missing changes and modified dist assets.
|
||||
([74605cb](https://github.com/tj-actions/changed-files/commit/74605cb32610fb52b0ab3cd1bd3ab7451c614731)) - (GitHub Action)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Update typescript-eslint monorepo to v7.1.1 ([1c8e606](https://github.com/tj-actions/changed-files/commit/1c8e6069583811afb28f97afeaf8e7da80c6be5c)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([aa15b58](https://github.com/tj-actions/changed-files/commit/aa15b58e8ab56c0816a8e719cf5c654a79ae4492)) - (renovate[bot])
|
||||
- **deps:** Update dependency eslint-plugin-github to v4.10.2 ([0a392e7](https://github.com/tj-actions/changed-files/commit/0a392e7438f4e555202d05c463827135b3a3e289)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.11.24 ([85efc7d](https://github.com/tj-actions/changed-files/commit/85efc7df8eb456442f7e322633383902290cc1f8)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.11.23 ([2a095d2](https://github.com/tj-actions/changed-files/commit/2a095d24c23c7474c8fdde85919198de94889177)) - (renovate[bot])
|
||||
- **deps:** Update tj-actions/verify-changed-files action to v19 ([#1960](https://github.com/tj-actions/changed-files/issues/1960)) ([ac3dc5e](https://github.com/tj-actions/changed-files/commit/ac3dc5e39291033c74e26f599dbbfa9e61ff26af)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.11.22 ([dd7e9d3](https://github.com/tj-actions/changed-files/commit/dd7e9d3b1781a8ef379b79f15339a201912a94eb)) - (renovate[bot])
|
||||
- **deps:** Update peter-evans/create-pull-request action to v6.0.1 ([0647a31](https://github.com/tj-actions/changed-files/commit/0647a31f545ce3643aea48ac4cd25f5329c6f7e2)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.11.21 ([9d67dd3](https://github.com/tj-actions/changed-files/commit/9d67dd3dbe2b7b04246ba58984cad0877d86d6c1)) - (renovate[bot])
|
||||
- **deps:** Update typescript-eslint monorepo to v7.1.0 ([5acd7e3](https://github.com/tj-actions/changed-files/commit/5acd7e364617365a2b7f6dca77e14864196c1f1f)) - (renovate[bot])
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v42.0.5 ([#1955](https://github.com/tj-actions/changed-files/issues/1955))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([9f4af73](https://github.com/tj-actions/changed-files/commit/9f4af73d05677de0c5f817fbdea9f348526bc5d7)) - (tj-actions[bot])
|
||||
|
||||
# [42.0.5](https://github.com/tj-actions/changed-files/compare/v42.0.4...v42.0.5) - (2024-02-26)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- **deps:** Update dependency yaml to v2.4.0 ([2a2a5b6](https://github.com/tj-actions/changed-files/commit/2a2a5b6b9c6db0cfcd525935dad0f332588dbcdf)) - (renovate[bot])
|
||||
|
||||
## <!-- 16 -->➕ Add
|
||||
|
||||
- Added missing changes and modified dist assets.
|
||||
([31c4d15](https://github.com/tj-actions/changed-files/commit/31c4d150e63ef47fc38cf81c39ceb5229d86e767)) - (GitHub Action)
|
||||
- Added missing changes and modified dist assets.
|
||||
([9d447b9](https://github.com/tj-actions/changed-files/commit/9d447b99599b62c3df2a8a45af769db7f81fd34f)) - (GitHub Action)
|
||||
- Added missing changes and modified dist assets.
|
||||
([c2039de](https://github.com/tj-actions/changed-files/commit/c2039de114db9c5a087669f8e5a08ccebf8ba7e5)) - (GitHub Action)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Update README.md ([bb7502b](https://github.com/tj-actions/changed-files/commit/bb7502bd153c279403ec0adfe53e7d29572b8e6d)) - (Tonye Jack)
|
||||
- Updated README.md ([#1943](https://github.com/tj-actions/changed-files/issues/1943))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([9ef20a6](https://github.com/tj-actions/changed-files/commit/9ef20a69dd248e1c8052154fbc71e92eb22534f7)) - (tj-actions[bot])
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- **deps:** Lock file maintenance ([800a282](https://github.com/tj-actions/changed-files/commit/800a2825992141ddde1a8bca8ad394cec34d3188)) - (renovate[bot])
|
||||
- Update README.md ([#1952](https://github.com/tj-actions/changed-files/issues/1952)) ([d8dcc13](https://github.com/tj-actions/changed-files/commit/d8dcc13244f746e6e87d0c8e1d9e1fece4d92b1b)) - (Tonye Jack)
|
||||
- **deps:** Update dependency eslint to v8.57.0 ([639ce0e](https://github.com/tj-actions/changed-files/commit/639ce0e105d24840145eb1f8376b3e76c9a3a8cb)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([83bfc72](https://github.com/tj-actions/changed-files/commit/83bfc72efa888541b87858084210b0da1a075ab0)) - (renovate[bot])
|
||||
- **deps:** Update dependency @types/node to v20.11.20 ([879c838](https://github.com/tj-actions/changed-files/commit/879c8388c87e3dd4b82550f3ac3feb339b5be371)) - (renovate[bot])
|
||||
- **deps:** Update typescript-eslint monorepo to v7.0.2 ([5c5539c](https://github.com/tj-actions/changed-files/commit/5c5539ced911e7611502cefecf9a4738733a6bfe)) - (renovate[bot])
|
||||
- **deps:** Lock file maintenance ([0cbc9bc](https://github.com/tj-actions/changed-files/commit/0cbc9bc448d680c63e6fa4a96b40194d963e4257)) - (renovate[bot])
|
||||
- Update action.yml ([#1942](https://github.com/tj-actions/changed-files/issues/1942)) ([a617853](https://github.com/tj-actions/changed-files/commit/a617853c0f8e2e999a506ad8f26424a2aac2175e)) - (Tonye Jack)
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v42.0.4 ([#1941](https://github.com/tj-actions/changed-files/issues/1941))
|
||||
|
||||
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([5c1bceb](https://github.com/tj-actions/changed-files/commit/5c1bceb76c87f3f3f9c362eb74228d3d9512ff5c)) - (tj-actions[bot])
|
||||
|
||||
# [42.0.4](https://github.com/tj-actions/changed-files/compare/v42.0.3...v42.0.4) - (2024-02-18)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
@@ -1882,8 +2188,8 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([2c8123e](https://
|
||||
|
||||
- Add support for returning changed file counts ([#1273](https://github.com/tj-actions/changed-files/issues/1273)) ([f573054](https://github.com/tj-actions/changed-files/commit/f573054697fceee32a3bbc0ecf27286247aabb56)) - (Tonye Jack)
|
||||
- Move deleted file recovery to leverage filter ([#1272](https://github.com/tj-actions/changed-files/issues/1272)) ([c3c3db7](https://github.com/tj-actions/changed-files/commit/c3c3db7feee6dc9447b2c03b41ae18e63e043fe2)) - (Tonye Jack)
|
||||
- Add support for recovering deleted files ([#1269](https://github.com/tj-actions/changed-files/issues/1269)) ([77f9e6c](https://github.com/tj-actions/changed-files/commit/77f9e6c7c636ec1a11598091308b26a1c1ccf131)) - (Tonye Jack)
|
||||
- Add support for recovering deleted files ([d9105a4](https://github.com/tj-actions/changed-files/commit/d9105a4631593f0dc11f3ae6bfbcb5ac43625523)) - (Tonye Jack)
|
||||
- Add support for recovering deleted files ([#1269](https://github.com/tj-actions/changed-files/issues/1269)) ([77f9e6c](https://github.com/tj-actions/changed-files/commit/77f9e6c7c636ec1a11598091308b26a1c1ccf131)) - (Tonye Jack)
|
||||
|
||||
## <!-- 16 -->➕ Add
|
||||
|
||||
@@ -1905,8 +2211,6 @@ Co-authored-by: repo-ranger[bot] <repo-ranger[bot]@users.noreply.github.com> ([e
|
||||
- Updated README.md ([#1270](https://github.com/tj-actions/changed-files/issues/1270))
|
||||
|
||||
Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([7fcd53a](https://github.com/tj-actions/changed-files/commit/7fcd53ac001f9faf1b1f57a58e10cd958da114ed)) - (tj-actions[bot])
|
||||
- Update README.md ([d7af20b](https://github.com/tj-actions/changed-files/commit/d7af20bab3d42577ec79dffc4e793c14d0df65b3)) - (Tonye Jack)
|
||||
- Update README.md ([690b721](https://github.com/tj-actions/changed-files/commit/690b721958b0220fa3f827e13559c5023d277b61)) - (Tonye Jack)
|
||||
- Updated the test
|
||||
([c82a34e](https://github.com/tj-actions/changed-files/commit/c82a34e7e5e87a5c69ee4aff0facae82e5177e3b)) - (Tonye Jack)
|
||||
- Updated the test
|
||||
@@ -1915,6 +2219,8 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([7fcd53a](https://
|
||||
([71290f0](https://github.com/tj-actions/changed-files/commit/71290f02ff8f886712b65679f29e64216aa3e131)) - (Tonye Jack)
|
||||
- Updated test
|
||||
([ecf455a](https://github.com/tj-actions/changed-files/commit/ecf455a884019154bc08fa00fa237fd5a07b2287)) - (Tonye Jack)
|
||||
- Update README.md ([d7af20b](https://github.com/tj-actions/changed-files/commit/d7af20bab3d42577ec79dffc4e793c14d0df65b3)) - (Tonye Jack)
|
||||
- Update README.md ([690b721](https://github.com/tj-actions/changed-files/commit/690b721958b0220fa3f827e13559c5023d277b61)) - (Tonye Jack)
|
||||
- Update README.md ([024cd58](https://github.com/tj-actions/changed-files/commit/024cd58ac6e73a0f9617287edc3954db32e85394)) - (Tonye Jack)
|
||||
- Update README.md ([c9a1c56](https://github.com/tj-actions/changed-files/commit/c9a1c56f6da50ec6d7986486064919eaeea692cc)) - (Tonye Jack)
|
||||
|
||||
@@ -2839,7 +3145,6 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([bda7fb2](https://
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- Bug getting diff for submodules and fetching more history ([#980](https://github.com/tj-actions/changed-files/issues/980)) ([b477871](https://github.com/tj-actions/changed-files/commit/b477871310c9f033a02d7d31d29dd1a141ce7a6c)) - (Tonye Jack)
|
||||
- Fixed the test
|
||||
([6498ab1](https://github.com/tj-actions/changed-files/commit/6498ab1ae4bc23e7f4180b91b8f979255453837f)) - (Tonye Jack)
|
||||
- Fixed the test
|
||||
@@ -2858,6 +3163,7 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([bda7fb2](https://
|
||||
([07dba6b](https://github.com/tj-actions/changed-files/commit/07dba6b85d18482fb68d20c4b936467b0b17baad)) - (Tonye Jack)
|
||||
- Fixed the test
|
||||
([ab710fb](https://github.com/tj-actions/changed-files/commit/ab710fb168fc55bfac95911978c4784bf01f3575)) - (Tonye Jack)
|
||||
- Bug getting diff for submodules and fetching more history ([#980](https://github.com/tj-actions/changed-files/issues/980)) ([b477871](https://github.com/tj-actions/changed-files/commit/b477871310c9f033a02d7d31d29dd1a141ce7a6c)) - (Tonye Jack)
|
||||
|
||||
## <!-- 17 -->➖ Remove
|
||||
|
||||
@@ -2870,13 +3176,8 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([bda7fb2](https://
|
||||
|
||||
- Updated the fetch args
|
||||
([3253948](https://github.com/tj-actions/changed-files/commit/3253948ff2f66427c571d83495f8442b9dfccd10)) - (Tonye Jack)
|
||||
- Update README.md ([8efe373](https://github.com/tj-actions/changed-files/commit/8efe3735309bfb91a21adb81a9316114830dd121)) - (Tonye Jack)
|
||||
- Updated the test
|
||||
([123da80](https://github.com/tj-actions/changed-files/commit/123da803957da82d321f696d85eec6286fa8a70e)) - (Tonye Jack)
|
||||
- Updated README.md ([#984](https://github.com/tj-actions/changed-files/issues/984))
|
||||
|
||||
Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([a2ffc56](https://github.com/tj-actions/changed-files/commit/a2ffc563653bef9378973a503ebc9ac6087cad98)) - (Tonye Jack)
|
||||
- Update README.md ([fe5db36](https://github.com/tj-actions/changed-files/commit/fe5db36271fb000e3d091a5c22e5c467c1c4d5e9)) - (Tonye Jack)
|
||||
- Update to include submodules.
|
||||
([5982c92](https://github.com/tj-actions/changed-files/commit/5982c926769189682df26961e3cc8e5b2aa0f82c)) - (Tonye Jack)
|
||||
- Update error message
|
||||
@@ -2892,6 +3193,13 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([a2ffc56](https://
|
||||
- Update get-changed-paths.sh ([6164e1c](https://github.com/tj-actions/changed-files/commit/6164e1cd7fdc6c8a5a406de58b24eda22444e4ea)) - (Tonye Jack)
|
||||
- Update get-changed-paths.sh ([4dc0f1f](https://github.com/tj-actions/changed-files/commit/4dc0f1f9049fda16689fda0375afcc1c0eea241f)) - (Tonye Jack)
|
||||
- Update get-changed-paths.sh ([f0fc230](https://github.com/tj-actions/changed-files/commit/f0fc230482b82d4049c4ba52c6aa1ef0cf22ea6a)) - (Tonye Jack)
|
||||
- Updated the test
|
||||
([a4b2b85](https://github.com/tj-actions/changed-files/commit/a4b2b85206a18f8aeac071e36a9fa8ed98e5b99a)) - (Tonye Jack)
|
||||
- Update README.md ([8efe373](https://github.com/tj-actions/changed-files/commit/8efe3735309bfb91a21adb81a9316114830dd121)) - (Tonye Jack)
|
||||
- Updated README.md ([#984](https://github.com/tj-actions/changed-files/issues/984))
|
||||
|
||||
Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([a2ffc56](https://github.com/tj-actions/changed-files/commit/a2ffc563653bef9378973a503ebc9ac6087cad98)) - (Tonye Jack)
|
||||
- Update README.md ([fe5db36](https://github.com/tj-actions/changed-files/commit/fe5db36271fb000e3d091a5c22e5c467c1c4d5e9)) - (Tonye Jack)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
@@ -2903,6 +3211,12 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([a2ffc56](https://
|
||||
- Merge branch 'main' into chore/update-submodule ([b4d152a](https://github.com/tj-actions/changed-files/commit/b4d152a6a53f05847bdd87a19ce27ba8aee87996)) - (Tonye Jack)
|
||||
- Enable debugging.
|
||||
([68f10de](https://github.com/tj-actions/changed-files/commit/68f10de3ead55c05465e5cdc8c0452c8d5d4afba)) - (Tonye Jack)
|
||||
- Enable debugging.
|
||||
([608b7f8](https://github.com/tj-actions/changed-files/commit/608b7f81dec8b4260a1d40179086c9d033542829)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update submodule ([adde7bb](https://github.com/tj-actions/changed-files/commit/adde7bbfea8fcba97d0f3d97ad57187a9f16dbbc)) - (Tonye Jack)
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
@@ -2918,19 +3232,8 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([cb2d527](https://
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated the test
|
||||
([a4b2b85](https://github.com/tj-actions/changed-files/commit/a4b2b85206a18f8aeac071e36a9fa8ed98e5b99a)) - (Tonye Jack)
|
||||
- Update README.md ([85bd869](https://github.com/tj-actions/changed-files/commit/85bd8694a9542eb133d15ef7598998ea1c2a312e)) - (Tonye Jack)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
- Enable debugging.
|
||||
([608b7f8](https://github.com/tj-actions/changed-files/commit/608b7f81dec8b4260a1d40179086c9d033542829)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update submodule ([adde7bb](https://github.com/tj-actions/changed-files/commit/adde7bbfea8fcba97d0f3d97ad57187a9f16dbbc)) - (Tonye Jack)
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded to v35.5.2 ([#977](https://github.com/tj-actions/changed-files/issues/977))
|
||||
@@ -2973,8 +3276,8 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([1a3ea1d](https://
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add support for excluding the top level directory ([#967](https://github.com/tj-actions/changed-files/issues/967)) ([08f351b](https://github.com/tj-actions/changed-files/commit/08f351ba1617550c70bdca44cc29a166152e2bd4)) - (Tonye Jack)
|
||||
- Add support for excluding the top level directory ([1982157](https://github.com/tj-actions/changed-files/commit/1982157b6c3cd3dae6ccce31fad0d2aec0784806)) - (Tonye Jack)
|
||||
- Add support for excluding the top level directory ([#967](https://github.com/tj-actions/changed-files/issues/967)) ([08f351b](https://github.com/tj-actions/changed-files/commit/08f351ba1617550c70bdca44cc29a166152e2bd4)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
@@ -3668,24 +3971,24 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([4f1ac05](https://
|
||||
- Update diff-sha.sh ([77fbd5a](https://github.com/tj-actions/changed-files/commit/77fbd5a18ca9469ad9045e05ddebb145d71cd248)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([aba4e57](https://github.com/tj-actions/changed-files/commit/aba4e5712baff31f62a76d7af30a3d2deb0db7cb)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([c3642c4](https://github.com/tj-actions/changed-files/commit/c3642c4a1c9a0bcca6ba9e9f87c4b2aeaba69035)) - (Tonye Jack)
|
||||
- Updated README.md
|
||||
([7e92962](https://github.com/tj-actions/changed-files/commit/7e929625a31237b91046d18b0a5b1e46e6de5949)) - (repo-ranger[bot])
|
||||
- Updated fetch branch
|
||||
([a4d22ac](https://github.com/tj-actions/changed-files/commit/a4d22acb209687e67dd7b2d83b963ac58dd0fb16)) - (Tonye Jack)
|
||||
- Updated to use git diff
|
||||
([477b380](https://github.com/tj-actions/changed-files/commit/477b3805799bb3f730bede86285a0362c52b87cf)) - (Tonye Jack)
|
||||
- Updated formatting
|
||||
([3a46c04](https://github.com/tj-actions/changed-files/commit/3a46c048f740ad95ae07e504970cc82864ac4891)) - (Tonye Jack)
|
||||
- Updated README.md
|
||||
([7e92962](https://github.com/tj-actions/changed-files/commit/7e929625a31237b91046d18b0a5b1e46e6de5949)) - (repo-ranger[bot])
|
||||
- Updated action
|
||||
([2cf3132](https://github.com/tj-actions/changed-files/commit/2cf3132a60db92dcc6da79b018ef27dc654a078a)) - (Tonye Jack)
|
||||
- Updated action
|
||||
([dc7365b](https://github.com/tj-actions/changed-files/commit/dc7365b27bcfaaf6c3f224f1c23a530d6404d439)) - (Tonye Jack)
|
||||
- Updated to use merge-base
|
||||
([ef8591d](https://github.com/tj-actions/changed-files/commit/ef8591de30d4dbf1ae8d2ec0c1c8d2f505c4aac3)) - (Tonye Jack)
|
||||
- Updated to use merge-base
|
||||
([f282e19](https://github.com/tj-actions/changed-files/commit/f282e19e523425ed86464aef10c890e6e583172c)) - (Tonye Jack)
|
||||
- Updated to use merge-base
|
||||
([a20b263](https://github.com/tj-actions/changed-files/commit/a20b263d03e128745ede721a7b7344f324251841)) - (Tonye Jack)
|
||||
- Updated action
|
||||
([2cf3132](https://github.com/tj-actions/changed-files/commit/2cf3132a60db92dcc6da79b018ef27dc654a078a)) - (Tonye Jack)
|
||||
- Updated action
|
||||
([dc7365b](https://github.com/tj-actions/changed-files/commit/dc7365b27bcfaaf6c3f224f1c23a530d6404d439)) - (Tonye Jack)
|
||||
- Update sync-release-version.yml ([33d8d67](https://github.com/tj-actions/changed-files/commit/33d8d674435b65785cb6d40b2346f90d2ba278e0)) - (Tonye Jack)
|
||||
- Updated README.md
|
||||
([02a5f95](https://github.com/tj-actions/changed-files/commit/02a5f95a79986344efc7e71aeed2fc1547066725)) - (jackton1)
|
||||
@@ -3723,8 +4026,8 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([4f1ac05](https://
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add support for dir_names_max_depth ([08d0ced](https://github.com/tj-actions/changed-files/commit/08d0cedfeaebcc4aaf7748d120e9ed3258d8487d)) - (Tonye Jack)
|
||||
- Replace all usage of nrwl/last-successful-commit-action with nrwl/nx-set-shas ([5abef67](https://github.com/tj-actions/changed-files/commit/5abef67e95d48a6d7148159da516d2e31c28c5f1)) - (Tonye Jack)
|
||||
- Add support for dir_names_max_depth ([08d0ced](https://github.com/tj-actions/changed-files/commit/08d0cedfeaebcc4aaf7748d120e9ed3258d8487d)) - (Tonye Jack)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
@@ -3849,6 +4152,9 @@ Signed-off-by: dependabot[bot] <support@github.com> ([f4f5512](https://github.co
|
||||
- Update README.md ([0265ed8](https://github.com/tj-actions/changed-files/commit/0265ed819d306225cb0c7bd3349b7449b69239bf)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([96ce8da](https://github.com/tj-actions/changed-files/commit/96ce8da4f680a4b2aa8292f77b6822205fb89b4a)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([2ed48aa](https://github.com/tj-actions/changed-files/commit/2ed48aa52fce4483eead4e3388844037d9f5c359)) - (Tonye Jack)
|
||||
- Updated README.md
|
||||
([1882e2f](https://github.com/tj-actions/changed-files/commit/1882e2f481ce0329747638d5b38b59318b71a1aa)) - (jackton1)
|
||||
- Update README.md ([0c4c0c4](https://github.com/tj-actions/changed-files/commit/0c4c0c47b84e7afc7a6a9a2b35b14e5f8164a80e)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([0efacab](https://github.com/tj-actions/changed-files/commit/0efacabbb5792e8411dd06aaf9b66a4c14b14442)) - (Tonye Jack)
|
||||
- Updated diff-sha.sh
|
||||
([61fac4d](https://github.com/tj-actions/changed-files/commit/61fac4da4baf4e41345262aed26ae7a7744dda33)) - (Tonye Jack)
|
||||
@@ -3857,9 +4163,6 @@ Signed-off-by: dependabot[bot] <support@github.com> ([f4f5512](https://github.co
|
||||
- Updated diff-sha.sh
|
||||
([30b9252](https://github.com/tj-actions/changed-files/commit/30b9252953b1451f1d0964e563f3440936a2a13f)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([3b10ceb](https://github.com/tj-actions/changed-files/commit/3b10cebd3dfde60872124e155e6072beee48cb44)) - (Tonye Jack)
|
||||
- Updated README.md
|
||||
([1882e2f](https://github.com/tj-actions/changed-files/commit/1882e2f481ce0329747638d5b38b59318b71a1aa)) - (jackton1)
|
||||
- Update README.md ([0c4c0c4](https://github.com/tj-actions/changed-files/commit/0c4c0c47b84e7afc7a6a9a2b35b14e5f8164a80e)) - (Tonye Jack)
|
||||
- Update action.yml ([fe3a370](https://github.com/tj-actions/changed-files/commit/fe3a37012f2aeb085358c28900539b133d2cdf4c)) - (Tonye Jack)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
@@ -4062,10 +4365,10 @@ Signed-off-by: dependabot[bot] <support@github.com> ([f4f5512](https://github.co
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md
|
||||
([307c115](https://github.com/tj-actions/changed-files/commit/307c11527a2b3628d3cf69c6e7f618dcb2b4c4d1)) - (jackton1)
|
||||
- Updated README.md
|
||||
([8c4057e](https://github.com/tj-actions/changed-files/commit/8c4057e25fae59ab12a1c926fc73578fca141408)) - (jackton1)
|
||||
- Updated README.md
|
||||
([307c115](https://github.com/tj-actions/changed-files/commit/307c11527a2b3628d3cf69c6e7f618dcb2b4c4d1)) - (jackton1)
|
||||
- Updated README.md
|
||||
([7a799a5](https://github.com/tj-actions/changed-files/commit/7a799a583efd08969d0b26803ae2b4c532e64f3c)) - (jackton1)
|
||||
- Update README.md ([eada320](https://github.com/tj-actions/changed-files/commit/eada3203b58d8421531b57420b7a8c821def1ee2)) - (Tonye Jack)
|
||||
@@ -4182,6 +4485,7 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
([7d07168](https://github.com/tj-actions/changed-files/commit/7d0716889bb9a0aa4c37a05f739fd66d6e130c04)) - (Tonye Jack)
|
||||
- Fixed test
|
||||
([61651ce](https://github.com/tj-actions/changed-files/commit/61651ceaa902cdad66fde5241109205ab06fa3e5)) - (Tonye Jack)
|
||||
- Including changed files from merge commits ([986dcdd](https://github.com/tj-actions/changed-files/commit/986dcdd05475172779ccab62712e532629985d25)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
@@ -4254,6 +4558,8 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
- Update diff-sha.sh ([4703a0c](https://github.com/tj-actions/changed-files/commit/4703a0ce803001e79c367a0cf1e58e1678dd76fd)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([4054514](https://github.com/tj-actions/changed-files/commit/40545148742e6c0d9e321a395f0b86e2f9be93e5)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([b9e70f7](https://github.com/tj-actions/changed-files/commit/b9e70f78217009b41c74da3b384c65f4ba7747e5)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([5716894](https://github.com/tj-actions/changed-files/commit/57168941b24e1c4ddb5247c7fc7336abe7dfeb6f)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([d3cd1f4](https://github.com/tj-actions/changed-files/commit/d3cd1f406f3863db7e9a181f7e7977cb375650af)) - (Tonye Jack)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
@@ -4264,8 +4570,10 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
- PR [#751](https://github.com/tj-actions/changed-files/pull/751): README.md ([984ab2b](https://github.com/tj-actions/changed-files/commit/984ab2b4b8f3419501599c46c022b96e9e8a3f2f)) - (Tonye Jack)
|
||||
- Merge branch 'main' into chore/update-test ([22c9314](https://github.com/tj-actions/changed-files/commit/22c9314c528178ac9ffa05415261871a40141d38)) - (Tonye Jack)
|
||||
- PR [#736](https://github.com/tj-actions/changed-files/pull/736): including changed files from merge commits, no merge-base found ([d96e4cf](https://github.com/tj-actions/changed-files/commit/d96e4cfa304ddecf500798084c7806f72056f3c5)) - (Tonye Jack)
|
||||
- Merge branch 'main' into chore/update-test ([b969806](https://github.com/tj-actions/changed-files/commit/b969806a43a3705e6960e76029bacb1106a2bf59)) - (Tonye Jack)
|
||||
- Merge branch 'main' into fix/including-changed-files-from-merge-commits ([2a5aadb](https://github.com/tj-actions/changed-files/commit/2a5aadbf48fb932c3ea58e5cf020d3ea3624bd19)) - (Tonye Jack)
|
||||
- Merge branch 'main' into fix/including-changed-files-from-merge-commits ([3fa5a82](https://github.com/tj-actions/changed-files/commit/3fa5a82cb1b4f30e63e9e980c526308d610c0fd2)) - (Tonye Jack)
|
||||
- Merge branch 'main' into fix/including-changed-files-from-merge-commits ([dedb632](https://github.com/tj-actions/changed-files/commit/dedb6325a880afe8a958493ea1eaaf2af8fe4256)) - (Tonye Jack)
|
||||
- Merge branch 'main' into chore/update-test ([b969806](https://github.com/tj-actions/changed-files/commit/b969806a43a3705e6960e76029bacb1106a2bf59)) - (Tonye Jack)
|
||||
- PR [#749](https://github.com/tj-actions/changed-files/pull/749): to v34.0.5 ([0f0e558](https://github.com/tj-actions/changed-files/commit/0f0e558289b6a64ae2cc62fcb4597251a7cf1bc4)) - (Tonye Jack)
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
@@ -4286,7 +4594,6 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
- PR [#748](https://github.com/tj-actions/changed-files/pull/748): ([1263363](https://github.com/tj-actions/changed-files/commit/12633630aba2ab48ec2ad8a3344dd736d61a7b89)) - (Tonye Jack)
|
||||
- Merge branch 'main' into fix/including-changed-files-from-merge-commits ([3fa5a82](https://github.com/tj-actions/changed-files/commit/3fa5a82cb1b4f30e63e9e980c526308d610c0fd2)) - (Tonye Jack)
|
||||
- PR [#745](https://github.com/tj-actions/changed-files/pull/745): ([58b52f3](https://github.com/tj-actions/changed-files/commit/58b52f3bf81ee4eeaf096bbaefe6415b85a706a0)) - (Tonye Jack)
|
||||
- PR [#744](https://github.com/tj-actions/changed-files/pull/744): to v34.0.3 ([2aafb8f](https://github.com/tj-actions/changed-files/commit/2aafb8f8d030cebfa1925581f05afcb8c4853eec)) - (Tonye Jack)
|
||||
|
||||
@@ -4323,15 +4630,9 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
|
||||
- Pull initial history ([e92598c](https://github.com/tj-actions/changed-files/commit/e92598caebc065f89ec98ca8be94f711f5a01b0b)) - (Tonye Jack)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- Including changed files from merge commits ([986dcdd](https://github.com/tj-actions/changed-files/commit/986dcdd05475172779ccab62712e532629985d25)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Update diff-sha.sh ([f1bc8b0](https://github.com/tj-actions/changed-files/commit/f1bc8b08922ee0b12090f4e8702dddebe0ea39b6)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([5716894](https://github.com/tj-actions/changed-files/commit/57168941b24e1c4ddb5247c7fc7336abe7dfeb6f)) - (Tonye Jack)
|
||||
- Update diff-sha.sh ([d3cd1f4](https://github.com/tj-actions/changed-files/commit/d3cd1f406f3863db7e9a181f7e7977cb375650af)) - (Tonye Jack)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
@@ -4339,13 +4640,11 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
- PR [#741](https://github.com/tj-actions/changed-files/pull/741): ([edd790e](https://github.com/tj-actions/changed-files/commit/edd790e0a848029b6744c21163afe7c8052aac81)) - (Tonye Jack)
|
||||
- PR [#739](https://github.com/tj-actions/changed-files/pull/739): ([c295a8a](https://github.com/tj-actions/changed-files/commit/c295a8af70d120708e68835febd9b6f669942303)) - (Tonye Jack)
|
||||
- Merge branch 'main' into chore/fixed-typo ([ae1ce4e](https://github.com/tj-actions/changed-files/commit/ae1ce4eb541d5404a80170aa877cb8d40977563a)) - (Tonye Jack)
|
||||
- Merge branch 'main' into fix/including-changed-files-from-merge-commits ([dedb632](https://github.com/tj-actions/changed-files/commit/dedb6325a880afe8a958493ea1eaaf2af8fe4256)) - (Tonye Jack)
|
||||
- PR [#734](https://github.com/tj-actions/changed-files/pull/734): to v34.0.2 ([c2547e2](https://github.com/tj-actions/changed-files/commit/c2547e29dd5947cf157ac5cfa38927929cf2c1b6)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update test increase max-parallel ([bc3236f](https://github.com/tj-actions/changed-files/commit/bc3236f03570ad4dacd2372444fbe7b98ccd6358)) - (Tonye Jack)
|
||||
- Fixed typo. ([23c0e1a](https://github.com/tj-actions/changed-files/commit/23c0e1a9b3c827f29926f4453ab153c41f93faa5)) - (Tonye Jack)
|
||||
- Update test ([#738](https://github.com/tj-actions/changed-files/issues/738)) ([b65bd34](https://github.com/tj-actions/changed-files/commit/b65bd345efd697c0d074d59c28090a1e9f21d5ec)) - (Tonye Jack)
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
@@ -4392,6 +4691,7 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
- Fix detecting changes with the first PR commit ([3c4becd](https://github.com/tj-actions/changed-files/commit/3c4becd315288285b23f2de8901d57dc1b8e9041)) - (Tonye Jack)
|
||||
- Update docs ([a5be4dd](https://github.com/tj-actions/changed-files/commit/a5be4ddc74262f1bec4cfbed2bb085ae3288a0e8)) - (Tonye Jack)
|
||||
- Update debug message ([983dfd7](https://github.com/tj-actions/changed-files/commit/983dfd764c1f6a61ee8003968e2407b032ac695c)) - (Tonye Jack)
|
||||
- Fixed typo. ([23c0e1a](https://github.com/tj-actions/changed-files/commit/23c0e1a9b3c827f29926f4453ab153c41f93faa5)) - (Tonye Jack)
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
@@ -4629,11 +4929,11 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
([b14b0a1](https://github.com/tj-actions/changed-files/commit/b14b0a186c6eddbb4797d24ac258105ef31846b1)) - (jackton1)
|
||||
- Updated README.md
|
||||
([5c8fbba](https://github.com/tj-actions/changed-files/commit/5c8fbbaf2050375c1c12d3e8ff59bd6b1fc32c3a)) - (jackton1)
|
||||
- Update README.md ([5b1a2fe](https://github.com/tj-actions/changed-files/commit/5b1a2fe1bf166d9debffdba52a982218ebc81632)) - (Tonye Jack)
|
||||
- Updated the log message
|
||||
([5cd49f8](https://github.com/tj-actions/changed-files/commit/5cd49f8c2dd62a94af6c49e7f8a49669a06434b6)) - (Tonye Jack)
|
||||
- Updated test step name.
|
||||
([2740f4f](https://github.com/tj-actions/changed-files/commit/2740f4ff1f2105e1ee517221d96a29d1aadfb938)) - (Tonye Jack)
|
||||
- Update README.md ([5b1a2fe](https://github.com/tj-actions/changed-files/commit/5b1a2fe1bf166d9debffdba52a982218ebc81632)) - (Tonye Jack)
|
||||
- Updated README.md
|
||||
([316681c](https://github.com/tj-actions/changed-files/commit/316681cafb4ca00b7f2dcd328fce51f9a101a053)) - (Tonye Jack)
|
||||
|
||||
@@ -4648,8 +4948,6 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
- PR [#679](https://github.com/tj-actions/changed-files/pull/679): ([291d397](https://github.com/tj-actions/changed-files/commit/291d397b90c862b8ca55c0353598a25066f44c99)) - (Tonye Jack)
|
||||
- Merge branch 'set-output-github-output' of github.com:lpulley/changed-files into set-output-github-output
|
||||
([1ced186](https://github.com/tj-actions/changed-files/commit/1ced186070143fc2f3a64edb61bab69b5f57d47c)) - (Logan Pulley)
|
||||
- Use cat instead of echo
|
||||
([dd92102](https://github.com/tj-actions/changed-files/commit/dd9210256d1f7d872ab26bec97baf63ca3b21221)) - (Logan Pulley)
|
||||
- Merge branch 'main' into set-output-github-output ([be3cb7b](https://github.com/tj-actions/changed-files/commit/be3cb7b5aaa31e88f0513b29d77a99bc7a781ad3)) - (Logan Pulley)
|
||||
- PR [#684](https://github.com/tj-actions/changed-files/pull/684): ([bea18dd](https://github.com/tj-actions/changed-files/commit/bea18ddafc710bc95b35f48ac8d18c51a90f69fd)) - (Tonye Jack)
|
||||
- PR [#682](https://github.com/tj-actions/changed-files/pull/682): ([8c6e3fe](https://github.com/tj-actions/changed-files/commit/8c6e3fef179f560ef925b15ba5d2c189bdc37af4)) - (Tonye Jack)
|
||||
@@ -4657,10 +4955,12 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
- PR [#681](https://github.com/tj-actions/changed-files/pull/681): ([bc00134](https://github.com/tj-actions/changed-files/commit/bc00134c625e1b55961b1bf833cdd7cca76bdbd0)) - (Tonye Jack)
|
||||
- Merge branch 'main' into fix/668-bug-new-commits-pushed-to-the-base-branch-results-in-errors-when-shallow-history-is-used ([7ed7f59](https://github.com/tj-actions/changed-files/commit/7ed7f59ca23938e6184feceade5e8eccba7481af)) - (Tonye Jack)
|
||||
- Merge branch 'main' into fix/668-bug-new-commits-pushed-to-the-base-branch-results-in-errors-when-shallow-history-is-used ([a0f6ff4](https://github.com/tj-actions/changed-files/commit/a0f6ff42fa99b8a0f993fe1310e54603d78e97cc)) - (Tonye Jack)
|
||||
- Use cat instead of echo
|
||||
([dd92102](https://github.com/tj-actions/changed-files/commit/dd9210256d1f7d872ab26bec97baf63ca3b21221)) - (Logan Pulley)
|
||||
- Merge branch 'main' into set-output-github-output ([3750c53](https://github.com/tj-actions/changed-files/commit/3750c5302c5d8b4a34d7ebaed92ba36fec308d1b)) - (Logan Pulley)
|
||||
- PR [#680](https://github.com/tj-actions/changed-files/pull/680): to v32.0.1 ([235f028](https://github.com/tj-actions/changed-files/commit/235f02844b14a7500f8eb63acc76466d4224a628)) - (Tonye Jack)
|
||||
- Combine repeated echos
|
||||
([a299058](https://github.com/tj-actions/changed-files/commit/a299058164ca28b468d7205c3dc308a871a5e08e)) - (Logan Pulley)
|
||||
- PR [#680](https://github.com/tj-actions/changed-files/pull/680): to v32.0.1 ([235f028](https://github.com/tj-actions/changed-files/commit/235f02844b14a7500f8eb63acc76466d4224a628)) - (Tonye Jack)
|
||||
- Double-quote `$GITHUB_OUTPUT`
|
||||
([c8b8b3c](https://github.com/tj-actions/changed-files/commit/c8b8b3cadfd0927ca66d0809d4ba0a250a33d584)) - (Logan Pulley)
|
||||
- Use `>>$GITHUB_OUTPUT` instead of `::set-output`
|
||||
@@ -4755,8 +5055,8 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
|
||||
- Remove redundant since last remote input ([f588e17](https://github.com/tj-actions/changed-files/commit/f588e17a5b5e157ebe9d1b3b04e2467127a5c8e1)) - (Tonye Jack)
|
||||
- Fixed test ([8b5e11a](https://github.com/tj-actions/changed-files/commit/8b5e11a2b12c819b473bdbe7a2a46bd72c287886)) - (Tonye Jack)
|
||||
- Update docs ([234951f](https://github.com/tj-actions/changed-files/commit/234951f19b3e51e9260f3bd2cdec096161213210)) - (Tonye Jack)
|
||||
- Fix bug with base sha ([02c9951](https://github.com/tj-actions/changed-files/commit/02c995141e6b4c7382c598175282f60b93b6b352)) - (Tonye Jack)
|
||||
- Update docs ([234951f](https://github.com/tj-actions/changed-files/commit/234951f19b3e51e9260f3bd2cdec096161213210)) - (Tonye Jack)
|
||||
- Dump github context ([e73ff65](https://github.com/tj-actions/changed-files/commit/e73ff653816c9dc23c55406558b91164480e444c)) - (Tonye Jack)
|
||||
- Test using non ascii characters in files input ([2b7a7f9](https://github.com/tj-actions/changed-files/commit/2b7a7f90b7a270746bddc571edf4d01138c9109a)) - (Tonye Jack)
|
||||
|
||||
@@ -5138,7 +5438,6 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
([b192991](https://github.com/tj-actions/changed-files/commit/b1929916faf2aff6891e875744740e36b23b8944)) - (Tonye Jack)
|
||||
- Fixed bug with pattern matching.
|
||||
([646144d](https://github.com/tj-actions/changed-files/commit/646144ddf8992a89eaa3a29705fdae54d38779f0)) - (Tonye Jack)
|
||||
- Bug with dir name ([6aa0ae3](https://github.com/tj-actions/changed-files/commit/6aa0ae3b2cc6584d358fe8609d82c37bf306db2c)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
@@ -5164,6 +5463,10 @@ Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.
|
||||
|
||||
# [29.0.0](https://github.com/tj-actions/changed-files/compare/v28.0.0...v29.0.0) - (2022-08-23)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- Bug with dir name ([6aa0ae3](https://github.com/tj-actions/changed-files/commit/6aa0ae3b2cc6584d358fe8609d82c37bf306db2c)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Update test.yml ([4ae6f80](https://github.com/tj-actions/changed-files/commit/4ae6f80c0f3c44d2dddcc5590b448160df1b2697)) - (Tonye Jack)
|
||||
@@ -5615,10 +5918,16 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([8373ec9](https://
|
||||
|
||||
# [19.3](https://github.com/tj-actions/changed-files/compare/v19.2...v19.3) - (2022-05-14)
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add support for listing renames. ([c004907](https://github.com/tj-actions/changed-files/commit/c004907b7600ddf4d9e06a8c7ff7e32566bad269)) - (Tonye Jack)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- Fixed test.
|
||||
([939ae1b](https://github.com/tj-actions/changed-files/commit/939ae1be50bbdf8e0807de7ff54369c3d810496f)) - (Tonye Jack)
|
||||
- Fixed test.
|
||||
([c69f784](https://github.com/tj-actions/changed-files/commit/c69f784c4f2251b496fbd606323503c522fa681b)) - (Tonye Jack)
|
||||
|
||||
## <!-- 11 -->⏪ Reverts
|
||||
|
||||
@@ -5635,6 +5944,14 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([8373ec9](https://
|
||||
([fd30e95](https://github.com/tj-actions/changed-files/commit/fd30e95c05a3a33d8bb4620924975dce0e126aff)) - (Tonye Jack)
|
||||
- Added a test file.
|
||||
([3e205d2](https://github.com/tj-actions/changed-files/commit/3e205d23e0a6bb3706e5c29265cc4c675fc999c5)) - (Tonye Jack)
|
||||
- Added get_renames function
|
||||
([e42d2fc](https://github.com/tj-actions/changed-files/commit/e42d2fcf7782c82fb36aa9a3baf2138a8b858d1a)) - (Tonye Jack)
|
||||
- Added test-rename.txt
|
||||
([070aa8a](https://github.com/tj-actions/changed-files/commit/070aa8aaf95b144eae63a7120e1adec29e18b05e)) - (Tonye Jack)
|
||||
- Added support for returning old and new names of renamed files
|
||||
([5f40fac](https://github.com/tj-actions/changed-files/commit/5f40fac43ce1ecb5a712a5406edaf5549e37403e)) - (Tonye Jack)
|
||||
- Added a test file.
|
||||
([562c86f](https://github.com/tj-actions/changed-files/commit/562c86f382bfa2e340444665f317f72fefa6aca0)) - (Tonye Jack)
|
||||
|
||||
## <!-- 18 -->📝 Rename
|
||||
|
||||
@@ -5656,96 +5973,6 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([8373ec9](https://
|
||||
([9dcecf7](https://github.com/tj-actions/changed-files/commit/9dcecf749d5a3eb8271e23fb248a1f053058edab)) - (Tonye Jack)
|
||||
- Renamed test-renamed.txt -> test-rename-1.txt
|
||||
([67e0fe5](https://github.com/tj-actions/changed-files/commit/67e0fe5e75c8a8599399edd5b87b44ee73b22c86)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md
|
||||
([0a05f63](https://github.com/tj-actions/changed-files/commit/0a05f634b66807d56192d297bad5343b5e45f3c2)) - (jackton1)
|
||||
- Updated test
|
||||
([4b7f83f](https://github.com/tj-actions/changed-files/commit/4b7f83fb7a374664a03b240313aeb11d81940c4e)) - (Tonye Jack)
|
||||
- Updated docs and fixed bug with old new files list
|
||||
([4238332](https://github.com/tj-actions/changed-files/commit/423833260b47c360c6b392b096292926b3867a26)) - (Tonye Jack)
|
||||
- Updated description.
|
||||
([fbb03cc](https://github.com/tj-actions/changed-files/commit/fbb03cca8456584de1fe7445f0a4eac1f25ec8ae)) - (Tonye Jack)
|
||||
- Updated test.yml
|
||||
([7f7bafe](https://github.com/tj-actions/changed-files/commit/7f7bafe37a65ed2359e60cbe2573d28b4deba260)) - (Tonye Jack)
|
||||
- Updated entrypoint.sh
|
||||
([ed9e4be](https://github.com/tj-actions/changed-files/commit/ed9e4befd610390e37608235c4f46a7134ddbda2)) - (Tonye Jack)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
- PR [#487](https://github.com/tj-actions/changed-files/pull/487): ([e55f7fb](https://github.com/tj-actions/changed-files/commit/e55f7fb99e90111108bc24d3f14156b06ab6a12c)) - (Tonye Jack)
|
||||
- Merge branch 'main' into upgrade-to-v19.2 ([9151ce8](https://github.com/tj-actions/changed-files/commit/9151ce890a48e8626fb4c13b5e985123972bd165)) - (Tonye Jack)
|
||||
- PR [#488](https://github.com/tj-actions/changed-files/pull/488): ([2258755](https://github.com/tj-actions/changed-files/commit/225875592f206c3489927fed8fb8053a5974262f)) - (Tonye Jack)
|
||||
- Merge branch 'main' into fix/bug-with-renames ([4a7ed1c](https://github.com/tj-actions/changed-files/commit/4a7ed1cd688fbab227c222fc686fbae9eced9565)) - (Tonye Jack)
|
||||
- Merge branch 'main' into feat/add-support-for-retrieving-old-and-new-names-of-renamed-files
|
||||
([cce5bff](https://github.com/tj-actions/changed-files/commit/cce5bff7c05227dd820f9f2f17272701cb5735a7)) - (Tonye Jack)
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded from v19.1 -> v19.2
|
||||
([b6d9173](https://github.com/tj-actions/changed-files/commit/b6d9173b6b227afd847e9301077b8450f31038b0)) - (jackton1)
|
||||
|
||||
# [19.2](https://github.com/tj-actions/changed-files/compare/v19.1...v19.2) - (2022-05-14)
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add support for listing renames. ([f1a01ff](https://github.com/tj-actions/changed-files/commit/f1a01ff091fb1c66e4d984fa0b6d73667552ee84)) - (Tonye Jack)
|
||||
- Added support for returning old and new names of renamed files ([#483](https://github.com/tj-actions/changed-files/issues/483)) ([3baba75](https://github.com/tj-actions/changed-files/commit/3baba755794f9583e433f7f64200ca7540198fc1)) - (Tonye Jack)
|
||||
- Add support for listing renames. ([c004907](https://github.com/tj-actions/changed-files/commit/c004907b7600ddf4d9e06a8c7ff7e32566bad269)) - (Tonye Jack)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- Fixed test.
|
||||
([7a19e1f](https://github.com/tj-actions/changed-files/commit/7a19e1f563c45b97f72f2de02c4e48657d043bce)) - (Tonye Jack)
|
||||
- Fixed test.
|
||||
([c69f784](https://github.com/tj-actions/changed-files/commit/c69f784c4f2251b496fbd606323503c522fa681b)) - (Tonye Jack)
|
||||
|
||||
## <!-- 11 -->⏪ Reverts
|
||||
|
||||
- Revert "feat: Added support for returning old and new names of renamed files" ([#485](https://github.com/tj-actions/changed-files/issues/485))
|
||||
|
||||
([0093196](https://github.com/tj-actions/changed-files/commit/0093196671172756e7facde8b01c10fe420f8807)) - (Tonye Jack)
|
||||
|
||||
## <!-- 16 -->➕ Add
|
||||
|
||||
- Added get_renames function
|
||||
([6655125](https://github.com/tj-actions/changed-files/commit/6655125c375e25e3ddcf2a19c6ae780459d1cdc0)) - (Tonye Jack)
|
||||
- Added test-rename.txt
|
||||
([c91875f](https://github.com/tj-actions/changed-files/commit/c91875f5c7c83154c7eb0f7179684d494530b29d)) - (Tonye Jack)
|
||||
- Added support for returning old and new names of renamed files
|
||||
([c65a184](https://github.com/tj-actions/changed-files/commit/c65a184a68f0ac8ebc63549638d007282f4106a8)) - (Tonye Jack)
|
||||
- Added a test file.
|
||||
([a47fe7c](https://github.com/tj-actions/changed-files/commit/a47fe7c04353cefbd7e6da3e28e6abf91f375bcb)) - (Tonye Jack)
|
||||
- Added get_renames function
|
||||
([e42d2fc](https://github.com/tj-actions/changed-files/commit/e42d2fcf7782c82fb36aa9a3baf2138a8b858d1a)) - (Tonye Jack)
|
||||
- Added test-rename.txt
|
||||
([070aa8a](https://github.com/tj-actions/changed-files/commit/070aa8aaf95b144eae63a7120e1adec29e18b05e)) - (Tonye Jack)
|
||||
- Added support for returning old and new names of renamed files
|
||||
([5f40fac](https://github.com/tj-actions/changed-files/commit/5f40fac43ce1ecb5a712a5406edaf5549e37403e)) - (Tonye Jack)
|
||||
- Added a test file.
|
||||
([562c86f](https://github.com/tj-actions/changed-files/commit/562c86f382bfa2e340444665f317f72fefa6aca0)) - (Tonye Jack)
|
||||
|
||||
## <!-- 18 -->📝 Rename
|
||||
|
||||
- Renamed output.
|
||||
([ce04a71](https://github.com/tj-actions/changed-files/commit/ce04a71447362a550c0f3cf64fbf2bea03c6c20a)) - (Tonye Jack)
|
||||
- Renamed files.
|
||||
([4f723c8](https://github.com/tj-actions/changed-files/commit/4f723c8a08e68c97743541cd399dfdad302150d6)) - (Tonye Jack)
|
||||
- Renamed test/test rename 2.txt -> test/test rename-2.txt
|
||||
([33a8d42](https://github.com/tj-actions/changed-files/commit/33a8d4202a8087f12921928f273011608a80ebe9)) - (Tonye Jack)
|
||||
- Renamed test/test rename 1.txt -> test/test rename-1.txt
|
||||
([915804c](https://github.com/tj-actions/changed-files/commit/915804c2500922d5b59579ab0e21720b82c9a7ac)) - (Tonye Jack)
|
||||
- Renamed test files.
|
||||
([7d223a4](https://github.com/tj-actions/changed-files/commit/7d223a463850b6d6e286dbac755410937e089966)) - (Tonye Jack)
|
||||
- Renamed test/test-rename-2.txt -> test/test rename-2.txt
|
||||
([c632bba](https://github.com/tj-actions/changed-files/commit/c632bba0e4f10785962cba4d9e45ac24b25c4122)) - (Tonye Jack)
|
||||
- Renamed test/test-rename-1.txt -> test/test rename-1.txt
|
||||
([ac7e9e7](https://github.com/tj-actions/changed-files/commit/ac7e9e740966216f3874cdaccebd41e7a0501f92)) - (Tonye Jack)
|
||||
- Renamed test/test-rename.txt -> test/test-rename-2.txt
|
||||
([1b9b564](https://github.com/tj-actions/changed-files/commit/1b9b564b1b6a16eae417aaf38c2ea47fdcf35145)) - (Tonye Jack)
|
||||
- Renamed test-renamed.txt -> test-rename-1.txt
|
||||
([9ee57c0](https://github.com/tj-actions/changed-files/commit/9ee57c08714dc9cd44612c0ac26f3f647c4fc311)) - (Tonye Jack)
|
||||
- Renamed output.
|
||||
([b60efcf](https://github.com/tj-actions/changed-files/commit/b60efcf625f7d808d6d95840a8f4fe3486fc8396)) - (Tonye Jack)
|
||||
- Renamed files.
|
||||
@@ -5767,6 +5994,95 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([8373ec9](https://
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md
|
||||
([0a05f63](https://github.com/tj-actions/changed-files/commit/0a05f634b66807d56192d297bad5343b5e45f3c2)) - (jackton1)
|
||||
- Updated test
|
||||
([4b7f83f](https://github.com/tj-actions/changed-files/commit/4b7f83fb7a374664a03b240313aeb11d81940c4e)) - (Tonye Jack)
|
||||
- Updated docs and fixed bug with old new files list
|
||||
([4238332](https://github.com/tj-actions/changed-files/commit/423833260b47c360c6b392b096292926b3867a26)) - (Tonye Jack)
|
||||
- Updated description.
|
||||
([fbb03cc](https://github.com/tj-actions/changed-files/commit/fbb03cca8456584de1fe7445f0a4eac1f25ec8ae)) - (Tonye Jack)
|
||||
- Updated test.yml
|
||||
([7f7bafe](https://github.com/tj-actions/changed-files/commit/7f7bafe37a65ed2359e60cbe2573d28b4deba260)) - (Tonye Jack)
|
||||
- Updated entrypoint.sh
|
||||
([ed9e4be](https://github.com/tj-actions/changed-files/commit/ed9e4befd610390e37608235c4f46a7134ddbda2)) - (Tonye Jack)
|
||||
- Updated test
|
||||
([044773f](https://github.com/tj-actions/changed-files/commit/044773f27a01168b3da6560145085f2e752f4366)) - (Tonye Jack)
|
||||
- Updated docs and fixed bug with old new files list
|
||||
([d1c0ee4](https://github.com/tj-actions/changed-files/commit/d1c0ee4e67338c2c3e50a08b6156ab8c155be21c)) - (Tonye Jack)
|
||||
- Updated description.
|
||||
([12bb701](https://github.com/tj-actions/changed-files/commit/12bb70106645fe01d58a0d582d5e293a0438a668)) - (Tonye Jack)
|
||||
- Updated test.yml
|
||||
([020ae64](https://github.com/tj-actions/changed-files/commit/020ae6440a88da139e8737695e27e06029274dd4)) - (Tonye Jack)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
- PR [#487](https://github.com/tj-actions/changed-files/pull/487): ([e55f7fb](https://github.com/tj-actions/changed-files/commit/e55f7fb99e90111108bc24d3f14156b06ab6a12c)) - (Tonye Jack)
|
||||
- Merge branch 'main' into upgrade-to-v19.2 ([9151ce8](https://github.com/tj-actions/changed-files/commit/9151ce890a48e8626fb4c13b5e985123972bd165)) - (Tonye Jack)
|
||||
- PR [#488](https://github.com/tj-actions/changed-files/pull/488): ([2258755](https://github.com/tj-actions/changed-files/commit/225875592f206c3489927fed8fb8053a5974262f)) - (Tonye Jack)
|
||||
- Merge branch 'main' into fix/bug-with-renames ([4a7ed1c](https://github.com/tj-actions/changed-files/commit/4a7ed1cd688fbab227c222fc686fbae9eced9565)) - (Tonye Jack)
|
||||
- Merge branch 'main' into feat/add-support-for-retrieving-old-and-new-names-of-renamed-files
|
||||
([cce5bff](https://github.com/tj-actions/changed-files/commit/cce5bff7c05227dd820f9f2f17272701cb5735a7)) - (Tonye Jack)
|
||||
- Reformatted table
|
||||
([a968e74](https://github.com/tj-actions/changed-files/commit/a968e7411691e11ac6cdcbacedbda6b5e8f0b8e6)) - (Tonye Jack)
|
||||
|
||||
## <!-- 9 -->⬆️ Upgrades
|
||||
|
||||
- Upgraded from v19.1 -> v19.2
|
||||
([b6d9173](https://github.com/tj-actions/changed-files/commit/b6d9173b6b227afd847e9301077b8450f31038b0)) - (jackton1)
|
||||
|
||||
# [19.2](https://github.com/tj-actions/changed-files/compare/v19.1...v19.2) - (2022-05-14)
|
||||
|
||||
## <!-- 0 -->🚀 Features
|
||||
|
||||
- Add support for listing renames. ([f1a01ff](https://github.com/tj-actions/changed-files/commit/f1a01ff091fb1c66e4d984fa0b6d73667552ee84)) - (Tonye Jack)
|
||||
- Added support for returning old and new names of renamed files ([#483](https://github.com/tj-actions/changed-files/issues/483)) ([3baba75](https://github.com/tj-actions/changed-files/commit/3baba755794f9583e433f7f64200ca7540198fc1)) - (Tonye Jack)
|
||||
|
||||
## <!-- 1 -->🐛 Bug Fixes
|
||||
|
||||
- Fixed test.
|
||||
([7a19e1f](https://github.com/tj-actions/changed-files/commit/7a19e1f563c45b97f72f2de02c4e48657d043bce)) - (Tonye Jack)
|
||||
|
||||
## <!-- 11 -->⏪ Reverts
|
||||
|
||||
- Revert "feat: Added support for returning old and new names of renamed files" ([#485](https://github.com/tj-actions/changed-files/issues/485))
|
||||
|
||||
([0093196](https://github.com/tj-actions/changed-files/commit/0093196671172756e7facde8b01c10fe420f8807)) - (Tonye Jack)
|
||||
|
||||
## <!-- 16 -->➕ Add
|
||||
|
||||
- Added get_renames function
|
||||
([6655125](https://github.com/tj-actions/changed-files/commit/6655125c375e25e3ddcf2a19c6ae780459d1cdc0)) - (Tonye Jack)
|
||||
- Added test-rename.txt
|
||||
([c91875f](https://github.com/tj-actions/changed-files/commit/c91875f5c7c83154c7eb0f7179684d494530b29d)) - (Tonye Jack)
|
||||
- Added support for returning old and new names of renamed files
|
||||
([c65a184](https://github.com/tj-actions/changed-files/commit/c65a184a68f0ac8ebc63549638d007282f4106a8)) - (Tonye Jack)
|
||||
- Added a test file.
|
||||
([a47fe7c](https://github.com/tj-actions/changed-files/commit/a47fe7c04353cefbd7e6da3e28e6abf91f375bcb)) - (Tonye Jack)
|
||||
|
||||
## <!-- 18 -->📝 Rename
|
||||
|
||||
- Renamed output.
|
||||
([ce04a71](https://github.com/tj-actions/changed-files/commit/ce04a71447362a550c0f3cf64fbf2bea03c6c20a)) - (Tonye Jack)
|
||||
- Renamed files.
|
||||
([4f723c8](https://github.com/tj-actions/changed-files/commit/4f723c8a08e68c97743541cd399dfdad302150d6)) - (Tonye Jack)
|
||||
- Renamed test/test rename 2.txt -> test/test rename-2.txt
|
||||
([33a8d42](https://github.com/tj-actions/changed-files/commit/33a8d4202a8087f12921928f273011608a80ebe9)) - (Tonye Jack)
|
||||
- Renamed test/test rename 1.txt -> test/test rename-1.txt
|
||||
([915804c](https://github.com/tj-actions/changed-files/commit/915804c2500922d5b59579ab0e21720b82c9a7ac)) - (Tonye Jack)
|
||||
- Renamed test files.
|
||||
([7d223a4](https://github.com/tj-actions/changed-files/commit/7d223a463850b6d6e286dbac755410937e089966)) - (Tonye Jack)
|
||||
- Renamed test/test-rename-2.txt -> test/test rename-2.txt
|
||||
([c632bba](https://github.com/tj-actions/changed-files/commit/c632bba0e4f10785962cba4d9e45ac24b25c4122)) - (Tonye Jack)
|
||||
- Renamed test/test-rename-1.txt -> test/test rename-1.txt
|
||||
([ac7e9e7](https://github.com/tj-actions/changed-files/commit/ac7e9e740966216f3874cdaccebd41e7a0501f92)) - (Tonye Jack)
|
||||
- Renamed test/test-rename.txt -> test/test-rename-2.txt
|
||||
([1b9b564](https://github.com/tj-actions/changed-files/commit/1b9b564b1b6a16eae417aaf38c2ea47fdcf35145)) - (Tonye Jack)
|
||||
- Renamed test-renamed.txt -> test-rename-1.txt
|
||||
([9ee57c0](https://github.com/tj-actions/changed-files/commit/9ee57c08714dc9cd44612c0ac26f3f647c4fc311)) - (Tonye Jack)
|
||||
|
||||
## <!-- 26 -->🔄 Update
|
||||
|
||||
- Updated README.md
|
||||
([07b38ce](https://github.com/tj-actions/changed-files/commit/07b38ce1a17c46f1d0eb1150c8a33f703d473262)) - (jackton1)
|
||||
- Updated test
|
||||
@@ -5777,21 +6093,8 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([8373ec9](https://
|
||||
([8ee5785](https://github.com/tj-actions/changed-files/commit/8ee5785691f17da7ce30330db867d75279250998)) - (Tonye Jack)
|
||||
- Updated test.yml
|
||||
([8567a10](https://github.com/tj-actions/changed-files/commit/8567a10991ed7d6ed8c85ce1669be4298199198d)) - (Tonye Jack)
|
||||
- Updated test
|
||||
([044773f](https://github.com/tj-actions/changed-files/commit/044773f27a01168b3da6560145085f2e752f4366)) - (Tonye Jack)
|
||||
- Updated docs and fixed bug with old new files list
|
||||
([d1c0ee4](https://github.com/tj-actions/changed-files/commit/d1c0ee4e67338c2c3e50a08b6156ab8c155be21c)) - (Tonye Jack)
|
||||
- Updated description.
|
||||
([12bb701](https://github.com/tj-actions/changed-files/commit/12bb70106645fe01d58a0d582d5e293a0438a668)) - (Tonye Jack)
|
||||
- Updated test.yml
|
||||
([020ae64](https://github.com/tj-actions/changed-files/commit/020ae6440a88da139e8737695e27e06029274dd4)) - (Tonye Jack)
|
||||
- Update README.md ([1e1e79b](https://github.com/tj-actions/changed-files/commit/1e1e79beb1b197de84830b3a489f3dfae10864bc)) - (Tonye Jack)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
- Reformatted table
|
||||
([a968e74](https://github.com/tj-actions/changed-files/commit/a968e7411691e11ac6cdcbacedbda6b5e8f0b8e6)) - (Tonye Jack)
|
||||
|
||||
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||
|
||||
- Update the exit status when ([931aafa](https://github.com/tj-actions/changed-files/commit/931aafa07905dfc588a2f068d2a4b7c60b22a0ff)) - (Tonye Jack)
|
||||
@@ -7808,6 +8111,14 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([4960867](https://
|
||||
- Updated .github/workflows/auto-merge.yml ([67bbc48](https://github.com/tj-actions/changed-files/commit/67bbc48934db0b2a6bdbbdcf76f6e111853823d4)) - (Tonye Jack)
|
||||
- Update README.md ([c7b18db](https://github.com/tj-actions/changed-files/commit/c7b18dbe145e56136c49f7f8f7ba02669205c9cd)) - (Tonye Jack)
|
||||
|
||||
## <!-- 29 -->👷 CI/CD
|
||||
|
||||
- Make the changes between two commits more explicit ([#92](https://github.com/tj-actions/changed-files/issues/92))
|
||||
|
||||
* Make explicit the changes between two commits
|
||||
|
||||
* Add GITHUB_SHA support ([f32b39d](https://github.com/tj-actions/changed-files/commit/f32b39dc362412470a001f5b2e972015afc0e6ca)) - (Nick Landers)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
- Clean up debug message ([#93](https://github.com/tj-actions/changed-files/issues/93))
|
||||
@@ -7815,11 +8126,6 @@ Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([4960867](https://
|
||||
* Clean up debug message
|
||||
|
||||
* Update entrypoint.sh ([15b1769](https://github.com/tj-actions/changed-files/commit/15b1769fc52da64fe168a41ccb01c48b27687149)) - (Tonye Jack)
|
||||
- Make the changes between two commits more explicit ([#92](https://github.com/tj-actions/changed-files/issues/92))
|
||||
|
||||
* Make explicit the changes between two commits
|
||||
|
||||
* Add GITHUB_SHA support ([f32b39d](https://github.com/tj-actions/changed-files/commit/f32b39dc362412470a001f5b2e972015afc0e6ca)) - (Nick Landers)
|
||||
- Punctuation ([#90](https://github.com/tj-actions/changed-files/issues/90))
|
||||
|
||||
([a0682a8](https://github.com/tj-actions/changed-files/commit/a0682a82458b73686740f8dbbee27461210b6073)) - (Josh Soref)
|
||||
@@ -8212,10 +8518,13 @@ Signed-off-by: dependabot[bot] <support@github.com> ([1429c1a](https://github.co
|
||||
- Update README.md ([e6d9964](https://github.com/tj-actions/changed-files/commit/e6d9964230cd7c673698c9402ea65a6ec1134d4c)) - (Tonye Jack)
|
||||
- Update README.md ([177ed75](https://github.com/tj-actions/changed-files/commit/177ed75445e9aadc9845bfa9aad42ee21fd030e8)) - (Tonye Jack)
|
||||
|
||||
## <!-- 29 -->👷 CI/CD
|
||||
|
||||
- [WIP] Add support to filter only specific files ([4324557](https://github.com/tj-actions/changed-files/commit/43245574e6ad9f421b037c092cee2fdc28bf2c5d)) - (Tonye Jack)
|
||||
|
||||
## <!-- 30 -->📝 Other
|
||||
|
||||
- PR [#31](https://github.com/tj-actions/changed-files/pull/31): ([fcb2ab8](https://github.com/tj-actions/changed-files/commit/fcb2ab8c32c2b66fdf94ab3deede353f8fe6f77c)) - (Tonye Jack)
|
||||
- [WIP] Add support to filter only specific files ([4324557](https://github.com/tj-actions/changed-files/commit/43245574e6ad9f421b037c092cee2fdc28bf2c5d)) - (Tonye Jack)
|
||||
- PR [#30](https://github.com/tj-actions/changed-files/pull/30): tj-actions/sync-release-version from v8 to v8.5 ([a9b4a37](https://github.com/tj-actions/changed-files/commit/a9b4a3786b453890d9f814e13c68c675f23f6590)) - (Tonye Jack)
|
||||
- PR [#29](https://github.com/tj-actions/changed-files/pull/29): to GitHub-native Dependabot ([678cfad](https://github.com/tj-actions/changed-files/commit/678cfad1aff7205a87a5cf036632371cdb0222eb)) - (Tonye Jack)
|
||||
- PR [#25](https://github.com/tj-actions/changed-files/pull/25): README.md ([c7d680f](https://github.com/tj-actions/changed-files/commit/c7d680f31bc8da3e45a4316808905ad0be624cef)) - (Tonye Jack)
|
||||
@@ -8387,17 +8696,17 @@ Signed-off-by: dependabot[bot] <support@github.com> ([1429c1a](https://github.co
|
||||
- Update test.yml ([122b223](https://github.com/tj-actions/changed-files/commit/122b223c048710588250ce283e4b10f34f7b97ce)) - (Tonye Jack)
|
||||
- Update test.yml ([78d6add](https://github.com/tj-actions/changed-files/commit/78d6add10dc39ce60f3977239e475e92636ada02)) - (Tonye Jack)
|
||||
- Update test.yml ([ca86f77](https://github.com/tj-actions/changed-files/commit/ca86f773268c91c7737b884e179950c410457106)) - (Tonye Jack)
|
||||
- Update test.yml ([1c5a341](https://github.com/tj-actions/changed-files/commit/1c5a3415f385a48ab07412485dbd89792105cc93)) - (Tonye Jack)
|
||||
- Update test.yml ([4883588](https://github.com/tj-actions/changed-files/commit/48835883f9ff4fb81ab3f379e1b1da8f9557bca0)) - (Tonye Jack)
|
||||
- Update test.yml ([8673629](https://github.com/tj-actions/changed-files/commit/86736298570b2f45099d0adf8d5fb1724dff07a0)) - (Tonye Jack)
|
||||
- Update test.yml ([a432171](https://github.com/tj-actions/changed-files/commit/a4321716faa2f27596b445792f350eedba2e6e4f)) - (Tonye Jack)
|
||||
- Update test.yml ([1c5a341](https://github.com/tj-actions/changed-files/commit/1c5a3415f385a48ab07412485dbd89792105cc93)) - (Tonye Jack)
|
||||
- Update test.yml ([c2eb995](https://github.com/tj-actions/changed-files/commit/c2eb99504f79de91334445754b76d9a2b01bf8a0)) - (Tonye Jack)
|
||||
- Update action.yml ([21c1f27](https://github.com/tj-actions/changed-files/commit/21c1f27d337b4a294800bfef78ceae9dc75800ad)) - (Tonye Jack)
|
||||
- Update README.md ([3a74bab](https://github.com/tj-actions/changed-files/commit/3a74bab53cfbfbf63740d9c07df177eb405b40b3)) - (Tonye Jack)
|
||||
- Update README.md ([3a11f58](https://github.com/tj-actions/changed-files/commit/3a11f58d0f0fad11a70005aa0ebfd5c1fb7a0a6c)) - (Tonye Jack)
|
||||
- Update test.yml ([66a53ea](https://github.com/tj-actions/changed-files/commit/66a53ea26fdce49dc3ee56e179b2f27a24719796)) - (Tonye Jack)
|
||||
- Update test.yml ([6868b51](https://github.com/tj-actions/changed-files/commit/6868b512caf67893c95dca8d9a6db891f04cdc6c)) - (Tonye Jack)
|
||||
- Update README.md ([d3c7a0c](https://github.com/tj-actions/changed-files/commit/d3c7a0c2497fc1fa7d7b5a83bdbe35dc128d844b)) - (Tonye Jack)
|
||||
- Update README.md ([3a74bab](https://github.com/tj-actions/changed-files/commit/3a74bab53cfbfbf63740d9c07df177eb405b40b3)) - (Tonye Jack)
|
||||
- Update test.yml ([f41f9eb](https://github.com/tj-actions/changed-files/commit/f41f9eb54bbb74482ed3b4365a452dc173db9e58)) - (Tonye Jack)
|
||||
- Update README.md ([ea54bfb](https://github.com/tj-actions/changed-files/commit/ea54bfb72aeeff6e4bc4e7d97891be77d83c8e84)) - (Tonye Jack)
|
||||
- Update README.md ([68680cd](https://github.com/tj-actions/changed-files/commit/68680cd505f5759d6aed69b66a071d9e00b6f584)) - (Tonye Jack)
|
||||
|
||||
120
README.md
120
README.md
@@ -1,7 +1,7 @@
|
||||
[](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on)
|
||||
[](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on)
|
||||
[](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on)
|
||||
[](https://github.com/search?o=desc\&q=tj-actions+changed-files+language%3AYAML\&s=\&type=Code)
|
||||
[](https://github.com/search?o=desc\&q=tj-actions+changed-files+language%3AYAML\&s=\&type=Code)
|
||||
|
||||
[](https://app.codacy.com/gh/tj-actions/changed-files/dashboard?utm_source=gh\&utm_medium=referral\&utm_content=\&utm_campaign=Badge_grade)
|
||||
[](https://github.com/tj-actions/changed-files/actions/workflows/test.yml)
|
||||
@@ -116,15 +116,13 @@ jobs:
|
||||
name: Test changed-files
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
||||
|
||||
# -----------------------------------------------------------------------------------------------------------
|
||||
# Example 1
|
||||
# -----------------------------------------------------------------------------------------------------------
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
|
||||
# with:
|
||||
# since_last_remote_commit: true
|
||||
@@ -142,7 +140,7 @@ jobs:
|
||||
# -----------------------------------------------------------------------------------------------------------
|
||||
- name: Get all changed markdown files
|
||||
id: changed-markdown-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
# Avoid using single or double quotes for multiline patterns
|
||||
files: |
|
||||
@@ -162,7 +160,7 @@ jobs:
|
||||
# -----------------------------------------------------------------------------------------------------------
|
||||
- name: Get all test, doc and src files that have changed
|
||||
id: changed-files-yaml
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files_yaml: |
|
||||
doc:
|
||||
@@ -197,7 +195,7 @@ jobs:
|
||||
# -----------------------------------------------------------------------------------------------------------
|
||||
- name: Get changed files in the docs folder
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files: docs/*.{js,html} # Alternatively using: `docs/**`
|
||||
files_ignore: docs/static.js
|
||||
@@ -229,7 +227,7 @@ jobs:
|
||||
# NOTE:
|
||||
# - This is limited to pull_request* events and would raise an error for other events.
|
||||
# - A maximum of 3000 files can be returned.
|
||||
# - For more flexibility and no limitations see "Using local .git history" above.
|
||||
# - For more flexibility and no limitations see "Using local .git directory" above.
|
||||
|
||||
runs-on: ubuntu-latest # windows-latest || macos-latest
|
||||
name: Test changed-files
|
||||
@@ -239,7 +237,7 @@ jobs:
|
||||
steps:
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
|
||||
- name: List all changed files
|
||||
env:
|
||||
@@ -282,7 +280,7 @@ jobs:
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
# NOTE: `since_last_remote_commit: true` is implied by default and falls back to the previous local commit.
|
||||
|
||||
- name: List all changed files
|
||||
@@ -322,14 +320,14 @@ Support this project with a :star:
|
||||
> * When using `files_yaml*` inputs:
|
||||
> * All keys must start with a letter or `_` and contain only alphanumeric characters, `-`, or `_`.
|
||||
>
|
||||
> For example, `test` or `test_key` or `test-key` or `_test_key` are all valid.
|
||||
> For example, `test` or `test_key` or `test-key` or `_test_key` are all valid choices.
|
||||
|
||||
## Inputs ⚙️
|
||||
|
||||
<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->
|
||||
|
||||
```yaml
|
||||
- uses: tj-actions/changed-files@v42
|
||||
- uses: tj-actions/changed-files@v44
|
||||
id: changed-files
|
||||
with:
|
||||
# Github API URL.
|
||||
@@ -391,6 +389,11 @@ Support this project with a :star:
|
||||
# Default: "true"
|
||||
escape_json: ''
|
||||
|
||||
# Exclude changes to submodules.
|
||||
# Type: boolean
|
||||
# Default: "false"
|
||||
exclude_submodules: ''
|
||||
|
||||
# Fail when the initial diff fails.
|
||||
# Type: boolean
|
||||
# Default: "false"
|
||||
@@ -412,6 +415,11 @@ Support this project with a :star:
|
||||
# Default: "50"
|
||||
fetch_depth: ''
|
||||
|
||||
# Maximum number of retries to fetch missing history.
|
||||
# Type: string
|
||||
# Default: "10"
|
||||
fetch_missing_history_max_retries: ''
|
||||
|
||||
# File and directory patterns used to detect changes (Defaults to the entire repo if unset).
|
||||
# NOTE: Multiline file/directory patterns should not include quotes.
|
||||
# Type: string
|
||||
@@ -493,6 +501,13 @@ Support this project with a :star:
|
||||
# Default: "false"
|
||||
json: ''
|
||||
|
||||
# Output changed files in a format that can be
|
||||
# used for matrix jobs. Alias for setting inputs `json`
|
||||
# to `true` and `escape_json` to `false`.
|
||||
# Type: boolean
|
||||
# Default: "false"
|
||||
matrix: ''
|
||||
|
||||
# Apply the negation patterns first. NOTE: This affects how
|
||||
# changed files are matched.
|
||||
# Type: boolean
|
||||
@@ -657,33 +672,33 @@ Support this project with a :star:
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| <a name="output_added_files"></a>[added\_files](#output_added_files) | string | Returns only files that are <br>Added (A). |
|
||||
| <a name="output_added_files_count"></a>[added\_files\_count](#output_added_files_count) | string | Returns the number of `added_files` |
|
||||
| <a name="output_all_changed_and_modified_files"></a>[all\_changed\_and\_modified\_files](#output_all_changed_and_modified_files) | string | Returns all changed and modified <br>files i.e. *a combination of (ACMRDTUX)* |
|
||||
| <a name="output_all_changed_and_modified_files"></a>[all\_changed\_and\_modified\_files](#output_all_changed_and_modified_files) | string | Returns all changed and modified <br>files i.e. a combination of <br>(ACMRDTUX) |
|
||||
| <a name="output_all_changed_and_modified_files_count"></a>[all\_changed\_and\_modified\_files\_count](#output_all_changed_and_modified_files_count) | string | Returns the number of `all_changed_and_modified_files` |
|
||||
| <a name="output_all_changed_files"></a>[all\_changed\_files](#output_all_changed_files) | string | Returns all changed files i.e. <br>*a combination of all added, copied, modified and renamed files (ACMR)* |
|
||||
| <a name="output_all_changed_files"></a>[all\_changed\_files](#output_all_changed_files) | string | Returns all changed files i.e. <br>a combination of all added, <br>copied, modified and renamed files <br>(ACMR) |
|
||||
| <a name="output_all_changed_files_count"></a>[all\_changed\_files\_count](#output_all_changed_files_count) | string | Returns the number of `all_changed_files` |
|
||||
| <a name="output_all_modified_files"></a>[all\_modified\_files](#output_all_modified_files) | string | Returns all changed files i.e. <br>*a combination of all added, copied, modified, renamed and deleted files (ACMRD)*. |
|
||||
| <a name="output_all_modified_files"></a>[all\_modified\_files](#output_all_modified_files) | string | Returns all changed files i.e. <br>a combination of all added, <br>copied, modified, renamed and deleted <br>files (ACMRD). |
|
||||
| <a name="output_all_modified_files_count"></a>[all\_modified\_files\_count](#output_all_modified_files_count) | string | Returns the number of `all_modified_files` |
|
||||
| <a name="output_all_old_new_renamed_files"></a>[all\_old\_new\_renamed\_files](#output_all_old_new_renamed_files) | string | Returns only files that are <br>Renamed and lists their old <br>and new names. **NOTE:** This <br>requires setting `include_all_old_new_renamed_files` to `true`. <br>Also, keep in mind that <br>this output is global and <br>wouldn't be nested in outputs <br>generated when the `*_yaml_*` input <br>is used. (R) |
|
||||
| <a name="output_all_old_new_renamed_files_count"></a>[all\_old\_new\_renamed\_files\_count](#output_all_old_new_renamed_files_count) | string | Returns the number of `all_old_new_renamed_files` |
|
||||
| <a name="output_any_changed"></a>[any\_changed](#output_any_changed) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs have changed. i.e. <br>*includes a combination of all added, copied, modified and renamed files (ACMR)*. |
|
||||
| <a name="output_any_deleted"></a>[any\_deleted](#output_any_deleted) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs has been deleted. <br>(D) |
|
||||
| <a name="output_any_modified"></a>[any\_modified](#output_any_modified) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs has been modified. <br>i.e. *includes a combination of all added, copied, modified, renamed, and deleted files (ACMRD)*. |
|
||||
| <a name="output_changed_keys"></a>[changed\_keys](#output_changed_keys) | string | Returns all changed YAML keys <br>when the `files_yaml` input is <br>used. i.e. *key that contains any path that has either been added, copied, modified, and renamed (ACMR)* |
|
||||
| <a name="output_any_changed"></a>[any\_changed](#output_any_changed) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs have changed. This <br>defaults to `true` when no <br>patterns are specified. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*. |
|
||||
| <a name="output_any_deleted"></a>[any\_deleted](#output_any_deleted) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs have been deleted. <br>This defaults to `true` when <br>no patterns are specified. (D) |
|
||||
| <a name="output_any_modified"></a>[any\_modified](#output_any_modified) | string | Returns `true` when any of <br>the filenames provided using the <br>`files*` or `files_ignore*` inputs have been modified. <br>This defaults to `true` when <br>no patterns are specified. i.e. <br>*includes a combination of all added, copied, modified, renamed, and deleted files (ACMRD)*. |
|
||||
| <a name="output_changed_keys"></a>[changed\_keys](#output_changed_keys) | string | Returns all changed YAML keys <br>when the `files_yaml` input is <br>used. i.e. key that contains <br>any path that has either <br>been added, copied, modified, and <br>renamed (ACMR) |
|
||||
| <a name="output_copied_files"></a>[copied\_files](#output_copied_files) | string | Returns only files that are <br>Copied (C). |
|
||||
| <a name="output_copied_files_count"></a>[copied\_files\_count](#output_copied_files_count) | string | Returns the number of `copied_files` |
|
||||
| <a name="output_deleted_files"></a>[deleted\_files](#output_deleted_files) | string | Returns only files that are <br>Deleted (D). |
|
||||
| <a name="output_deleted_files_count"></a>[deleted\_files\_count](#output_deleted_files_count) | string | Returns the number of `deleted_files` |
|
||||
| <a name="output_modified_files"></a>[modified\_files](#output_modified_files) | string | Returns only files that are <br>Modified (M). |
|
||||
| <a name="output_modified_files_count"></a>[modified\_files\_count](#output_modified_files_count) | string | Returns the number of `modified_files` |
|
||||
| <a name="output_modified_keys"></a>[modified\_keys](#output_modified_keys) | string | Returns all modified YAML keys <br>when the `files_yaml` input is <br>used. i.e. *key that contains any path that has either been added, copied, modified, and deleted (ACMRD)* |
|
||||
| <a name="output_modified_keys"></a>[modified\_keys](#output_modified_keys) | string | Returns all modified YAML keys <br>when the `files_yaml` input is <br>used. i.e. key that contains <br>any path that has either <br>been added, copied, modified, and <br>deleted (ACMRD) |
|
||||
| <a name="output_only_changed"></a>[only\_changed](#output_only_changed) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>have changed. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*. |
|
||||
| <a name="output_only_deleted"></a>[only\_deleted](#output_only_deleted) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>has been deleted. (D) |
|
||||
| <a name="output_only_modified"></a>[only\_modified](#output_only_modified) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>has been modified. (ACMRD). |
|
||||
| <a name="output_other_changed_files"></a>[other\_changed\_files](#output_other_changed_files) | string | Returns all other changed files <br>not listed in the files <br>input i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*. |
|
||||
| <a name="output_only_deleted"></a>[only\_deleted](#output_only_deleted) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>have been deleted. (D) |
|
||||
| <a name="output_only_modified"></a>[only\_modified](#output_only_modified) | string | Returns `true` when only files <br>provided using the `files*` or `files_ignore*` inputs <br>have been modified. (ACMRD). |
|
||||
| <a name="output_other_changed_files"></a>[other\_changed\_files](#output_other_changed_files) | string | Returns all other changed files <br>not listed in the files <br>input i.e. includes a combination <br>of all added, copied, modified <br>and renamed files (ACMR). |
|
||||
| <a name="output_other_changed_files_count"></a>[other\_changed\_files\_count](#output_other_changed_files_count) | string | Returns the number of `other_changed_files` |
|
||||
| <a name="output_other_deleted_files"></a>[other\_deleted\_files](#output_other_deleted_files) | string | Returns all other deleted files <br>not listed in the files <br>input i.e. *a combination of all deleted files (D)* |
|
||||
| <a name="output_other_deleted_files"></a>[other\_deleted\_files](#output_other_deleted_files) | string | Returns all other deleted files <br>not listed in the files <br>input i.e. a combination of <br>all deleted files (D) |
|
||||
| <a name="output_other_deleted_files_count"></a>[other\_deleted\_files\_count](#output_other_deleted_files_count) | string | Returns the number of `other_deleted_files` |
|
||||
| <a name="output_other_modified_files"></a>[other\_modified\_files](#output_other_modified_files) | string | Returns all other modified files <br>not listed in the files <br>input i.e. *a combination of all added, copied, modified, and deleted files (ACMRD)* |
|
||||
| <a name="output_other_modified_files"></a>[other\_modified\_files](#output_other_modified_files) | string | Returns all other modified files <br>not listed in the files <br>input i.e. a combination of <br>all added, copied, modified, and <br>deleted files (ACMRD) |
|
||||
| <a name="output_other_modified_files_count"></a>[other\_modified\_files\_count](#output_other_modified_files_count) | string | Returns the number of `other_modified_files` |
|
||||
| <a name="output_renamed_files"></a>[renamed\_files](#output_renamed_files) | string | Returns only files that are <br>Renamed (R). |
|
||||
| <a name="output_renamed_files_count"></a>[renamed\_files\_count](#output_renamed_files_count) | string | Returns the number of `renamed_files` |
|
||||
@@ -717,7 +732,7 @@ The format of the version string is as follows:
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
...
|
||||
```
|
||||
|
||||
@@ -730,7 +745,7 @@ The format of the version string is as follows:
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
safe_output: false # set to false because we are using an environment variable to store the output and avoid command injection.
|
||||
|
||||
@@ -753,7 +768,7 @@ The format of the version string is as follows:
|
||||
...
|
||||
- name: Get all changed files and use a comma separator in the output
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
separator: ","
|
||||
...
|
||||
@@ -770,7 +785,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
|
||||
- name: List all added files
|
||||
env:
|
||||
@@ -793,7 +808,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
|
||||
- name: Run a step if my-file.txt was modified
|
||||
if: contains(steps.changed-files.outputs.modified_files, 'my-file.txt')
|
||||
@@ -814,7 +829,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
|
||||
- name: Get changed files and write the outputs to a Txt file
|
||||
id: changed-files-write-output-files-txt
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
write_output_files: true
|
||||
|
||||
@@ -833,7 +848,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
...
|
||||
- name: Get changed files and write the outputs to a JSON file
|
||||
id: changed-files-write-output-files-json
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
json: true
|
||||
write_output_files: true
|
||||
@@ -853,7 +868,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files: |
|
||||
my-file.txt
|
||||
@@ -876,7 +891,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files: |
|
||||
my-file.txt
|
||||
@@ -927,7 +942,7 @@ See [outputs](#outputs) for a list of all available outputs.
|
||||
...
|
||||
- name: Get changed files using a source file or list of file(s) to populate to files input.
|
||||
id: changed-files-specific-source-file
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files_from_source_file: test/changed-files-list.txt
|
||||
...
|
||||
@@ -944,7 +959,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files using 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@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files_from_source_file: |
|
||||
test/changed-files-list.txt
|
||||
@@ -965,7 +980,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files using a different SHA
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
sha: ${{ github.event.pull_request.head.sha }}
|
||||
...
|
||||
@@ -982,7 +997,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed files using a different base SHA
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
base_sha: ${{ github.event.pull_request.base.sha }}
|
||||
...
|
||||
@@ -1014,7 +1029,7 @@ jobs:
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
|
||||
- name: List changed files
|
||||
env:
|
||||
@@ -1024,7 +1039,7 @@ jobs:
|
||||
|
||||
- name: Get changed files in the .github folder
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files: .github/**
|
||||
|
||||
@@ -1055,14 +1070,13 @@ See [inputs](#inputs) for more information.
|
||||
|
||||
- name: Run changed-files with defaults in dir1
|
||||
id: changed-files-for-dir1
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
path: dir1
|
||||
|
||||
- name: List all added files in dir1
|
||||
env:
|
||||
ADDED_FILES: |-
|
||||
${{ steps.changed-files-for-dir1.outputs.added_files }}
|
||||
ADDED_FILES: ${{ steps.changed-files-for-dir1.outputs.added_files }}
|
||||
run: |
|
||||
for file in ${ADDED_FILES}; do
|
||||
echo "$file was added"
|
||||
@@ -1081,13 +1095,13 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Run changed-files with quotepath disabled
|
||||
id: changed-files-quotepath
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
quotepath: "false"
|
||||
|
||||
- name: Run changed-files with quotepath disabled for a specified list of file(s)
|
||||
id: changed-files-quotepath-specific
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files: test/test-è.txt
|
||||
quotepath: "false"
|
||||
@@ -1120,7 +1134,7 @@ See [inputs](#inputs) for more information.
|
||||
|
||||
- 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@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
base_sha: ${{ steps.last_successful_commit_push.outputs.base }}
|
||||
...
|
||||
@@ -1147,7 +1161,7 @@ See [inputs](#inputs) for more information.
|
||||
|
||||
- name: Run changed-files with the commit of the last successful test workflow run on the main branch
|
||||
id: changed-files-base-sha-pull-request
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
base_sha: ${{ steps.last_successful_commit_pull_request.outputs.base }}
|
||||
...
|
||||
@@ -1173,7 +1187,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Run changed-files with dir_names
|
||||
id: changed-files-dir-names
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
dir_names: "true"
|
||||
...
|
||||
@@ -1190,7 +1204,7 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Run changed-files with JSON output
|
||||
id: changed-files-json
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
json: "true"
|
||||
...
|
||||
@@ -1207,13 +1221,13 @@ See [inputs](#inputs) for more information.
|
||||
...
|
||||
- name: Get changed-files since 2022-08-19
|
||||
id: changed-files-since
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
since: "2022-08-19"
|
||||
|
||||
- name: Get changed-files until 2022-08-20
|
||||
id: changed-files-until
|
||||
uses: tj-actions/changed-files@v42
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
until: "2022-08-20"
|
||||
...
|
||||
@@ -1245,7 +1259,7 @@ See [inputs](#inputs) for more information.
|
||||
|
||||
* [qmk\_firmware uses tj-actions/changed-files to run linters](https://github.com/qmk/qmk_firmware/blob/7a737235ffd49c32d2c5561e8fe53fd96baa7f96/.github/workflows/lint.yml#L30)
|
||||
|
||||
* [argo-cd uses tj-actions/chnaged-files to detect changed frontend or backend files](https://github.com/argoproj/argo-cd/blob/5bc1850aa1d26301043be9f2fb825d88c80c111c/.github/workflows/ci-build.yaml#L33)
|
||||
* [argo-cd uses tj-actions/changed-files to detect changed frontend or backend files](https://github.com/argoproj/argo-cd/blob/5bc1850aa1d26301043be9f2fb825d88c80c111c/.github/workflows/ci-build.yaml#L33)
|
||||
|
||||
* [argo-workflows uses tj-actions/changed-files to run specific jobs based on changes detected](https://github.com/argoproj/argo-workflows/blob/baef4856ff2603c76dbe277c825eaa3f9788fc91/.github/workflows/ci-build.yaml#L34)
|
||||
|
||||
@@ -1302,7 +1316,7 @@ Report bugs at https://github.com/tj-actions/changed-files/issues.
|
||||
If you are reporting a bug, please include:
|
||||
|
||||
* Your operating system name and version.
|
||||
* Any details about your workflow that might be helpful in troubleshooting. (**NOTE**: Ensure that you include full log outputs with debugging enabled)
|
||||
* All essential details about your workflow that might be helpful in troubleshooting. (**NOTE**: Ensure that you include full log outputs with debugging enabled)
|
||||
* Detailed steps to reproduce the bug.
|
||||
|
||||
## Contributors ✨
|
||||
|
||||
42
action.yml
42
action.yml
@@ -219,6 +219,22 @@ inputs:
|
||||
description: "Apply the negation patterns first. NOTE: This affects how changed files are matched."
|
||||
required: false
|
||||
default: "false"
|
||||
matrix:
|
||||
description: "Output changed files in a format that can be used for matrix jobs. Alias for setting inputs `json` to `true` and `escape_json` to `false`."
|
||||
required: false
|
||||
default: "false"
|
||||
exclude_submodules:
|
||||
description: "Exclude changes to submodules."
|
||||
required: false
|
||||
default: "false"
|
||||
fetch_missing_history_max_retries:
|
||||
description: "Maximum number of retries to fetch missing history."
|
||||
required: false
|
||||
default: "10"
|
||||
use_posix_path_separator:
|
||||
description: "Use POSIX path separator `/` for output filenames."
|
||||
required: false
|
||||
default: "false"
|
||||
|
||||
outputs:
|
||||
added_files:
|
||||
@@ -258,45 +274,45 @@ outputs:
|
||||
unknown_files_count:
|
||||
description: "Returns the number of `unknown_files`"
|
||||
all_changed_and_modified_files:
|
||||
description: "Returns all changed and modified files i.e. *a combination of (ACMRDTUX)*"
|
||||
description: "Returns all changed and modified files i.e. a combination of (ACMRDTUX)"
|
||||
all_changed_and_modified_files_count:
|
||||
description: "Returns the number of `all_changed_and_modified_files`"
|
||||
all_changed_files:
|
||||
description: "Returns all changed files i.e. *a combination of all added, copied, modified and renamed files (ACMR)*"
|
||||
description: "Returns all changed files i.e. a combination of all added, copied, modified and renamed files (ACMR)"
|
||||
all_changed_files_count:
|
||||
description: "Returns the number of `all_changed_files`"
|
||||
any_changed:
|
||||
description: "Returns `true` when any of the filenames provided using the `files*` or `files_ignore*` inputs have changed. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*."
|
||||
description: "Returns `true` when any of the filenames provided using the `files*` or `files_ignore*` inputs have changed. This defaults to `true` when no patterns are specified. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*."
|
||||
only_changed:
|
||||
description: "Returns `true` when only files provided using the `files*` or `files_ignore*` inputs have changed. i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*."
|
||||
other_changed_files:
|
||||
description: "Returns all other changed files not listed in the files input i.e. *includes a combination of all added, copied, modified and renamed files (ACMR)*."
|
||||
description: "Returns all other changed files not listed in the files input i.e. includes a combination of all added, copied, modified and renamed files (ACMR)."
|
||||
other_changed_files_count:
|
||||
description: "Returns the number of `other_changed_files`"
|
||||
all_modified_files:
|
||||
description: "Returns all changed files i.e. *a combination of all added, copied, modified, renamed and deleted files (ACMRD)*."
|
||||
description: "Returns all changed files i.e. a combination of all added, copied, modified, renamed and deleted files (ACMRD)."
|
||||
all_modified_files_count:
|
||||
description: "Returns the number of `all_modified_files`"
|
||||
any_modified:
|
||||
description: "Returns `true` when any of the filenames provided using the `files*` or `files_ignore*` inputs has been modified. i.e. *includes a combination of all added, copied, modified, renamed, and deleted files (ACMRD)*."
|
||||
description: "Returns `true` when any of the filenames provided using the `files*` or `files_ignore*` inputs have been modified. This defaults to `true` when no patterns are specified. i.e. *includes a combination of all added, copied, modified, renamed, and deleted files (ACMRD)*."
|
||||
only_modified:
|
||||
description: "Returns `true` when only files provided using the `files*` or `files_ignore*` inputs has been modified. (ACMRD)."
|
||||
description: "Returns `true` when only files provided using the `files*` or `files_ignore*` inputs have been modified. (ACMRD)."
|
||||
other_modified_files:
|
||||
description: "Returns all other modified files not listed in the files input i.e. *a combination of all added, copied, modified, and deleted files (ACMRD)*"
|
||||
description: "Returns all other modified files not listed in the files input i.e. a combination of all added, copied, modified, and deleted files (ACMRD)"
|
||||
other_modified_files_count:
|
||||
description: "Returns the number of `other_modified_files`"
|
||||
any_deleted:
|
||||
description: "Returns `true` when any of the filenames provided using the `files*` or `files_ignore*` inputs has been deleted. (D)"
|
||||
description: "Returns `true` when any of the filenames provided using the `files*` or `files_ignore*` inputs have been deleted. This defaults to `true` when no patterns are specified. (D)"
|
||||
only_deleted:
|
||||
description: "Returns `true` when only files provided using the `files*` or `files_ignore*` inputs has been deleted. (D)"
|
||||
description: "Returns `true` when only files provided using the `files*` or `files_ignore*` inputs have been deleted. (D)"
|
||||
other_deleted_files:
|
||||
description: "Returns all other deleted files not listed in the files input i.e. *a combination of all deleted files (D)*"
|
||||
description: "Returns all other deleted files not listed in the files input i.e. a combination of all deleted files (D)"
|
||||
other_deleted_files_count:
|
||||
description: "Returns the number of `other_deleted_files`"
|
||||
modified_keys:
|
||||
description: "Returns all modified YAML keys when the `files_yaml` input is used. i.e. *key that contains any path that has either been added, copied, modified, and deleted (ACMRD)*"
|
||||
description: "Returns all modified YAML keys when the `files_yaml` input is used. i.e. key that contains any path that has either been added, copied, modified, and deleted (ACMRD)"
|
||||
changed_keys:
|
||||
description: "Returns all changed YAML keys when the `files_yaml` input is used. i.e. *key that contains any path that has either been added, copied, modified, and renamed (ACMR)*"
|
||||
description: "Returns all changed YAML keys when the `files_yaml` input is used. i.e. key that contains any path that has either been added, copied, modified, and renamed (ACMR)"
|
||||
|
||||
runs:
|
||||
using: 'node20'
|
||||
|
||||
6613
dist/index.js
generated
vendored
6613
dist/index.js
generated
vendored
File diff suppressed because it is too large
Load Diff
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
5249
dist/licenses.txt
generated
vendored
5249
dist/licenses.txt
generated
vendored
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tj-actions/changed-files",
|
||||
"version": "42.0.4",
|
||||
"version": "44.2.0",
|
||||
"description": "Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.",
|
||||
"main": "lib/main.js",
|
||||
"publishConfig": {
|
||||
@@ -14,6 +14,7 @@
|
||||
"lint:fix": "eslint --fix src/*.ts src/**/*.ts",
|
||||
"package": "ncc build lib/main.js --source-map --license licenses.txt",
|
||||
"test": "jest --coverage",
|
||||
"update-snapshot": "jest -u",
|
||||
"all": "yarn build && yarn format && yarn lint && yarn package && yarn test"
|
||||
},
|
||||
"repository": {
|
||||
@@ -36,6 +37,7 @@
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"@octokit/rest": "^20.0.1",
|
||||
"@stdlib/utils-convert-path": "^0.2.1",
|
||||
"lodash": "^4.17.21",
|
||||
"micromatch": "^4.0.5",
|
||||
"yaml": "^2.3.1"
|
||||
@@ -50,10 +52,10 @@
|
||||
"@typescript-eslint/parser": "^7.0.0",
|
||||
"@vercel/ncc": "^0.38.0",
|
||||
"eslint": "^8.43.0",
|
||||
"eslint-plugin-github": "^4.8.0",
|
||||
"eslint-plugin-jest": "^27.2.2",
|
||||
"eslint-plugin-prettier": "^5.0.0-alpha.2",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-plugin-github": "^4.8.0",
|
||||
"eslint-plugin-jest": "^28.0.0",
|
||||
"eslint-plugin-prettier": "^5.0.0-alpha.2",
|
||||
"jest": "^29.5.0",
|
||||
"prettier": "^3.0.0",
|
||||
"ts-jest": "^29.1.0",
|
||||
|
||||
361
src/__tests__/__snapshots__/inputs.test.ts.snap
Normal file
361
src/__tests__/__snapshots__/inputs.test.ts.snap
Normal file
@@ -0,0 +1,361 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`getInputs should correctly parse boolean inputs 1`] = `
|
||||
{
|
||||
"apiUrl": "",
|
||||
"baseSha": "",
|
||||
"diffRelative": "false",
|
||||
"dirNames": "false",
|
||||
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": "false",
|
||||
"dirNamesExcludeCurrentDir": "false",
|
||||
"dirNamesIncludeFiles": "",
|
||||
"dirNamesIncludeFilesSeparator": "",
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": "false",
|
||||
"failOnInitialDiffError": "false",
|
||||
"failOnSubmoduleDiffError": "false",
|
||||
"fetchAdditionalSubmoduleHistory": "false",
|
||||
"fetchMissingHistoryMaxRetries": 10,
|
||||
"files": "",
|
||||
"filesFromSourceFile": "",
|
||||
"filesFromSourceFileSeparator": "",
|
||||
"filesIgnore": "",
|
||||
"filesIgnoreFromSourceFile": "",
|
||||
"filesIgnoreFromSourceFileSeparator": "",
|
||||
"filesIgnoreSeparator": "",
|
||||
"filesIgnoreYaml": "",
|
||||
"filesIgnoreYamlFromSourceFile": "",
|
||||
"filesIgnoreYamlFromSourceFileSeparator": "",
|
||||
"filesSeparator": "",
|
||||
"filesYaml": "",
|
||||
"filesYamlFromSourceFile": "",
|
||||
"filesYamlFromSourceFileSeparator": "",
|
||||
"includeAllOldNewRenamedFiles": "false",
|
||||
"json": true,
|
||||
"negationPatternsFirst": "false",
|
||||
"oldNewFilesSeparator": " ",
|
||||
"oldNewSeparator": ",",
|
||||
"outputDir": "",
|
||||
"outputRenamedFilesAsDeletedAndAdded": "false",
|
||||
"path": ".",
|
||||
"quotepath": "false",
|
||||
"recoverDeletedFiles": "false",
|
||||
"recoverDeletedFilesToDestination": "",
|
||||
"recoverFiles": "",
|
||||
"recoverFilesIgnore": "",
|
||||
"recoverFilesIgnoreSeparator": "
|
||||
",
|
||||
"recoverFilesSeparator": "
|
||||
",
|
||||
"safeOutput": "false",
|
||||
"separator": "",
|
||||
"sha": "",
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": "false",
|
||||
"skipInitialFetch": "true",
|
||||
"token": "",
|
||||
"until": "",
|
||||
"usePosixPathSeparator": "false",
|
||||
"useRestApi": "false",
|
||||
"writeOutputFiles": "false",
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`getInputs should correctly parse numeric inputs 1`] = `
|
||||
{
|
||||
"apiUrl": "",
|
||||
"baseSha": "",
|
||||
"diffRelative": true,
|
||||
"dirNames": false,
|
||||
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
||||
"dirNamesExcludeCurrentDir": false,
|
||||
"dirNamesIncludeFiles": "",
|
||||
"dirNamesIncludeFilesSeparator": "",
|
||||
"dirNamesMaxDepth": 2,
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
"fetchDepth": 5,
|
||||
"files": "",
|
||||
"filesFromSourceFile": "",
|
||||
"filesFromSourceFileSeparator": "",
|
||||
"filesIgnore": "",
|
||||
"filesIgnoreFromSourceFile": "",
|
||||
"filesIgnoreFromSourceFileSeparator": "",
|
||||
"filesIgnoreSeparator": "",
|
||||
"filesIgnoreYaml": "",
|
||||
"filesIgnoreYamlFromSourceFile": "",
|
||||
"filesIgnoreYamlFromSourceFileSeparator": "",
|
||||
"filesSeparator": "",
|
||||
"filesYaml": "",
|
||||
"filesYamlFromSourceFile": "",
|
||||
"filesYamlFromSourceFileSeparator": "",
|
||||
"includeAllOldNewRenamedFiles": false,
|
||||
"json": false,
|
||||
"negationPatternsFirst": false,
|
||||
"oldNewFilesSeparator": "",
|
||||
"oldNewSeparator": "",
|
||||
"outputDir": "",
|
||||
"outputRenamedFilesAsDeletedAndAdded": false,
|
||||
"path": "",
|
||||
"quotepath": true,
|
||||
"recoverDeletedFiles": false,
|
||||
"recoverDeletedFilesToDestination": "",
|
||||
"recoverFiles": "",
|
||||
"recoverFilesIgnore": "",
|
||||
"recoverFilesIgnoreSeparator": "",
|
||||
"recoverFilesSeparator": "",
|
||||
"safeOutput": false,
|
||||
"separator": "",
|
||||
"sha": "",
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"token": "",
|
||||
"until": "",
|
||||
"usePosixPathSeparator": false,
|
||||
"useRestApi": false,
|
||||
"writeOutputFiles": false,
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`getInputs should correctly parse string inputs 1`] = `
|
||||
{
|
||||
"apiUrl": "https://api.github.com",
|
||||
"baseSha": "",
|
||||
"diffRelative": true,
|
||||
"dirNames": false,
|
||||
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
||||
"dirNamesExcludeCurrentDir": false,
|
||||
"dirNamesIncludeFiles": "",
|
||||
"dirNamesIncludeFilesSeparator": "",
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
"files": "",
|
||||
"filesFromSourceFile": "",
|
||||
"filesFromSourceFileSeparator": "",
|
||||
"filesIgnore": "",
|
||||
"filesIgnoreFromSourceFile": "",
|
||||
"filesIgnoreFromSourceFileSeparator": "",
|
||||
"filesIgnoreSeparator": "",
|
||||
"filesIgnoreYaml": "",
|
||||
"filesIgnoreYamlFromSourceFile": "",
|
||||
"filesIgnoreYamlFromSourceFileSeparator": "",
|
||||
"filesSeparator": "",
|
||||
"filesYaml": "",
|
||||
"filesYamlFromSourceFile": "",
|
||||
"filesYamlFromSourceFileSeparator": "",
|
||||
"includeAllOldNewRenamedFiles": false,
|
||||
"json": false,
|
||||
"negationPatternsFirst": false,
|
||||
"oldNewFilesSeparator": "",
|
||||
"oldNewSeparator": "",
|
||||
"outputDir": "",
|
||||
"outputRenamedFilesAsDeletedAndAdded": false,
|
||||
"path": "",
|
||||
"quotepath": true,
|
||||
"recoverDeletedFiles": false,
|
||||
"recoverDeletedFilesToDestination": "",
|
||||
"recoverFiles": "",
|
||||
"recoverFilesIgnore": "",
|
||||
"recoverFilesIgnoreSeparator": "",
|
||||
"recoverFilesSeparator": "",
|
||||
"safeOutput": false,
|
||||
"separator": "",
|
||||
"sha": "",
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"token": "token",
|
||||
"until": "",
|
||||
"usePosixPathSeparator": false,
|
||||
"useRestApi": false,
|
||||
"writeOutputFiles": false,
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`getInputs should handle invalid numeric inputs correctly 1`] = `
|
||||
{
|
||||
"apiUrl": "",
|
||||
"baseSha": "",
|
||||
"diffRelative": true,
|
||||
"dirNames": false,
|
||||
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
||||
"dirNamesExcludeCurrentDir": false,
|
||||
"dirNamesIncludeFiles": "",
|
||||
"dirNamesIncludeFilesSeparator": "",
|
||||
"dirNamesMaxDepth": 2,
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
"fetchDepth": NaN,
|
||||
"files": "",
|
||||
"filesFromSourceFile": "",
|
||||
"filesFromSourceFileSeparator": "",
|
||||
"filesIgnore": "",
|
||||
"filesIgnoreFromSourceFile": "",
|
||||
"filesIgnoreFromSourceFileSeparator": "",
|
||||
"filesIgnoreSeparator": "",
|
||||
"filesIgnoreYaml": "",
|
||||
"filesIgnoreYamlFromSourceFile": "",
|
||||
"filesIgnoreYamlFromSourceFileSeparator": "",
|
||||
"filesSeparator": "",
|
||||
"filesYaml": "",
|
||||
"filesYamlFromSourceFile": "",
|
||||
"filesYamlFromSourceFileSeparator": "",
|
||||
"includeAllOldNewRenamedFiles": false,
|
||||
"json": false,
|
||||
"negationPatternsFirst": false,
|
||||
"oldNewFilesSeparator": "",
|
||||
"oldNewSeparator": "",
|
||||
"outputDir": "",
|
||||
"outputRenamedFilesAsDeletedAndAdded": false,
|
||||
"path": "",
|
||||
"quotepath": true,
|
||||
"recoverDeletedFiles": false,
|
||||
"recoverDeletedFilesToDestination": "",
|
||||
"recoverFiles": "",
|
||||
"recoverFilesIgnore": "",
|
||||
"recoverFilesIgnoreSeparator": "",
|
||||
"recoverFilesSeparator": "",
|
||||
"safeOutput": false,
|
||||
"separator": "",
|
||||
"sha": "",
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"token": "",
|
||||
"until": "",
|
||||
"usePosixPathSeparator": false,
|
||||
"useRestApi": false,
|
||||
"writeOutputFiles": false,
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`getInputs should handle negative numeric inputs correctly 1`] = `
|
||||
{
|
||||
"apiUrl": "",
|
||||
"baseSha": "",
|
||||
"diffRelative": true,
|
||||
"dirNames": false,
|
||||
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
||||
"dirNamesExcludeCurrentDir": false,
|
||||
"dirNamesIncludeFiles": "",
|
||||
"dirNamesIncludeFilesSeparator": "",
|
||||
"dirNamesMaxDepth": -2,
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
"fetchDepth": 2,
|
||||
"files": "",
|
||||
"filesFromSourceFile": "",
|
||||
"filesFromSourceFileSeparator": "",
|
||||
"filesIgnore": "",
|
||||
"filesIgnoreFromSourceFile": "",
|
||||
"filesIgnoreFromSourceFileSeparator": "",
|
||||
"filesIgnoreSeparator": "",
|
||||
"filesIgnoreYaml": "",
|
||||
"filesIgnoreYamlFromSourceFile": "",
|
||||
"filesIgnoreYamlFromSourceFileSeparator": "",
|
||||
"filesSeparator": "",
|
||||
"filesYaml": "",
|
||||
"filesYamlFromSourceFile": "",
|
||||
"filesYamlFromSourceFileSeparator": "",
|
||||
"includeAllOldNewRenamedFiles": false,
|
||||
"json": false,
|
||||
"negationPatternsFirst": false,
|
||||
"oldNewFilesSeparator": "",
|
||||
"oldNewSeparator": "",
|
||||
"outputDir": "",
|
||||
"outputRenamedFilesAsDeletedAndAdded": false,
|
||||
"path": "",
|
||||
"quotepath": true,
|
||||
"recoverDeletedFiles": false,
|
||||
"recoverDeletedFilesToDestination": "",
|
||||
"recoverFiles": "",
|
||||
"recoverFilesIgnore": "",
|
||||
"recoverFilesIgnoreSeparator": "",
|
||||
"recoverFilesSeparator": "",
|
||||
"safeOutput": false,
|
||||
"separator": "",
|
||||
"sha": "",
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"token": "",
|
||||
"until": "",
|
||||
"usePosixPathSeparator": false,
|
||||
"useRestApi": false,
|
||||
"writeOutputFiles": false,
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`getInputs should return default values when no inputs are provided 1`] = `
|
||||
{
|
||||
"apiUrl": "",
|
||||
"baseSha": "",
|
||||
"diffRelative": true,
|
||||
"dirNames": false,
|
||||
"dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,
|
||||
"dirNamesExcludeCurrentDir": false,
|
||||
"dirNamesIncludeFiles": "",
|
||||
"dirNamesIncludeFilesSeparator": "",
|
||||
"escapeJson": false,
|
||||
"excludeSubmodules": false,
|
||||
"failOnInitialDiffError": false,
|
||||
"failOnSubmoduleDiffError": false,
|
||||
"fetchAdditionalSubmoduleHistory": false,
|
||||
"fetchMissingHistoryMaxRetries": 10,
|
||||
"files": "",
|
||||
"filesFromSourceFile": "",
|
||||
"filesFromSourceFileSeparator": "",
|
||||
"filesIgnore": "",
|
||||
"filesIgnoreFromSourceFile": "",
|
||||
"filesIgnoreFromSourceFileSeparator": "",
|
||||
"filesIgnoreSeparator": "",
|
||||
"filesIgnoreYaml": "",
|
||||
"filesIgnoreYamlFromSourceFile": "",
|
||||
"filesIgnoreYamlFromSourceFileSeparator": "",
|
||||
"filesSeparator": "",
|
||||
"filesYaml": "",
|
||||
"filesYamlFromSourceFile": "",
|
||||
"filesYamlFromSourceFileSeparator": "",
|
||||
"includeAllOldNewRenamedFiles": false,
|
||||
"json": false,
|
||||
"negationPatternsFirst": false,
|
||||
"oldNewFilesSeparator": " ",
|
||||
"oldNewSeparator": ",",
|
||||
"outputDir": "",
|
||||
"outputRenamedFilesAsDeletedAndAdded": false,
|
||||
"path": ".",
|
||||
"quotepath": true,
|
||||
"recoverDeletedFiles": false,
|
||||
"recoverDeletedFilesToDestination": "",
|
||||
"recoverFiles": "",
|
||||
"recoverFilesIgnore": "",
|
||||
"recoverFilesIgnoreSeparator": "
|
||||
",
|
||||
"recoverFilesSeparator": "
|
||||
",
|
||||
"safeOutput": false,
|
||||
"separator": "",
|
||||
"sha": "",
|
||||
"since": "",
|
||||
"sinceLastRemoteCommit": false,
|
||||
"skipInitialFetch": false,
|
||||
"token": "",
|
||||
"until": "",
|
||||
"usePosixPathSeparator": false,
|
||||
"useRestApi": false,
|
||||
"writeOutputFiles": false,
|
||||
}
|
||||
`;
|
||||
153
src/__tests__/inputs.test.ts
Normal file
153
src/__tests__/inputs.test.ts
Normal file
@@ -0,0 +1,153 @@
|
||||
import * as core from '@actions/core'
|
||||
import {getInputs, Inputs} from '../inputs'
|
||||
import {DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS} from '../constant'
|
||||
|
||||
jest.mock('@actions/core')
|
||||
|
||||
describe('getInputs', () => {
|
||||
afterEach(() => {
|
||||
jest.clearAllMocks()
|
||||
})
|
||||
|
||||
test('should return default values when no inputs are provided', () => {
|
||||
;(core.getInput as jest.Mock).mockImplementation(name => {
|
||||
const camelCaseName = name.replace(/_([a-z])/g, (g: string[]) => {
|
||||
return g[1].toUpperCase()
|
||||
}) as keyof Inputs
|
||||
|
||||
return (DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS[camelCaseName] ||
|
||||
'') as string
|
||||
})
|
||||
;(core.getBooleanInput as jest.Mock).mockImplementation(name => {
|
||||
const camelCaseName = name.replace(/_([a-z])/g, (g: string[]) => {
|
||||
return g[1].toUpperCase()
|
||||
}) as keyof Inputs
|
||||
|
||||
return (DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS[camelCaseName] ||
|
||||
false) as boolean
|
||||
})
|
||||
expect(getInputs()).toMatchSnapshot()
|
||||
})
|
||||
|
||||
test('should correctly parse boolean inputs', () => {
|
||||
;(core.getInput as jest.Mock).mockImplementation(name => {
|
||||
const camelCaseName = name.replace(/_([a-z])/g, (g: string[]) => {
|
||||
return g[1].toUpperCase()
|
||||
}) as keyof Inputs
|
||||
|
||||
return (DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS[camelCaseName] ||
|
||||
'') as string
|
||||
})
|
||||
;(core.getBooleanInput as jest.Mock).mockImplementation(name => {
|
||||
switch (name) {
|
||||
case 'matrix':
|
||||
return 'true'
|
||||
case 'skip_initial_fetch':
|
||||
return 'true'
|
||||
default:
|
||||
return 'false'
|
||||
}
|
||||
})
|
||||
expect(getInputs()).toMatchSnapshot()
|
||||
})
|
||||
|
||||
test('should handle matrix alias correctly', () => {
|
||||
;(core.getBooleanInput as jest.Mock).mockImplementation(name => {
|
||||
return name === 'matrix' ? 'true' : 'false'
|
||||
})
|
||||
|
||||
const inputs = getInputs()
|
||||
expect(inputs).toHaveProperty('json', true)
|
||||
expect(inputs).toHaveProperty('escapeJson', false)
|
||||
})
|
||||
|
||||
test('should correctly parse string inputs', () => {
|
||||
;(core.getInput as jest.Mock).mockImplementation(name => {
|
||||
switch (name) {
|
||||
case 'token':
|
||||
return 'token'
|
||||
case 'api_url':
|
||||
return 'https://api.github.com'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
})
|
||||
;(core.getBooleanInput as jest.Mock).mockImplementation(name => {
|
||||
const camelCaseName = name.replace(/_([a-z])/g, (g: string[]) => {
|
||||
return g[1].toUpperCase()
|
||||
}) as keyof Inputs
|
||||
|
||||
return (DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS[camelCaseName] ||
|
||||
false) as boolean
|
||||
})
|
||||
expect(getInputs()).toMatchSnapshot()
|
||||
})
|
||||
|
||||
test('should correctly parse numeric inputs', () => {
|
||||
;(core.getInput as jest.Mock).mockImplementation(name => {
|
||||
switch (name) {
|
||||
case 'fetch_depth':
|
||||
return '5'
|
||||
case 'dir_names_max_depth':
|
||||
return '2'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
})
|
||||
;(core.getBooleanInput as jest.Mock).mockImplementation(name => {
|
||||
const camelCaseName = name.replace(/_([a-z])/g, (g: string[]) => {
|
||||
return g[1].toUpperCase()
|
||||
}) as keyof Inputs
|
||||
|
||||
return (DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS[camelCaseName] ||
|
||||
false) as boolean
|
||||
})
|
||||
expect(getInputs()).toMatchSnapshot()
|
||||
})
|
||||
|
||||
test('should handle invalid numeric inputs correctly', () => {
|
||||
;(core.getInput as jest.Mock).mockImplementation(name => {
|
||||
// TODO: Add validation for invalid numbers which should result in an error instead of NaN
|
||||
switch (name) {
|
||||
case 'fetch_depth':
|
||||
return 'invalid'
|
||||
case 'dir_names_max_depth':
|
||||
return '2'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
})
|
||||
;(core.getBooleanInput as jest.Mock).mockImplementation(name => {
|
||||
const camelCaseName = name.replace(/_([a-z])/g, (g: string[]) => {
|
||||
return g[1].toUpperCase()
|
||||
}) as keyof Inputs
|
||||
|
||||
return (DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS[camelCaseName] ||
|
||||
false) as boolean
|
||||
})
|
||||
expect(getInputs()).toMatchSnapshot()
|
||||
})
|
||||
|
||||
test('should handle negative numeric inputs correctly', () => {
|
||||
;(core.getInput as jest.Mock).mockImplementation(name => {
|
||||
// TODO: Add validation for negative numbers which should result in an error
|
||||
switch (name) {
|
||||
case 'fetch_depth':
|
||||
return '-5'
|
||||
case 'dir_names_max_depth':
|
||||
return '-2'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
})
|
||||
;(core.getBooleanInput as jest.Mock).mockImplementation(name => {
|
||||
const camelCaseName = name.replace(/_([a-z])/g, (g: string[]) => {
|
||||
return g[1].toUpperCase()
|
||||
}) as keyof Inputs
|
||||
|
||||
return (DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS[camelCaseName] ||
|
||||
false) as boolean
|
||||
})
|
||||
expect(getInputs()).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
@@ -635,7 +635,10 @@ describe('utils test', () => {
|
||||
failOnInitialDiffError: false,
|
||||
failOnSubmoduleDiffError: false,
|
||||
negationPatternsFirst: false,
|
||||
useRestApi: false
|
||||
useRestApi: false,
|
||||
excludeSubmodules: false,
|
||||
fetchMissingHistoryMaxRetries: 10,
|
||||
usePosixPathSeparator: false
|
||||
}
|
||||
|
||||
const coreWarningSpy = jest.spyOn(core, 'warning')
|
||||
|
||||
@@ -2,6 +2,7 @@ import * as core from '@actions/core'
|
||||
import * as github from '@actions/github'
|
||||
import type {RestEndpointMethodTypes} from '@octokit/rest'
|
||||
import flatten from 'lodash/flatten'
|
||||
import convertPath from '@stdlib/utils-convert-path'
|
||||
import mm from 'micromatch'
|
||||
import * as path from 'path'
|
||||
import {setOutputsAndGetModifiedAndChangedFilesStatus} from './changedFilesOutput'
|
||||
@@ -121,13 +122,13 @@ export const processChangedFiles = async ({
|
||||
export const getRenamedFiles = async ({
|
||||
inputs,
|
||||
workingDirectory,
|
||||
hasSubmodule,
|
||||
diffSubmodule,
|
||||
diffResult,
|
||||
submodulePaths
|
||||
}: {
|
||||
inputs: Inputs
|
||||
workingDirectory: string
|
||||
hasSubmodule: boolean
|
||||
diffSubmodule: boolean
|
||||
diffResult: DiffResult
|
||||
submodulePaths: string[]
|
||||
}): Promise<{paths: string; count: string}> => {
|
||||
@@ -139,7 +140,7 @@ export const getRenamedFiles = async ({
|
||||
oldNewSeparator: inputs.oldNewSeparator
|
||||
})
|
||||
|
||||
if (hasSubmodule) {
|
||||
if (diffSubmodule) {
|
||||
for (const submodulePath of submodulePaths) {
|
||||
const submoduleShaResult = await gitSubmoduleDiffSHA({
|
||||
cwd: workingDirectory,
|
||||
@@ -217,7 +218,7 @@ export type ChangedFiles = {
|
||||
|
||||
export const getAllDiffFiles = async ({
|
||||
workingDirectory,
|
||||
hasSubmodule,
|
||||
diffSubmodule,
|
||||
diffResult,
|
||||
submodulePaths,
|
||||
outputRenamedFilesAsDeletedAndAdded,
|
||||
@@ -226,7 +227,7 @@ export const getAllDiffFiles = async ({
|
||||
failOnSubmoduleDiffError
|
||||
}: {
|
||||
workingDirectory: string
|
||||
hasSubmodule: boolean
|
||||
diffSubmodule: boolean
|
||||
diffResult: DiffResult
|
||||
submodulePaths: string[]
|
||||
outputRenamedFilesAsDeletedAndAdded: boolean
|
||||
@@ -243,7 +244,7 @@ export const getAllDiffFiles = async ({
|
||||
failOnInitialDiffError
|
||||
})
|
||||
|
||||
if (hasSubmodule) {
|
||||
if (diffSubmodule) {
|
||||
for (const submodulePath of submodulePaths) {
|
||||
const submoduleShaResult = await gitSubmoduleDiffSHA({
|
||||
cwd: workingDirectory,
|
||||
@@ -355,7 +356,11 @@ function* getChangeTypeFilesGenerator({
|
||||
filePaths,
|
||||
dirNamesIncludeFilePatterns
|
||||
})) {
|
||||
yield filePath
|
||||
if (isWindows() && inputs.usePosixPathSeparator) {
|
||||
yield convertPath(filePath, 'mixed')
|
||||
} else {
|
||||
yield filePath
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -402,7 +407,11 @@ function* getAllChangeTypeFilesGenerator({
|
||||
filePaths,
|
||||
dirNamesIncludeFilePatterns
|
||||
})) {
|
||||
yield filePath
|
||||
if (isWindows() && inputs.usePosixPathSeparator) {
|
||||
yield convertPath(filePath, 'mixed')
|
||||
} else {
|
||||
yield filePath
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({
|
||||
|
||||
await setOutput({
|
||||
key: getOutputKey('any_changed', outputPrefix),
|
||||
value: allChangedFiles.paths.length > 0 && filePatterns.length > 0,
|
||||
value: allChangedFiles.paths.length > 0,
|
||||
writeOutputFiles: inputs.writeOutputFiles,
|
||||
outputDir: inputs.outputDir,
|
||||
json: inputs.json
|
||||
@@ -336,7 +336,7 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({
|
||||
|
||||
await setOutput({
|
||||
key: getOutputKey('any_modified', outputPrefix),
|
||||
value: allModifiedFiles.paths.length > 0 && filePatterns.length > 0,
|
||||
value: allModifiedFiles.paths.length > 0,
|
||||
writeOutputFiles: inputs.writeOutputFiles,
|
||||
outputDir: inputs.outputDir,
|
||||
json: inputs.json
|
||||
@@ -442,7 +442,7 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({
|
||||
|
||||
await setOutput({
|
||||
key: getOutputKey('any_deleted', outputPrefix),
|
||||
value: deletedFiles.paths.length > 0 && filePatterns.length > 0,
|
||||
value: deletedFiles.paths.length > 0,
|
||||
writeOutputFiles: inputs.writeOutputFiles,
|
||||
outputDir: inputs.outputDir,
|
||||
json: inputs.json
|
||||
@@ -496,7 +496,7 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({
|
||||
})
|
||||
|
||||
return {
|
||||
anyModified: allModifiedFiles.paths.length > 0 && filePatterns.length > 0,
|
||||
anyChanged: allChangedFiles.paths.length > 0 && filePatterns.length > 0
|
||||
anyModified: allModifiedFiles.paths.length > 0,
|
||||
anyChanged: allChangedFiles.paths.length > 0
|
||||
}
|
||||
}
|
||||
|
||||
103
src/commitSha.ts
103
src/commitSha.ts
@@ -86,15 +86,27 @@ export interface DiffResult {
|
||||
initialCommit?: boolean
|
||||
}
|
||||
|
||||
export const getSHAForNonPullRequestEvent = async (
|
||||
inputs: Inputs,
|
||||
env: Env,
|
||||
workingDirectory: string,
|
||||
isShallow: boolean,
|
||||
hasSubmodule: boolean,
|
||||
gitFetchExtraArgs: string[],
|
||||
interface SHAForNonPullRequestEvent {
|
||||
inputs: Inputs
|
||||
env: Env
|
||||
workingDirectory: string
|
||||
isShallow: boolean
|
||||
diffSubmodule: boolean
|
||||
gitFetchExtraArgs: string[]
|
||||
isTag: boolean
|
||||
): Promise<DiffResult> => {
|
||||
remoteName: string
|
||||
}
|
||||
|
||||
export const getSHAForNonPullRequestEvent = async ({
|
||||
inputs,
|
||||
env,
|
||||
workingDirectory,
|
||||
isShallow,
|
||||
diffSubmodule,
|
||||
gitFetchExtraArgs,
|
||||
isTag,
|
||||
remoteName
|
||||
}: SHAForNonPullRequestEvent): Promise<DiffResult> => {
|
||||
let targetBranch = env.GITHUB_REF_NAME
|
||||
let currentBranch = targetBranch
|
||||
let initialCommit = false
|
||||
@@ -122,8 +134,8 @@ export const getSHAForNonPullRequestEvent = async (
|
||||
'-u',
|
||||
'--progress',
|
||||
`--deepen=${inputs.fetchDepth}`,
|
||||
'origin',
|
||||
`+refs/heads/${sourceBranch}:refs/remotes/origin/${sourceBranch}`
|
||||
remoteName,
|
||||
`+refs/heads/${sourceBranch}:refs/remotes/${remoteName}/${sourceBranch}`
|
||||
]
|
||||
})
|
||||
} else {
|
||||
@@ -134,13 +146,13 @@ export const getSHAForNonPullRequestEvent = async (
|
||||
'-u',
|
||||
'--progress',
|
||||
`--deepen=${inputs.fetchDepth}`,
|
||||
'origin',
|
||||
`+refs/heads/${targetBranch}:refs/remotes/origin/${targetBranch}`
|
||||
remoteName,
|
||||
`+refs/heads/${targetBranch}:refs/remotes/${remoteName}/${targetBranch}`
|
||||
]
|
||||
})
|
||||
}
|
||||
|
||||
if (hasSubmodule) {
|
||||
if (diffSubmodule) {
|
||||
await gitFetchSubmodules({
|
||||
cwd: workingDirectory,
|
||||
args: [
|
||||
@@ -152,7 +164,7 @@ export const getSHAForNonPullRequestEvent = async (
|
||||
})
|
||||
}
|
||||
} else {
|
||||
if (hasSubmodule && inputs.fetchAdditionalSubmoduleHistory) {
|
||||
if (diffSubmodule && inputs.fetchAdditionalSubmoduleHistory) {
|
||||
await gitFetchSubmodules({
|
||||
cwd: workingDirectory,
|
||||
args: [
|
||||
@@ -307,14 +319,23 @@ export const getSHAForNonPullRequestEvent = async (
|
||||
}
|
||||
}
|
||||
|
||||
export const getSHAForPullRequestEvent = async (
|
||||
inputs: Inputs,
|
||||
env: Env,
|
||||
workingDirectory: string,
|
||||
isShallow: boolean,
|
||||
hasSubmodule: boolean,
|
||||
interface SHAForPullRequestEvent {
|
||||
inputs: Inputs
|
||||
workingDirectory: string
|
||||
isShallow: boolean
|
||||
diffSubmodule: boolean
|
||||
gitFetchExtraArgs: string[]
|
||||
): Promise<DiffResult> => {
|
||||
remoteName: string
|
||||
}
|
||||
|
||||
export const getSHAForPullRequestEvent = async ({
|
||||
inputs,
|
||||
workingDirectory,
|
||||
isShallow,
|
||||
diffSubmodule,
|
||||
gitFetchExtraArgs,
|
||||
remoteName
|
||||
}: SHAForPullRequestEvent): Promise<DiffResult> => {
|
||||
let targetBranch = github.context.payload.pull_request?.base?.ref
|
||||
const currentBranch = github.context.payload.pull_request?.head?.ref
|
||||
if (inputs.sinceLastRemoteCommit) {
|
||||
@@ -330,7 +351,7 @@ export const getSHAForPullRequestEvent = async (
|
||||
...gitFetchExtraArgs,
|
||||
'-u',
|
||||
'--progress',
|
||||
'origin',
|
||||
remoteName,
|
||||
`pull/${github.context.payload.pull_request?.number}/head:${currentBranch}`
|
||||
]
|
||||
})
|
||||
@@ -343,8 +364,8 @@ export const getSHAForPullRequestEvent = async (
|
||||
'-u',
|
||||
'--progress',
|
||||
`--deepen=${inputs.fetchDepth}`,
|
||||
'origin',
|
||||
`+refs/heads/${currentBranch}*:refs/remotes/origin/${currentBranch}*`
|
||||
remoteName,
|
||||
`+refs/heads/${currentBranch}*:refs/remotes/${remoteName}/${currentBranch}*`
|
||||
]
|
||||
})
|
||||
}
|
||||
@@ -364,12 +385,12 @@ export const getSHAForPullRequestEvent = async (
|
||||
'-u',
|
||||
'--progress',
|
||||
`--deepen=${inputs.fetchDepth}`,
|
||||
'origin',
|
||||
`+refs/heads/${targetBranch}:refs/remotes/origin/${targetBranch}`
|
||||
remoteName,
|
||||
`+refs/heads/${targetBranch}:refs/remotes/${remoteName}/${targetBranch}`
|
||||
]
|
||||
})
|
||||
|
||||
if (hasSubmodule) {
|
||||
if (diffSubmodule) {
|
||||
await gitFetchSubmodules({
|
||||
cwd: workingDirectory,
|
||||
args: [
|
||||
@@ -382,7 +403,7 @@ export const getSHAForPullRequestEvent = async (
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (hasSubmodule && inputs.fetchAdditionalSubmoduleHistory) {
|
||||
if (diffSubmodule && inputs.fetchAdditionalSubmoduleHistory) {
|
||||
await gitFetchSubmodules({
|
||||
cwd: workingDirectory,
|
||||
args: [
|
||||
@@ -427,10 +448,7 @@ export const getSHAForPullRequestEvent = async (
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
!github.context.payload.pull_request?.base?.ref ||
|
||||
github.context.payload.pull_request?.head?.repo?.fork === true
|
||||
) {
|
||||
if (!github.context.payload.pull_request?.base?.ref) {
|
||||
diff = '..'
|
||||
}
|
||||
|
||||
@@ -487,17 +505,14 @@ export const getSHAForPullRequestEvent = async (
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (github.context.payload.action === 'closed') {
|
||||
previousSha = github.context.payload.pull_request?.base?.sha
|
||||
} else {
|
||||
previousSha = github.context.payload.pull_request?.base?.sha
|
||||
|
||||
if (!previousSha) {
|
||||
previousSha = await getRemoteBranchHeadSha({
|
||||
cwd: workingDirectory,
|
||||
remoteName,
|
||||
branch: targetBranch
|
||||
})
|
||||
|
||||
if (!previousSha) {
|
||||
previousSha = github.context.payload.pull_request?.base?.sha
|
||||
}
|
||||
}
|
||||
|
||||
if (isShallow) {
|
||||
@@ -513,7 +528,11 @@ export const getSHAForPullRequestEvent = async (
|
||||
'Merge base is not in the local history, fetching remote target branch...'
|
||||
)
|
||||
|
||||
for (let i = 1; i <= 10; i++) {
|
||||
for (
|
||||
let i = 1;
|
||||
i <= (inputs.fetchMissingHistoryMaxRetries || 10);
|
||||
i++
|
||||
) {
|
||||
await gitFetch({
|
||||
cwd: workingDirectory,
|
||||
args: [
|
||||
@@ -521,8 +540,8 @@ export const getSHAForPullRequestEvent = async (
|
||||
'-u',
|
||||
'--progress',
|
||||
`--deepen=${inputs.fetchDepth}`,
|
||||
'origin',
|
||||
`+refs/heads/${targetBranch}:refs/remotes/origin/${targetBranch}`
|
||||
remoteName,
|
||||
`+refs/heads/${targetBranch}:refs/remotes/${remoteName}/${targetBranch}`
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
@@ -20,5 +20,8 @@ export const DEFAULT_VALUES_OF_UNSUPPORTED_API_INPUTS: Partial<Inputs> = {
|
||||
oldNewFilesSeparator: ' ',
|
||||
skipInitialFetch: false,
|
||||
fetchAdditionalSubmoduleHistory: false,
|
||||
dirNamesDeletedFilesIncludeOnlyDeletedDirs: false
|
||||
dirNamesDeletedFilesIncludeOnlyDeletedDirs: false,
|
||||
excludeSubmodules: false,
|
||||
fetchMissingHistoryMaxRetries: 10,
|
||||
usePosixPathSeparator: false
|
||||
}
|
||||
|
||||
@@ -54,6 +54,9 @@ export type Inputs = {
|
||||
failOnSubmoduleDiffError: boolean
|
||||
negationPatternsFirst: boolean
|
||||
useRestApi: boolean
|
||||
excludeSubmodules: boolean
|
||||
fetchMissingHistoryMaxRetries?: number
|
||||
usePosixPathSeparator: boolean
|
||||
}
|
||||
|
||||
export const getInputs = (): Inputs => {
|
||||
@@ -154,8 +157,15 @@ export const getInputs = (): Inputs => {
|
||||
trimWhitespace: false
|
||||
}
|
||||
)
|
||||
const json = core.getBooleanInput('json', {required: false})
|
||||
const escapeJson = core.getBooleanInput('escape_json', {required: false})
|
||||
let json = core.getBooleanInput('json', {required: false})
|
||||
let escapeJson = core.getBooleanInput('escape_json', {required: false})
|
||||
const matrix = core.getBooleanInput('matrix', {required: false})
|
||||
|
||||
if (matrix) {
|
||||
json = true
|
||||
escapeJson = false
|
||||
}
|
||||
|
||||
const safeOutput = core.getBooleanInput('safe_output', {required: false})
|
||||
const fetchDepth = core.getInput('fetch_depth', {required: false})
|
||||
const sinceLastRemoteCommit = core.getBooleanInput(
|
||||
@@ -233,6 +243,22 @@ export const getInputs = (): Inputs => {
|
||||
required: false
|
||||
})
|
||||
|
||||
const excludeSubmodules = core.getBooleanInput('exclude_submodules', {
|
||||
required: false
|
||||
})
|
||||
|
||||
const fetchMissingHistoryMaxRetries = core.getInput(
|
||||
'fetch_missing_history_max_retries',
|
||||
{required: false}
|
||||
)
|
||||
|
||||
const usePosixPathSeparator = core.getBooleanInput(
|
||||
'use_posix_path_separator',
|
||||
{
|
||||
required: false
|
||||
}
|
||||
)
|
||||
|
||||
const inputs: Inputs = {
|
||||
files,
|
||||
filesSeparator,
|
||||
@@ -272,6 +298,8 @@ export const getInputs = (): Inputs => {
|
||||
skipInitialFetch,
|
||||
fetchAdditionalSubmoduleHistory,
|
||||
dirNamesDeletedFilesIncludeOnlyDeletedDirs,
|
||||
excludeSubmodules,
|
||||
usePosixPathSeparator,
|
||||
// End Not Supported via REST API
|
||||
dirNames,
|
||||
dirNamesExcludeCurrentDir,
|
||||
@@ -290,6 +318,7 @@ export const getInputs = (): Inputs => {
|
||||
}
|
||||
|
||||
if (fetchDepth) {
|
||||
// Fallback to at least 2 if the fetch_depth is less than 2
|
||||
inputs.fetchDepth = Math.max(parseInt(fetchDepth, 10), 2)
|
||||
}
|
||||
|
||||
@@ -297,5 +326,13 @@ export const getInputs = (): Inputs => {
|
||||
inputs.dirNamesMaxDepth = parseInt(dirNamesMaxDepth, 10)
|
||||
}
|
||||
|
||||
if (fetchMissingHistoryMaxRetries) {
|
||||
// Fallback to at least 1 if the fetch_missing_history_max_retries is less than 1
|
||||
inputs.fetchMissingHistoryMaxRetries = Math.max(
|
||||
parseInt(fetchMissingHistoryMaxRetries, 10),
|
||||
1
|
||||
)
|
||||
}
|
||||
|
||||
return inputs
|
||||
}
|
||||
|
||||
43
src/main.ts
43
src/main.ts
@@ -64,14 +64,26 @@ const getChangedFilesFromLocalGitHistory = async ({
|
||||
}
|
||||
|
||||
const isShallow = await isRepoShallow({cwd: workingDirectory})
|
||||
const hasSubmodule = await submoduleExists({cwd: workingDirectory})
|
||||
let gitFetchExtraArgs = ['--no-tags', '--prune', '--recurse-submodules']
|
||||
let diffSubmodule = false
|
||||
let gitFetchExtraArgs = ['--no-tags', '--prune']
|
||||
|
||||
if (inputs.excludeSubmodules) {
|
||||
core.info('Excluding submodules from the diff')
|
||||
} else {
|
||||
diffSubmodule = await submoduleExists({cwd: workingDirectory})
|
||||
}
|
||||
|
||||
if (diffSubmodule) {
|
||||
gitFetchExtraArgs.push('--recurse-submodules')
|
||||
}
|
||||
|
||||
const isTag = env.GITHUB_REF?.startsWith('refs/tags/')
|
||||
const remoteName = 'origin'
|
||||
const outputRenamedFilesAsDeletedAndAdded =
|
||||
inputs.outputRenamedFilesAsDeletedAndAdded
|
||||
let submodulePaths: string[] = []
|
||||
|
||||
if (hasSubmodule) {
|
||||
if (diffSubmodule) {
|
||||
submodulePaths = await getSubmodulePath({cwd: workingDirectory})
|
||||
}
|
||||
|
||||
@@ -83,29 +95,30 @@ const getChangedFilesFromLocalGitHistory = async ({
|
||||
|
||||
if (!github.context.payload.pull_request?.base?.ref) {
|
||||
core.info(`Running on a ${github.context.eventName || 'push'} event...`)
|
||||
diffResult = await getSHAForNonPullRequestEvent(
|
||||
diffResult = await getSHAForNonPullRequestEvent({
|
||||
inputs,
|
||||
env,
|
||||
workingDirectory,
|
||||
isShallow,
|
||||
hasSubmodule,
|
||||
diffSubmodule,
|
||||
gitFetchExtraArgs,
|
||||
isTag
|
||||
)
|
||||
isTag,
|
||||
remoteName
|
||||
})
|
||||
} else {
|
||||
core.info(
|
||||
`Running on a ${github.context.eventName || 'pull_request'} (${
|
||||
github.context.payload.action
|
||||
}) event...`
|
||||
)
|
||||
diffResult = await getSHAForPullRequestEvent(
|
||||
diffResult = await getSHAForPullRequestEvent({
|
||||
inputs,
|
||||
env,
|
||||
workingDirectory,
|
||||
isShallow,
|
||||
hasSubmodule,
|
||||
gitFetchExtraArgs
|
||||
)
|
||||
diffSubmodule,
|
||||
gitFetchExtraArgs,
|
||||
remoteName
|
||||
})
|
||||
}
|
||||
|
||||
if (diffResult.initialCommit) {
|
||||
@@ -120,7 +133,7 @@ const getChangedFilesFromLocalGitHistory = async ({
|
||||
|
||||
const allDiffFiles = await getAllDiffFiles({
|
||||
workingDirectory,
|
||||
hasSubmodule,
|
||||
diffSubmodule,
|
||||
diffResult,
|
||||
submodulePaths,
|
||||
outputRenamedFilesAsDeletedAndAdded,
|
||||
@@ -146,7 +159,7 @@ const getChangedFilesFromLocalGitHistory = async ({
|
||||
deletedFiles: allDiffFiles[ChangeTypeEnum.Deleted],
|
||||
recoverPatterns,
|
||||
diffResult,
|
||||
hasSubmodule,
|
||||
diffSubmodule,
|
||||
submodulePaths
|
||||
})
|
||||
}
|
||||
@@ -164,7 +177,7 @@ const getChangedFilesFromLocalGitHistory = async ({
|
||||
const allOldNewRenamedFiles = await getRenamedFiles({
|
||||
inputs,
|
||||
workingDirectory,
|
||||
hasSubmodule,
|
||||
diffSubmodule,
|
||||
diffResult,
|
||||
submodulePaths
|
||||
})
|
||||
|
||||
26
src/utils.ts
26
src/utils.ts
@@ -32,11 +32,13 @@ export const normalizeSeparators = (p: string): string => {
|
||||
|
||||
// Remove redundant slashes
|
||||
const isUnc = /^\\\\+[^\\]/.test(p) // e.g. \\hello
|
||||
return (isUnc ? '\\' : '') + p.replace(/\\\\+/g, '\\') // preserve leading \\ for UNC
|
||||
p = (isUnc ? '\\' : '') + p.replace(/\\\\+/g, '\\') // preserve leading \\ for UNC
|
||||
} else {
|
||||
// Remove redundant slashes on Linux/macOS
|
||||
p = p.replace(/\/\/+/g, '/')
|
||||
}
|
||||
|
||||
// Remove redundant slashes
|
||||
return p.replace(/\/\/+/g, '/')
|
||||
return p
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -680,25 +682,21 @@ export const isInsideWorkTree = async ({
|
||||
}
|
||||
)
|
||||
|
||||
if (stdout.trim() !== 'true') {
|
||||
core.debug(
|
||||
`The current working directory is not inside a git repository: ${cwd}`
|
||||
)
|
||||
}
|
||||
|
||||
return stdout.trim() === 'true'
|
||||
}
|
||||
|
||||
export const getRemoteBranchHeadSha = async ({
|
||||
cwd,
|
||||
branch
|
||||
branch,
|
||||
remoteName
|
||||
}: {
|
||||
cwd: string
|
||||
branch: string
|
||||
remoteName: string
|
||||
}): Promise<string> => {
|
||||
const {stdout} = await exec.getExecOutput(
|
||||
'git',
|
||||
['rev-parse', `origin/${branch}`],
|
||||
['rev-parse', `${remoteName}/${branch}`],
|
||||
{
|
||||
cwd,
|
||||
silent: !core.isDebug()
|
||||
@@ -1417,7 +1415,7 @@ export const recoverDeletedFiles = async ({
|
||||
deletedFiles,
|
||||
recoverPatterns,
|
||||
diffResult,
|
||||
hasSubmodule,
|
||||
diffSubmodule,
|
||||
submodulePaths
|
||||
}: {
|
||||
inputs: Inputs
|
||||
@@ -1425,7 +1423,7 @@ export const recoverDeletedFiles = async ({
|
||||
deletedFiles: string[]
|
||||
recoverPatterns: string[]
|
||||
diffResult: DiffResult
|
||||
hasSubmodule: boolean
|
||||
diffSubmodule: boolean
|
||||
submodulePaths: string[]
|
||||
}): Promise<void> => {
|
||||
let recoverableDeletedFiles = deletedFiles
|
||||
@@ -1455,7 +1453,7 @@ export const recoverDeletedFiles = async ({
|
||||
|
||||
const submodulePath = submodulePaths.find(p => deletedFile.startsWith(p))
|
||||
|
||||
if (hasSubmodule && submodulePath) {
|
||||
if (diffSubmodule && submodulePath) {
|
||||
const submoduleShaResult = await gitSubmoduleDiffSHA({
|
||||
cwd: workingDirectory,
|
||||
parentSha1: diffResult.previousSha,
|
||||
|
||||
Reference in New Issue
Block a user