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

template selection logic - multiple criteria #13

Closed
Jerboa-app opened this issue Jan 19, 2024 · 2 comments
Closed

template selection logic - multiple criteria #13

Jerboa-app opened this issue Jan 19, 2024 · 2 comments

Comments

@Jerboa-app
Copy link
Contributor

Jerboa-app commented Jan 19, 2024

    "github_pull_request":
    {
        "hmac": "this_is_secret_number_one",
        "templates":
        [ 
            {
                "checks": 
                [ 
                    {
                        "value_path": "sender/login",
                        "value_not_in": [ "Jerboa-app" ],
                        "value_in": [ ],
                        "operation": ""
                    },
                    {
                        "value_path": "action",
                        "value_not_in": [ ],
                        "value_in": [ "opened" ],
                        "operation": "and"
                    }
                ],
                "body": "New pull request from <sender/login> to <repository/name>!"
            }
        ],
        "end_point": { "addr": "" },
        "dont_message_on_private_repos": true
    }
@Jerboa-app
Copy link
Contributor Author

Evaluate each test

  • value found, and value in a list and not in another list
  • then compose each check with the given operation
  • select if resulting expression is passed

@Jerboa-app
Copy link
Contributor Author

currently will not bother with the operation, all must be satisfied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant