Skip to Content
PR CommentsCombined Signals

Combined Signals

Save this as .github/workflows/dependency-signals.yml:

name: Dependency Signals on: pull_request: types: [opened, synchronize, reopened] jobs: dependency-signals: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Post dependency signals uses: dev-herald/comment@v1 with: api-key: ${{ secrets.DEV_HERALD_API_KEY }} pr-number: ${{ github.event.pull_request.number }} sticky-id: dependency-signals signals: | - DEPENDENCY_DIFF - NEW_DEPENDENCY enable-cve: 'true' max-deps: '50'

One step posts both signals as a single sticky comment. The order of the list is the order of the sections.

DEPENDENCY_DIFF and NEW_DEPENDENCY need fetch-depth: 0 so Dev Herald can compare against the base branch. See Dependency Comments for what each signal shows.

  • A signal with nothing to report is omitted from the comment. When a successful run has no sections left, delete the sticky comment so the previous result does not stay on the pull request. See Removing a stale comment.
  • enable-cve, max-deps, and include apply to every signal in the list. There is no per-signal override.
  • Use signals on its own in that step (not together with signal, template, or comment).

Delete that comment only when the check succeeds and every section is empty. A failed check should leave the existing comment in place.

TEST_RESULTS can be added to the same list. Its extra inputs stay on the step. See Test Results.

Last updated on