Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/actions/infrastructure/get-changed-files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ A reusable composite action that retrieves the list of files changed in a pull r
- Optional filtering by file pattern
- Returns files as JSON array for easy consumption
- Filters out deleted files (only returns added, modified, or renamed files)
- Handles up to 100 changed files per request
- Handles all changed files (no limit)

## Usage

### Basic Usage (Pull Requests Only)

```yaml
- name: Checkout repository
uses: actions/checkout@v4

- name: Get changed files
id: changed-files
uses: "./.github/actions/infrastructure/get-changed-files"
Expand Down Expand Up @@ -102,7 +105,7 @@ The action supports simple filter patterns:

## Limitations

- Simple filter patterns only (no complex glob or regex patterns)
- Supports simple filter patterns: extension matching (`*.ext`) and path prefix matching. Complex glob or regex patterns are not supported.

## Pagination

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ runs:
}

// Apply filter if provided
// Note: Filter matching is intentionally case-insensitive for cross-platform consistency
if (filter) {
const filterLower = filter.toLowerCase();
const beforeFilter = changedFiles.length;
Expand Down
Loading