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

Enable passing options to handlers #4

Closed
andrew-codes opened this Issue Mar 1, 2019 · 0 comments

Comments

Projects
1 participant
@andrew-codes
Copy link
Owner

andrew-codes commented Mar 1, 2019

Some handlers may need additional options passed to them. For example, a handler which updates V1 will need an access token. I feel we should take a leaf out of babel and other's approach via syntax similar to this:

webhooked({
    handlers: [
        '@andrew-codes/webhooked-handler-test',
        [
            'webhooked-handler-that-needs-options',
           {
                option1: 'some value',
                token: 'a token',
           },
        ],
    ]
})

@andrew-codes andrew-codes added this to To do in Team Mar 1, 2019

@andrew-codes andrew-codes moved this from To do to In progress in Team Mar 1, 2019

andrew-codes added a commit that referenced this issue Mar 1, 2019

@andrew-codes andrew-codes moved this from In progress to Needs review in Team Mar 1, 2019

Team automation moved this from Needs review to Done Mar 1, 2019

@andrew-codes andrew-codes referenced this issue Mar 1, 2019

Closed

Plugin: link a gh issue to a story #2

5 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.