An open API service indexing awesome lists of open source software.

https://github.com/rematocorp/submodule-status-commenter

GitHub action to automatically comment git submodule status to the PR
https://github.com/rematocorp/submodule-status-commenter

code-review git github-actions pull-request submodule

Last synced: 5 months ago
JSON representation

GitHub action to automatically comment git submodule status to the PR

Awesome Lists containing this project

README

          

# Git Submodule Status Commenter

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

> **Submodule "foo" status**
>
> - **[Current branch](#)**: feature/bar
> - **Behind main**: 2 (4 days)
> - **Ahead main**: 1
> - **[Pull request](#)**: Introduce new buttons
> - **[Last commit](#)**: _"Merge pull request foo#182" by John Doe_

## Configuration

```yaml
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 }}
```