git-for-windows / gfw-helper-github-app

2 stars 6 forks source link

Add an `/updpkgsums` command #28

Closed dscho closed 10 months ago

dscho commented 1 year ago

Every once in a while a PR build fails due to a checksum that was not updated (like here).

It is totally okay for casual contributors not to know about such Pacman details, and we should be able to help them quickly and swiftly by issuing an /updpkgsums workflow that basically does the following:

  1. determine the PR branch and repository
  2. make a shallow clone of it
  3. initialize a minimal subset of the Git for Windows SDK merely to run "Pacman stuff" much like the open-pr workflow does (this would make for a fine opportunity to turn that step into a composite GitHub Action, methinks, it can even be hosted in a subdirectory of the same repository)
  4. run updpkgsums in all subdirectories touched by the PR
  5. commit & push to the PR branch and repository
rimrul commented 1 year ago
  1. run updpkgsums in all subdirectories touched by the PR

It should also avoid updpkgsums for certain packages, like the open-pr workflow does.

dscho commented 1 year ago

And for PKGBUILD files defining a pkgver function, that function should be given a chance to update the version and the result should be committed, like here.