Skip to content

Github action to add annotations on a pull request

Notifications You must be signed in to change notification settings

pmagentur/linting-annotations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linting-annotations-action

Github action to add annotations on a pull request without the limitation of github actions. It adds the annotations via the P&M code-checker-bot

Usage

Annotations must be an array of

{path: string, startLine: string|int, endline: string|int, annotationsLevel: failure|warning|notice, message: string}

Example usage as a step in a workflow file

- name: Add Annotations
  uses: pmagentur/linting-annotations@master
  if: failure() && steps.linter.outputs.annotations != ''
  with:
    checkName: 'Java Linting'
    commitSha: ${{ github.event.pull_request.head.sha }}
    annotations: ${{ steps.linter.outputs.annotations }}