Snap-in that mirrors an issue from DevRev to GitHub. This introduces a command which can be used to replicate the issue in the specific repository.
To run the command :
/gh_issue OrgName RepoName
You can test your code by adding test events under src/fixtures
similar to the example event provided. You can add keyring values to the event payload to test API calls as well.
Once you have added the event, you can test your code by running:
npm install
npm run start -- --functionName=command_handler --fixturePath=on_command.json
You can also add dependencies on external packages in package.json
under the “dependencies” key. These dependencies will be made available to your function at runtime and testing.
To check for lint errors, run the following command:
npm run lint
To automatically fix lint errors, run:
npm run lint:fix
Once you are done with the testing, run the following commands to activate your snap_in:
- Authenticate to devrev CLI
devrev profiles authenticate --org <devorg name> --usr <user email>
- Create a snap_in_version
devrev snap_in_version create-one --path <template path> --create-package
- Draft the snap_in
devrev snap_in draft
- Update the snap_in
devrev snap_in update
- Activate the snap_in
devrev snap_in activate