Git Product home page Git Product logo

Comments (12)

joyeecheung avatar joyeecheung commented on August 15, 2024

For instance, ncu could include a git command that uses the CODEOWNERS file to identify who would be notified for any given set of commits.

I am curious, which commands could use that?
I thought about something for the release team to find proper backporters but have not reached the point where I can start writing code yet, but the owners specified by the CODEOWNERS file seems to be too broad in that case, at least not better than the "reviewer + author" group.

from automation.

mhdawson avatar mhdawson commented on August 15, 2024

@jasnell can you point to any doc or the existing CODEOWNERS files? I touch a quick look in the src directory but I did not see it.

from automation.

BridgeAR avatar BridgeAR commented on August 15, 2024

https://github.com/nodejs/node/blob/master/.github/CODEOWNERS

from automation.

mhdawson avatar mhdawson commented on August 15, 2024

@BridgeAR thanks !

from automation.

jasnell avatar jasnell commented on August 15, 2024

Currently, the CODEOWNERS file is of limited value because it will only do automatic notifications if the team or individuals have write access in the repository. Since most o our teams include people who do not have write access, GitHub does not automatically process the notifications. This makes me sad.

We could augment that by having the Github bot automatically do those notifications for us based on CODEOWNERS file. It's a stop gap measure, but a useful one.

Another idea would be having git node land use the CODEOWNERS file to determine if anyone from the owning teams has reviewed the PR in question. That would, of course, require the git nod land tool to know who is on each team, but, for instance, if the PR changes http2 and no one from the nodejs/http2 has reviewed, then the landing tool can emit a warning.

from automation.

joyeecheung avatar joyeecheung commented on August 15, 2024

@jasnell Maybe we should replace the teams in CODEOWNERS with teams that have write access? Otherwise it does not seem to be useful to have them anyway.

from automation.

joyeecheung avatar joyeecheung commented on August 15, 2024

By the way ncu already has code (for ncu-team) to know about members in teams and requires necessary access when creating tokens.

from automation.

refack avatar refack commented on August 15, 2024

I was wondering. If we're overriding GitHub, then we already have the bot doing it's black magic for tags. IMHO we should reuse that for @ mentioning teams.

from automation.

maclover7 avatar maclover7 commented on August 15, 2024

Along the lines of what @refack mentioned, would it be easier, for now, to avoid CODEOWNERS and handle all of this in github-bot? It already matches file paths to add labels to PRs, in theory we could do the same thing but just match to the relevant team(s) to ping. For example, if a PR edits http2 code (it will currently get the http2 label), and we could request a review from the http2 GitHub team.

from automation.

jasnell avatar jasnell commented on August 15, 2024

So my only question there is how we would best manage those mappings in the GitHub bot. Otherwise tho, I'm perfectly fine with that approach so long as it works :)

from automation.

joyeecheung avatar joyeecheung commented on August 15, 2024

I think we just need to make sure that the labels match the team names?

from automation.

Trott avatar Trott commented on August 15, 2024

Unarchived this repo so I could close all the PRs and issues. Will re-archive when I'm done.

from automation.

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.