Skip to content

Fix maintenance PR creation#33

Merged
yadij merged 2 commits into
mainfrom
yadij-patch-3
Mar 26, 2025
Merged

Fix maintenance PR creation#33
yadij merged 2 commits into
mainfrom
yadij-patch-3

Conversation

@yadij
Copy link
Copy Markdown
Contributor

@yadij yadij commented Mar 26, 2025

The --quiet parameter removes patch from git diff
output rendering the line count useless as a trigger
to commit changes.

Instead use --shortstat which produces nothing when
there is no difference the the given branches, and a
line of statistics if there are differences.

Recent gh tool produce a message when no PRs exist.
Causing this script to wrongly decide that no PR is needed.
Check for that output and revert the line count test to check
for that empty case at trigger.

The `--quiet` parameter removes patch from `git diff` output rendering the line count useless as a trigger to create PRs.

Instead use `--shortstat` which produces nothing when there is no difference the the given branches, and a line of statistics if there are differences.
@squid-anubis squid-anubis added M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels and removed M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels labels Mar 26, 2025
@yadij yadij requested a review from kinkie March 26, 2025 01:44
@yadij yadij merged commit e1b6458 into main Mar 26, 2025
@yadij yadij deleted the yadij-patch-3 branch March 26, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants