Refactor GHA: move formatComment function to github-actions/utils
#5831
Labels
Complexity: Medium
Dependency
An issue is blocking the completion or starting of another issue
Draft
Issue is still in the process of being created
Feature: Refactor GHA
Refactoring GitHub actions to fit latest architectural norms
needed next issue
role: back end/devOps
Tasks for back-end developers
size: 1pt
Can be done in 4-6 hours
Milestone
Dependencies
Overview
We need to move the function
formatComment
fromgithub-actions\trigger-issue\add-missing-labels-to-issues\post-labels-comment.js
togithub-actions/utils
in order to promote resuse of the function. In subsequent issues, other github actions scripts will referenceformatComment
from the new folder location.Action Items
function formatComment({ replacementString, placeholderString, filePathToFormat, textToFormat })
from the filegithub-actions\trigger-issue\add-missing-labels-to-issues\post-labels-comment.js
to a new filegithub-actions/utils/format-comment.js
. Also move the comment statements preceding the function declaration, that describe the function parameters, and move all of the statements comprising the functiongithub-actions\trigger-issue\add-missing-labels-to-issues\post-labels-comment.js
, add a "require" statement to import the formatComment function from the new file. For a sample statement seegithub-actions/trigger-schedule/add-update-label-weekly/add-label.js
Resources/Instructions
Hack for LA's GitHub Actions
The text was updated successfully, but these errors were encountered: