Giter Club home page Giter Club logo

Comments (7)

Mic92 avatar Mic92 commented on September 28, 2024

Nix could be used for matching as well: https://github.com/NixOS/nix/blob/master/doc/manual/expressions/builtins.xml#L711

I would not invent a new DSL for linting. Our lowest common dominator is Nix already.

from ofborg.

grahamc avatar grahamc commented on September 28, 2024

@Mic92 I'd have been inclined to not use a DSL, but just do straight rust 😅

I wonder if we need some sort of database here to match up git patch IDs (https://git-scm.com/docs/git-patch-id) to reviews to ensure comments aren't made multiple times, while still ensuring coverage while a PR changes over time.

Ideally we'd be able to make these comments in-line, so the feedback can be as close to the problem at hand as possible. Is this too ambitious?

from ofborg.

FRidh avatar FRidh commented on September 28, 2024

Maybe for now limit the rules to just paths, as we do with the tags in #59. In that case one or more paths will produce one or more comments.

If we use a mapping, and use the paths as keys, then we may have to duplicate comments a lot. If we use a list of tuples that may be reduced. For this I think it is better to use Nix.

from ofborg.

FRidh avatar FRidh commented on September 28, 2024

Ideally we'd be able to make these comments in-line, so the feedback can be as close to the problem at hand as possible. Is this too ambitious?

I would start of with just only comments based on touched files, and thus post the comments to the main thread.

from ofborg.

Artturin avatar Artturin commented on September 28, 2024

This likely isn't in ofborg's scope.

There's probably an action that already does this.

from ofborg.

Artturin avatar Artturin commented on September 28, 2024

Hmm well there is https://github.com/NixOS/ofborg/blob/released/ofborg/src/bin/github-comment-poster.rs and githubcommentposter but I haven't seen a comment posted by ofborg in a long time. Will let someone else decide.

from ofborg.

cole-h avatar cole-h commented on September 28, 2024

Yes, ofborg doesn't post comments anymore. The name is a relic, but that binary is what currently posts the GHA checkruns (ofborg-eval, ofborg-eval-package-list, etc).

from ofborg.

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.