BigSamu / OpenSearch_Changelog_Workflow

A reusable workflow for automating changelog and release notes generation processes for OpenSearch repos
Apache License 2.0
0 stars 4 forks source link

Modularize "skip" option handling in `index.js` #26

Closed JohnathonBowers closed 7 months ago

JohnathonBowers commented 7 months ago

Description

These changes move the logic for handling the "skip" option into githubUtils.js and reducing relevant code in index.js to a single line that calls on a handleSkipOption function. Also, the variables that will contain the extracted data from PRs are initialized outside of the try-catch block so that the values attached to these variables can be accessed by functions within either the try block or the catch block.

Issues

Resolves Issue #18

BigSamu commented 7 months ago

LGTM!