php / web-doc

http://doc.php.net
33 stars 85 forks source link

Implement [skip-revcheck] to exclude a commit from consideration #21

Closed fulldecent closed 3 years ago

fulldecent commented 3 years ago

Discussion: https://github.com/php/doc-en/pull/858#issuecomment-903723978


This adds a new feature to the documentation translations checker:

Including the text:

[skip-revcheck]

in your commit message will exclude a commit from consideration in the tools at http://doc.php.net/revcheck.php

You should use this when:


I am not sure where to add that additional documentation meta notes. But I hope we can please document it as part of this PR.

Girgias commented 3 years ago

@nilgun could you have a look at this, I don't really know how this version of the revcheck script works.

salathe commented 3 years ago

What is the plan for getting every single author to be aware of this, and ensuring that it happens for every single commit that should be skipped (because even missing the tag from one commit for a file kind of defeats its usefulness)?

fulldecent commented 3 years ago

I am requesting help to find where to document this new feature.


This new feature is proposed specifically because I am making large commits that are touching many (300+) files and these changes on the English version do not require review by translators.

Using this just for one commit makes it possible to continue using recheck after my proposed commit goes through.

All other commits that use it will be an incremental benefit. And I think that translators who are downstream from any commits which should, but don't, use this skip-revcheck will be happy to remind upstream committers to use it next time.

nilgun commented 3 years ago

The absence of en-commit-hash causes problems in scripts.

George Peter Banyard @.***>, 23 Ağu 2021 Pzt, 23:08 tarihinde şunu yazdı:

@nilgun could you have a look at this, I don't really know how this version of the revcheck script works.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

nilgun commented 3 years ago

The extreme case of the absence of the hash​ (Turkish file status): (Except for all other problems)

File status type Number of files Percent of files Size of files (kB) Percent of size
Up to date files 0 0.00%   0.00%
Outdated files 3412 32.74% 10515 40.10%
Work in progress 0 0.00% 0 0.00%
Files without revision number 0 0.00% 0 0.00%
Not in EN tree 0 0.00% 0 0.00%
Files available for translation 7011 67.26% 15706 59.90%

Girgias commented 3 years ago

Thanks for implementing this!

fulldecent commented 3 years ago

Thank you for the review! I'm working to get a big commit in to take advantage of this...