Giter Club home page Giter Club logo

Comments (7)

zillemarco avatar zillemarco commented on August 18, 2024 1

Do you mean where to create the log file with the actual logs, or where to log the data inside the code? 🤔

For the file, I thing we can stick with console.log as it's already used. For where to do the logging I think the best place would be on the last execution block inside data/get.ts, right before the sitemap build 🤔

But I'm sure @lucavallin would be able to tell you if that's ok or if there are better ways/places 🙂

from verto.

dnafication avatar dnafication commented on August 18, 2024

Hey @zillemarco, sounds interesting. It will definitely simplify the filtering process. Where would you like that to be logged?

from verto.

lucavallin avatar lucavallin commented on August 18, 2024

@dnafication agree with @zillemarco. We just need a way to see repos that don't meet criteria (anymore). Maybe in the Actions workflow summary would be a reasonable place for that.

from verto.

dnafication avatar dnafication commented on August 18, 2024

Great! I have some ideas around refactoring the get.ts file and making it modular and more readable. I'll include the logging changes there. I'll send a PR soon.

from verto.

dnafication avatar dnafication commented on August 18, 2024

Hey @lucavallin @zillemarco, I was thinking of introducing .env file to the project and add all these vars below and more to the file.

REPOS_PER_REQUEST=25
MAX_ISSUES=10
GH_PERSONAL_ACCESS_TOKEN=
... any others in the future

@lucavallin you might need to update Vercel's deployment config to support these changes so let me know if its worth a change.

from verto.

dnafication avatar dnafication commented on August 18, 2024

At first, my idea was to record comprehensive information regarding why a repository didn't meet the criteria. However, it appears that filtering occurs at various stages, such as during the GraphQL query and subsequent processing of its results.

Now, I'm planning to generate a comparison between the original list and the filtered list and logging only that information. Do you believe this would suffice, or should we still include specifics about why a particular repository failed to meet the criteria?

Perhaps, this can be the initial iteration and we can add more logic to it. I have made the code modular and refactored the main script to make it readable. I'll send the PR soon.

from verto.

lucavallin avatar lucavallin commented on August 18, 2024

@dnafication I am happy to add the .env file, but first, what problem does it solve?
For the rest, all good. I think a list of repositories filtered out without details is fine for now.

from verto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.