From 502b44798b5d661c0f0830708888a99d60ef282b Mon Sep 17 00:00:00 2001 From: BSKY Date: Tue, 8 Oct 2019 11:03:40 +0900 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bca58e9..836158d 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,9 @@ Here are a few use cases for this action: ```yml name: Triage -on: [issues] +on: + issues: + types: [opened] jobs: applyTriageLabel: name: Apply Triage Label @@ -20,14 +22,16 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - args: label triage --action=opened + args: label triage ``` ## Commenting on an issue ```yml name: Triage -on: [issues] +on: + issues: + types: [opened] jobs: commentOnNewIssues: name: Comment On New Issues @@ -39,14 +43,16 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - args: comment "Hello World" --action=opened + args: comment "Hello World" ``` ## Assigning any newly created issues ```yml name: Triage -on: [issues] +on: + issues: + types: [opened] jobs: assignMonaLisa: name: Assign MonaLisa @@ -58,7 +64,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - args: assign @monalisaoctocat --action=opened + args: assign @monalisaoctocat ``` ## Contributing