-
Notifications
You must be signed in to change notification settings - Fork 114
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
Check DEP00XX and REPLACEME tags for PRs #193
Comments
For, checking if a (This is temporary until near future, since github api v4 team is already planning to implement this) |
If this is done as part of |
I feel like this should be done in the linter somehow? Or a pre-commit git hook. It feels a bit too late to warn about that during landing |
I was thinking this to be done before landing the PR and let the reviewer know that this PR has a dep tag (correct/incorrect update), But if this was to be done locally or pre commit-hook how do we validate the DEP Tag AFAICT it should be only be |
I guess we can grab the diff of a commit with message containing "deprecate"/"deprecation", and look for lines that add OK so now this sounds more like the job of |
Which thing specifically? The "replace DEP00XX tags" needs to be done as part of the landing process (at the same time as you modify the commit message to add the metadata), so it can't be done as a lint. I think it probably makes sense as part of |
@gibfahn I see, I thought you were talking about something like "warning against DEP100 code assigned on master branch because it should not be done there", but IIUC you were actually talking about landing commits on release branches. I have not used |
That is what I called the Complicated part. Both the Complicated and the Basic checks need to be done on landing, because the linter can't tell whether it's being run on a commit that has landed on
The
Couldn't we figure that out from the PR base branch?
Could be done in either I guess. Is there a plan to pull |
See nodejs/node#18990 for a good example of something with both. The |
#420 implemented this for DEP00XX, we just need to do the same for REPLACEME now. |
node-core-utils/lib/prepare_release.js Lines 115 to 118 in 498d600
|
Oh cool, we can close then |
See e.g. nodejs/node#18990 (comment) , I'm not sure where this is documented, although there is something here:
https://github.com/nodejs/node/blob/61e3e6d56feefcd88f2baeb59c31c327835a8d90/doc/releases.md#step-3-update-any-replaceme-and-dep00xx-tags-in-the-docs
PRs that add new deprecations should have
DEP00XX
, which should be replaced with an actual number (e.g.DEP0100
when it lands).PRs that add new APIs should have
REPLACEME
tags, that are updated with the correct version when they land in a Current release (which is then backported to LTS versions).Things we could do:
Basic:
DEP00XX
tag.DEP00XX
with the next deprecation number.Complicated:
DEP????
tags (where the PR erroneously contains an already-assigned deprecation number) and warn.added: v?.?.?
tags in the diff and warn.added:
option (should maybe be a node lint instead).cc/ @nodejs/release @nodejs/lts as the groups perhaps most likely to know about these things.
The text was updated successfully, but these errors were encountered: