smorinlabs/difftree PR diff-tree comment
Post an ASCII diff-tree of a pull request's changes as a single, self-updating PR comment, rendered by the difftree CLI (difftree --pr).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| base-ref | Branch/ref to diff against. Defaults to the pull request base (github.event.pull_request.base.ref). Compared as origin/<base-ref>. | no | "" |
| comment | Post/update the PR comment. Set to "false" to compute outputs only. | no | true |
| advertise | Append a small "Get your own diff tree" attribution footer to the comment. Set to "false" to disable. | no | true |
| level | Maximum tree depth (difftree --level N). Unset means no limit. | no | "" |
| dirs-only | Show directories only (difftree --dirs-only). | no | false |
| extra-args | Extra arguments appended verbatim to the difftree invocation. | no | "" |
| difftree-version | difftree crates.io version to install. | no | 0.3.0 |
| github-token | Token used to post the PR comment. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| tree | The full rendered ASCII diff-tree text. |
| files-changed | Number of files changed between the base and the PR head. |
| comment-url | HTML URL of the created/updated PR comment, when one was posted. |