Skip to content

GitHub action to automatically comment git submodule status to the PR

License

Notifications You must be signed in to change notification settings

rematocorp/submodule-status-commenter

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Git Submodule Status Commenter

This action informs reviewers about the submodule status in the PR:

Submodule "foo" status

Configuration

name: Submodule status commenter
on:
    pull_request:
        types: [opened, synchronize, reopened, ready_for_review]
jobs:
    run:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v4
              with:
                  token: ${{ secrets.GITHUB_TOKEN }}
                  submodules: true

            - uses: rematocorp/submodule-status-commenter@v2
              with:
                  github-token: ${{ secrets.GITHUB_TOKEN }}