-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: add patch code of conduct workflow #972
build: add patch code of conduct workflow #972
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn’t the point of the base that it’s a 1:1 copy of what’s in the upstream? meaning the base shouldn’t even need to be committed, since it can be fetched by sha
That's an interesting point. On one hand, I'd like us to be super clear as to what we update to, on the other hand, including the non-patched CoC in our codebase sounds like a recipe for confusion. I think I'd be in favor of just fetching it. |
@ljharb What particular SHA do you have in mind? And I didn't quite understand the reasoning behind this. If we are fetching it with a constant SHA, why complicate the
@tobie I'm in favor of progressing as it is, but if this is the reached consensus, I'll be happy to update the script to fetch from a specific commit sha. |
@anonrig whichever SHA of the upstream CoC we're basing the patch onto. The goal was so the final document would be diffed along with the patch, so we could differentiate between an upstream change and an in-repo change. Inlining the upstream text is redundant. |
I'm more concerned about the fact that it introduces potential for confusion, but the outcome is the same. We should treat this as an external resource and not vendor-it in. |
I moved the project to pkgjs organization: https://github.com/pkgjs/patch-my-code-of-conduct |
cac15ac
to
b3b2ef3
Compare
@joesepi and I updated the code of conduct script and released 1.1.0 version. The only pre-requisite right now, which is also a blocker, is: we need to land this pull request in order to create an immutable reference to it, which will later be used as a |
b3b2ef3
to
b8fde69
Compare
c8be85b
to
a7433f5
Compare
38b345f
to
0f2ea6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assuming there's no CoC diffs from this, LGTM
I’m a little bit confused why the diff file is so big. We’re technically just patching a single word. Am I missing something? |
@tobie Compared to the original document (referring: https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md), the current code of conduct does a little bit more than patching a single word. For example, the original document has a character limit of 120 (estimated) characters and later continues the sentence in a new line, but we don't. Due to this major change, it feels like we are patching more than that. |
@tobie If patching fails the |
@eemeli, I’m fine with not-merging & closing this pull request. A lot of work has gone into this patching effort (not just my code here), but if we decide it's not the best way forward, that’s fine. But I do think it would be good for us to clearly lay out the options to move forward because this has been an issue for quite some time. To help us compare which approach to take, here is how this patching script will work: I believe the alternative is manually copying and pasting bits and pieces together into a pull request, which is fine, but also could be prone to issues. |
If I've read this right, this PR needs to be rebased now that #1007 is merged? |
b1f3f5a
to
1db63b6
Compare
I updated the patch file with the necessary changes and applied the requested ones. Appreciate any reviews. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better, but still needs some work. Most importantly, to reiterate myself from before:
At no point should we be removing the
./CODE_OF_CONDUCT.md
file from our repo.
6e19333
to
ac9f31a
Compare
@eemeli, I've updated the pull request with the following changes. Thank you for your patience and your reviews. I greatly appreciate it!
|
ac9f31a
to
f721132
Compare
That looks a lot cleaner. Thanks! I'm curious what the process for changing the patch would look like. |
@tobie Maybe someone can have a better solution for this, but locally, I have two files. One only contains |
8798790
to
07251a6
Compare
07251a6
to
1acccff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
1acccff
to
032ab4a
Compare
I'll open a follow up draft PR for documenting the CoC patching flow. |
Please be aware that this is highly experimental, and might/will have some bugs. Couple of notes:
CODE_OF_CONDUCT.md
file with thepatch
applied.If we are aligned & happy on this path, I'll be happy to move the project under
openjs-foundation
organization.