eipw icon indicating copy to clipboard operation
eipw copied to clipboard

Preamble lint to ensure `last-call-deadline` is not in the past

Open SamWilsn opened this issue 3 years ago • 11 comments

SamWilsn avatar Jul 20 '22 22:07 SamWilsn

Or better: at least two weeks into the future (as per EIP-1)

Pandapip1 avatar Jul 22 '22 20:07 Pandapip1

Or better: at least two weeks into the future (as per EIP-1)

I don't think we can do that (at least as part of eipw) because someone could open a PR to fix something minor (ex. typo) during the last call period, without having to change the last-call-deadline.

SamWilsn avatar Jul 22 '22 20:07 SamWilsn

Can EIPW have a check that runs conditional on the specific PR/commit it is running against changing a specific line? If so, we would make it so that if (prChangedStatusLineTo('Last Call')) assert lastCallDeadline > now + 2 weeks

MicahZoltu avatar Jul 23 '22 03:07 MicahZoltu

I'd like to keep anything GitHub related out of eipw (mostly because the Rust GitHub bindings didn't seem as good as the JS ones.) Doing it with pure git might be possible, but would probably rely on git blame, which wouldn't be the most accurate.

Any reason we couldn't implement the more accurate checks in EIP-bot?

SamWilsn avatar Jul 23 '22 04:07 SamWilsn

Any reason we couldn't implement the more accurate checks in EIP-bot?

Our Rust developer is more active than our TypeScript developer. 😬

MicahZoltu avatar Jul 23 '22 05:07 MicahZoltu

@SamWilsn I'd like to take on this task

apeaircreative avatar May 19 '24 21:05 apeaircreative

By all means!

SamWilsn avatar May 20 '24 12:05 SamWilsn

so i understand that there is no validation in place to ensure that the "last-call-deadline" is set to a date in the future. I've been looking through eip review bot with the merge.ts, process.ts, action.ts, and the files in the rules and searched "last-call-deadline" and other keywords.

yet still haven't found anything validating the "last-call-dealine".

what do you think about the preMergeChanges function in the merge.ts file? Could that be the place to make changes?

@Pandapip1

apeaircreative avatar May 27 '24 11:05 apeaircreative

I don't maintain eipw. CC @SamWilsn

Pandapip1 avatar May 28 '24 21:05 Pandapip1

@apeaircreative I guess you can skip the review bot if you have issues with it. I didn't use it at all. Just focus on last-call-dealine implementation.

KatyaRyazantseva avatar Jul 30 '24 19:07 KatyaRyazantseva

@SamWilsn @KatyaRyazantseva solved my first issue check out the pull requesr

apeaircreative avatar Dec 13 '24 04:12 apeaircreative