playwright bot#14
Conversation
|
i think i have addressed or fix all comments, please recheck when you get time |
sethmlarson
left a comment
There was a problem hiding this comment.
Had two comments, otherwise LGTM.
When timestamp extraction fails, raise ValueError instead of silently returning datetime.now(). This ensures scraping failures are surfaced rather than producing potentially incorrect data. Addresses review feedback from @sethmlarson.
StanFromIreland
left a comment
There was a problem hiding this comment.
I went through the non-demo non-test things, and it looks really great! Some little comments, mostly nits:-)
| git config user.email "bot@python.org" | ||
| git add state.json | ||
| git diff --quiet || git commit -m "Update comment processing state [skip ci]" | ||
| git push || true No newline at end of file |
There was a problem hiding this comment.
This is just speculation, but might this introduce a race condition?
| @@ -0,0 +1 @@ | |||
| """Scripts for PSRT GHSA bot.""" | |||
There was a problem hiding this comment.
| """Scripts for PSRT GHSA bot.""" | |
| """Scripts for the PSRT GHSA bot.""" |
| - python/psrt team membership TODO: make this configurable, and allow list of org/teams? | ||
| like, what if we want PSRT to be able to responds across all PSF repos? (psf, python, pycon, pypi?) | ||
| or maybe we just say "team is $TEAM, and this bot works in $ORG as long as you are member of | ||
| that $TEAM" so we leave the user mgmt to the org admins. yeah.. probably that. |
There was a problem hiding this comment.
| that $TEAM" so we leave the user mgmt to the org admins. yeah.. probably that. | |
| that $TEAM" so we leave the user management to the org admins. |
| ghsa_id: GHSA identifier | ||
|
|
||
| Returns: | ||
| AuthorizationResult indicating if user is authorized and a rason |
There was a problem hiding this comment.
| AuthorizationResult indicating if user is authorized and a rason | |
| AuthorizationResult indicating if user is authorized and a reason |
| @@ -0,0 +1,312 @@ | |||
| """Command execution engine for PSRT GHSA Bot. | |||
|
|
|||
| TODO: Maybe we should look into easily extensiblke commands | |||
There was a problem hiding this comment.
| TODO: Maybe we should look into easily extensiblke commands | |
| TODO: Maybe we should look into easily extensible commands |
There was a problem hiding this comment.
This would make more sense in the repo root, no?
| - If Playwright action runs before cron action, should we have playwright kick it off | ||
| so that the right groups are assigned? | ||
|
|
||
| - When someone duplicate a coammand we shouldnt run it twice: |
There was a problem hiding this comment.
| - When someone duplicate a coammand we shouldnt run it twice: | |
| - When someone duplicate a command we shouldn’t run it twice: |
| ], | ||
| ) | ||
|
|
||
| # set these higher so they arent noiys.. |
There was a problem hiding this comment.
| # set these higher so they arent noiys.. | |
| # set these higher so they aren’t noisy.. |
| dependencies = [ | ||
| "cvelib>=1.4.0", | ||
| "githubkit[auth-app]>=0.13.5", | ||
| # we might could put this into a dep group to not load it every time we install |
There was a problem hiding this comment.
| # we might could put this into a dep group to not load it every time we install | |
| # We could put this into a dep group to not load it every time we install |
There was a problem hiding this comment.
This should be cleared, I don't think we need the state for jolt-org...?
|
Since this repository may be moving to be public soon I'm going to start closing some PRs/issues that are no longer necessary (or hopefully won't be if GitHub does deliver new GHSA features). |
Base playwright:
Closes #9, Closes #3, Closes #4, Closes #7