Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/actions/ruling-diff-comment/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Ruling Diff Comment'
description: 'Posts a human-readable summary of ruling file changes on PRs'

inputs:
pr-number:
description: 'Pull request number'
required: true
repository:
description: 'owner/repo'
required: true
base-sha:
description: 'Base commit SHA for diff'
required: true
head-sha:
description: 'Head commit SHA for diff'
required: true

runs:
using: 'composite'
steps:
- name: Generate and post ruling diff comment
shell: bash
env:
GH_TOKEN: ${{ env.GH_TOKEN }}
PR_NUMBER: ${{ inputs.pr-number }}
REPOSITORY: ${{ inputs.repository }}
BASE_SHA: ${{ inputs.base-sha }}
HEAD_SHA: ${{ inputs.head-sha }}
run: |
python3 "${{ github.action_path }}/ruling_diff.py" \
--pr-number "$PR_NUMBER" \
--repository "$REPOSITORY" \
--base-sha "$BASE_SHA" \
--head-sha "$HEAD_SHA"
Loading
Loading