This pull request primarily introduces two new JavaScript files, downloadArtefact.js and listArtefacts.js, which utilize the Octokit library to interact with the GitHub API. The downloadArtefact.js file contains a program to download an artifact from a specific repository, while the listArtefacts.js file contains a program to list the artifacts of a given repository. Additionally, the package.json file has been updated to include the necessary dependencies for these new files.
Here are the most important changes:
New JavaScript files:
downloadArtefact.js: This new file uses the Octokit library to download an artifact from a specific GitHub repository. It utilizes the octokit.rest.actions.downloadArtifact method to send the API request and logs the response to the console.
listArtefacts.js: Another new file that uses the Octokit library, but this time to list the artifacts of a given GitHub repository. It uses the octokit.request method to send the API request and logs the response to the console.
Updated dependencies:
package.json: The dependencies have been updated to include the "@octokit/core" and "@octokit/rest" libraries, which are necessary for the new JavaScript files.
This pull request primarily introduces two new JavaScript files,
downloadArtefact.js
andlistArtefacts.js
, which utilize the Octokit library to interact with the GitHub API. ThedownloadArtefact.js
file contains a program to download an artifact from a specific repository, while thelistArtefacts.js
file contains a program to list the artifacts of a given repository. Additionally, thepackage.json
file has been updated to include the necessary dependencies for these new files.Here are the most important changes:
New JavaScript files:
downloadArtefact.js
: This new file uses the Octokit library to download an artifact from a specific GitHub repository. It utilizes theoctokit.rest.actions.downloadArtifact
method to send the API request and logs the response to the console.listArtefacts.js
: Another new file that uses the Octokit library, but this time to list the artifacts of a given GitHub repository. It uses theoctokit.request
method to send the API request and logs the response to the console.Updated dependencies:
package.json
: The dependencies have been updated to include the "@octokit/core" and "@octokit/rest" libraries, which are necessary for the new JavaScript files.