Commit dc20918
committed
Never overwrite a file the project already maintains
Running pr against a real repository proposed replacing its hand-written
.env.example with a generated stub. The existing file explained that VITE_*
values are inlined into the public bundle and are identifiers rather than
secrets, warned against putting an Appwrite API key there, and carried a working
default. The generated template had none of that and added a spurious DEV entry.
A generated template is a floor for a project that has none, not an improvement
on one a person wrote. pr now skips any artifact whose path already exists,
warns which files it left alone, and fails rather than opening an empty pull
request when every artifact already exists.
Found by running the tool against Barter, not by any test.1 parent 95de9af commit dc20918
1 file changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
| 833 | + | |
834 | 834 | | |
835 | 835 | | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
836 | 859 | | |
837 | 860 | | |
838 | 861 | | |
| |||
0 commit comments