This pull request includes several changes related to the integration of GitHub Apps authentication and the addition of new Babel plugins. The most significant changes include the addition of new dependencies and Babel plugins in package.json, the creation of a new Python script for generating JSON Web Tokens (JWT), the addition of new curl commands in curl_commands.yaml, and modifications in GitHubApi.ts to support GitHub Apps authentication.
Babel Configuration and Dependencies:
babel.config.js: Added @babel/plugin-transform-private-methods and @babel/plugin-transform-class-static-block to the list of plugins. This allows the use of private methods and static blocks in class bodies.
package.json: Added @octokit/auth-app, @octokit/rest, and fs to the list of dependencies, and @babel/plugin-transform-class-static-block and @babel/plugin-transform-private-methods to the list of devDependencies. These additions are necessary for the new functionalities introduced in the codebase. [1][2]
JWT Generation:
jwt_gen.py: Created a new Python script for generating JWTs. This script takes a path to a private PEM file and a Client ID as input, and outputs a JWT.
GitHub API Integration:
src/api/GitHubApi.ts: Added a new block of code to handle different authentication methods (token or app). It also uses the Octokit library for making API requests when the authentication method is "app". [1][2][3]
CURL Commands:
curl_commands.yaml: Added new CURL commands for authorization and fetching data from the GitHub API.
This pull request includes several changes related to the integration of GitHub Apps authentication and the addition of new Babel plugins. The most significant changes include the addition of new dependencies and Babel plugins in
package.json
, the creation of a new Python script for generating JSON Web Tokens (JWT), the addition of new curl commands incurl_commands.yaml
, and modifications inGitHubApi.ts
to support GitHub Apps authentication.Babel Configuration and Dependencies:
babel.config.js
: Added@babel/plugin-transform-private-methods
and@babel/plugin-transform-class-static-block
to the list of plugins. This allows the use of private methods and static blocks in class bodies.package.json
: Added@octokit/auth-app
,@octokit/rest
, andfs
to the list of dependencies, and@babel/plugin-transform-class-static-block
and@babel/plugin-transform-private-methods
to the list of devDependencies. These additions are necessary for the new functionalities introduced in the codebase. [1] [2]JWT Generation:
jwt_gen.py
: Created a new Python script for generating JWTs. This script takes a path to a private PEM file and a Client ID as input, and outputs a JWT.GitHub API Integration:
src/api/GitHubApi.ts
: Added a new block of code to handle different authentication methods (token or app). It also uses the Octokit library for making API requests when the authentication method is "app". [1] [2] [3]CURL Commands:
curl_commands.yaml
: Added new CURL commands for authorization and fetching data from the GitHub API.