add label has-ellie for issues containing https://ellie-app.com/

https://www.ellie-app.com is used in the issue template to avoid
triggering the action.
This commit is contained in:
Rémi Lefèvre 2020-04-29 17:52:34 +02:00
parent 60f91ffcde
commit d1d2da8ff9
3 changed files with 17 additions and 4 deletions

View File

@ -8,7 +8,7 @@ about: Capture any unexpected behavior or bugs you've found with this library
If you can, please put together a [Short, Self Contained, Correct, Example](http://sscce.org/) of what you're encountering. It really helps if the example is as succinct as possible.
Here's a basic template in [ellie](https://ellie-app.com/3fhCyrxjLw3a1) to get you started!
Here's a basic template in [ellie](https://www.ellie-app.com/3fhCyrxjLw3a1) to get you started!
**Expected behavior**
A clear and concise description of what you expected to happen.

View File

@ -0,0 +1,14 @@
name: "Label issue from body keyword"
on:
issues:
types: [opened, edited]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: Naturalclar/issue-action@v1.0.0
with:
keywords: '["https://ellie-app.com/"]'
labels: '["has-ellie"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -1,4 +1,4 @@
name: "Set Issue Label"
name: "Label issue from comment keyword"
on:
issue_comment:
types: [created, edited]
@ -19,10 +19,9 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#has-ellie"]'
keywords: '["#has-ellie", "https://ellie-app.com/"]'
labels: '["has-ellie"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#no-ellie"]'