Skip to content

Instantly share code, notes, and snippets.

@Palleas
Created June 22, 2018 18:51
Show Gist options
  • Save Palleas/62389ef068a1bab9d12bc3887947f9f0 to your computer and use it in GitHub Desktop.
Save Palleas/62389ef068a1bab9d12bc3887947f9f0 to your computer and use it in GitHub Desktop.
import { message, warn, danger, markdown } from "danger"
export default async () => {
const issue = danger.github.issue;
console.log('Dealing with an issue here', { issue });
message("Hi!");
warn('Uh-oh, that is not good');
markdown('# This does not work, does it?');
}
@Palleas
Copy link
Author

Palleas commented Jun 22, 2018

Output from latest run:

info: [runner] - Commenting, with results:
mds: 2
messages: 2
warns: 2
fails: 0

  danger:executor Got Results back, current settings { dangerID: 'peril',
  jsonOnly: false,
  stdoutOnly: false,
  verbose: true,
  accessTokenIsGitHubApp: true } +0ms
  danger:executor Posting via handlePostingResults +0ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment