harshil21 · GitHub

What kind of feature are you missing? Where do you notice a shortcoming of PTB?

I noticed that workflows run twice in quick succession whenever a new PR is created. This is because chango immediately commits to the branch, re-triggering the GH action workflows. This is a waste because it makes the 2nd run more flaky (e.g. hitting flood limits), and also makes some jobs wait until the first run is complete.

Describe the solution you'd like

Ideally this would be fixed with some kind of pre-commit (or pre-push?) workflow which makes the .toml file, but I don't see how this would be possible since a PR hasn't been created.

AI proposes to instead add types: [synchronize, reopened, ready_for_review] to the .yml file so it runs on the first push to the PR (so after chango commits)

Describe alternatives you've considered

No response

Additional context

No response

Read the original on github.com ↗