https://github.com/orijtech/consensuswarn
cosmos-sdk state diffing tool
https://github.com/orijtech/consensuswarn
Last synced: 4 months ago
JSON representation
cosmos-sdk state diffing tool
- Host: GitHub
- URL: https://github.com/orijtech/consensuswarn
- Owner: orijtech
- License: apache-2.0
- Created: 2022-11-05T03:25:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T22:32:24.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T21:56:02.263Z (over 1 year ago)
- Language: Go
- Size: 29.3 KB
- Stars: 7
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Consensus Warnings GitHub Action
The consensuswarn GitHub action takes a set of Go function and method roots and checks whether the
current PR touches any of the roots, or any function or method directly or indirectly called by
a root. If so, a comment is posted on the PR with the affected callstacks.
Function and methods roots are specified on the form
```
example.com/pkg/path.Type.Method
```
functions use
```
example.com/pkg/path.Function
```
## Example Workflow
```
name: "Warn about consensus code changes"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
main:
permissions:
pull-requests: write # For reading the PR and posting comment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: orijtech/consensuswarn@main
with:
roots: 'github.com/cosmos/cosmos-sdk/baseapp.BaseApp.DeliverTx,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.BeginBlock,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.EndBlock,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.Commit'
```