Ideas for possible enhancements #63
Replies: 2 comments 2 replies
-
I had the same thought described in your point one :) I also got many branches on the remote while I was testing/failing initially. I suspect point 4 might be bit more effort 😃 |
Beta Was this translation helpful? Give feedback.
-
When it comes to keeping things clean, I think it might also be nice to not only check for the presence of a Edit: actually I suppose content checking would not be required and it could always close the previous pr created by ghas-enablement since we want the latest version of our template |
Beta Was this translation helpful? Give feedback.
-
So, I've been troubleshooting the app for a few days now and noticed a few things that might make it a bit more efficient.
Can the local branch be created prior to creating the remote?
Can a cleanup process be introduced in the event of a failure?
yarn run start
command after a failure in the commands process you must manually delete thetempGitLocations
folder, else the process will fail with:const ref = await createBranch(defaultBranchSHA, owner, repo, client);
in the workers.ts file make a best effort attempt to remove the local/remote branch created.Remove the
-p
argument from the mkdir commands in the Windows section of the comannds.ts.rm -rf ./-p/
commands exists... to clean those up. It serves no purpose.Allow for multiple languages to execute simultaneously.
.env
->LANGUAGE_TO_CHECK=java,javascript,python
=> Allow the application to apply the correct codeql-analysis-.yml files based on the repository's language. By the apps current design this isn't possible because the language isn't stored anywhere accept the .env file. If someone (for some reason) changes the language after running getRepos... that would be an issue. Instead maybe getRepos could store the language in the repos.json file along with its repository. Then it could be read from there when the time comes to write the codeql...yml file.Beta Was this translation helpful? Give feedback.
All reactions