From a0fa063143cfe398fd58db2cd21f05d4267b6e6d Mon Sep 17 00:00:00 2001 From: anthonylaye Date: Fri, 17 Jun 2022 10:27:31 +0200 Subject: [PATCH] Add example to readme --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 42cb191..7b58d51 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,29 @@ jobs: github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} labeled: bug, needs-triage label-operator: OR + +``` +##### Example Usage: Adds all issues opened that do not include the label `bug` OR `needs-triage` + +```yaml +name: Adds all issues that don't include the 'bug' or 'needs-triage' labels to project board + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs//projects/ + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: bug, needs-triage + label-operator: NOT ``` ##### Example Usage: Pull Requests labeled with `needs-review` and `size/XL`