Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Danger #50

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
FIx
Igor Oleinikov committed Sep 3, 2019
commit b0d57b8e14220114c6ddc6727bac55bef1020863
2 changes: 1 addition & 1 deletion .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -12,6 +12,6 @@ jobs:
- name: Danger
uses: danger/danger-js@9.1.6
with:
args: '--use-github-checks --dangerfile ./.github/workflows/js/dangerfile.ts'
args: '--dangerfile ./.github/workflows/js/dangerfile.ts'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/js/dangerfile.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { danger, fail } from 'danger';
import yarn from 'danger-plugin-yarn'
// import yarn from 'danger-plugin-yarn'
// import jest from "danger-plugin-jest"

export default async () => {
if (danger.github.pr) {
console.log('PR exists', danger.github.pr.html_url);
fail('This dangerfile is not ready yet.');
} else {
fail('PR does not exist');
}

await yarn();
// await yarn();
}