# suggest-changes **Repository Path**: mirrors_buger/suggest-changes ## Basic Information - **Project Name**: suggest-changes - **Description**: This GitHub Action will take the changes from the Git working directory and apply them as GitHub code review suggestions. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-25 - **Last Updated**: 2026-04-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Suggest changes This GitHub Action takes changes from the working directory (using `git diff`) and applies them as suggested changes in a pull request review. This can be useful after running a linter or formatter that automatically makes fixes for you. - Gives contributors an opportunity to review and accept automated changes. - Enables semi-automated changes to pull requests without the needing to use a personal access token (PAT) or [GitHub App installation token](https://github.com/actions/create-github-app-token) to trigger workflow runs. > [!NOTE] > This GitHub Action only works on [`pull_request`](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request) workflow events. ## Usage You can use this action in an existing workflow and have it run after a linter or formatter step. For example, if you have a workflow that runs [markdownlint](https://github.com/DavidAnson/markdownlint) on all Markdown files in a pull request, you can use this action to suggest changes to the pull request after markdownlint has run. ```yaml name: 'markdownlint' on: pull_request: paths: ['**/*.md'] permissions: contents: read pull-requests: write jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: DavidAnson/markdownlint-cli2-action@v20 id: markdownlint with: fix: true globs: '**/*.md' # Check if markdownlint made any fixes - uses: tj-actions/verify-changed-files@v20 id: verify-changed-files if: always() && steps.markdownlint.outcome != 'skipped' with: # Fail if files were changed (this indicates there are linting errors to fix) fail-if-changed: 'true' # Suggest fixes if any were made - uses: parkerbxyz/suggest-changes@v2 if: failure() && steps.verify-changed-files.outcome == 'failure' with: comment: 'Please commit the suggested changes from markdownlint.' event: 'REQUEST_CHANGES' ``` > [!NOTE] > Suggested changes are limited to [3000 files per pull request](https://docs.github.com/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests-files) Here is what an automated pull request review with suggested changes would look like using the workflow configuration above: A screenshot showing an automated pull request review with suggested changes