You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because im doing it from a js file action script, this is not the same library .
Here is the js script that was needed to do the job with the @actions/github library.
from : https://octokit.github.io/rest.js/v21/
So I've used a var object named options instead of anonymous object and it started working.
And path became okay : https://api.github.com/repos/Owner/repo/issues/issueNumber/comments
I'm sharing just in case someone got the same trouble.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
About creating comment in javascript on github action as this example code on the site : https://github.com/marketplace/actions/github-script
Here is the code :
On my side i do with an action script js file like this tutorial show :
https://docs.github.com/fr/actions/sharing-automations/creating-actions/creating-a-javascript-action
Because im doing it from a js file action script, this is not the same library .
Here is the js script that was needed to do the job with the @actions/github library.
from : https://octokit.github.io/rest.js/v21/
When i was sending the request, the url path was broken 404. All my property on path were replaced by comma like this :
https://api.github.com/repos/Owner,repo,/issues/issueNumber/comments
So I've used a var object named options instead of anonymous object and it started working.
And path became okay :
https://api.github.com/repos/Owner/repo/issues/issueNumber/comments
I'm sharing just in case someone got the same trouble.
Beta Was this translation helpful? Give feedback.
All reactions