-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIMS-693 Update .github workflow and scripts for app-npm-dep-check (#…
…2045) Co-authored-by: Dylan Barkowsky <[email protected]>
- Loading branch information
1 parent
21c0465
commit 4016dee
Showing
13 changed files
with
845 additions
and
671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// CONFIG FILE for specifying options in the NPM Dependency Report workflow. | ||
{ | ||
// Check package.json files for dependency updates. | ||
packageJsonPaths: ["frontend", "react-app", "express-api"], | ||
|
||
// Do not report on the following packages. | ||
ignorePackages: { | ||
// Path to package.json file. | ||
"src/frontend": [], // Add names of packages such as ["typescript"]. | ||
"src/backend": [], | ||
}, | ||
|
||
// The env variables below are used to update the create_tickets.py script | ||
|
||
// used to determine what updates to post | ||
LEVEL_FLAGS: "MINOR MAJOR", | ||
// sets what JIRA board to post and pull from | ||
JIRA_BOARD: "PIMS", | ||
// each Jira board has a different issue type for subtasks | ||
JIRA_SUBTASK: "10003", | ||
// epic links are technically a custom field with this specific id and ticket number (for PIMS) | ||
JIRA_EPIC: "10014, PIMS-450" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const path = require("path"); | ||
const createAndCloseExistingIssue = require("./github-api/create-and-close-existing-issue"); | ||
const outputText = require(path.resolve(__dirname, `../../outputText.json`)); | ||
|
||
/** | ||
* THIS FILE DOES NOT REQUIRE ANY EDITING. | ||
* Place within .github/helpers/ | ||
*/ | ||
|
||
// Get package.json paths from env. | ||
const packageJsonPaths = JSON.parse(process.env.packageJsonPaths); | ||
|
||
(async () => { | ||
// Create an array of promises for each packageJsonPath. | ||
const promises = packageJsonPaths.map(async (packagePath) => { | ||
// Await the completion of create and close existing issue. | ||
await createAndCloseExistingIssue(packagePath, outputText[packagePath]); | ||
}); | ||
|
||
// Wait for all issues to be created. | ||
await Promise.all(promises); | ||
})(); |
Oops, something went wrong.