mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 16:16:21 +00:00
Fix example function arguments
This commit is contained in:
@@ -211,7 +211,7 @@ _Note that the script path given to `require()` must be an **absolute path** in
|
|||||||
And then export a function from your module:
|
And then export a function from your module:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
module.exports = (github, context) => {
|
module.exports = ({github, context}) => {
|
||||||
return context.payload.client_payload.value
|
return context.payload.client_payload.value
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user