Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle automating branch deletion #1659

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

motatoes
Copy link
Contributor

@motatoes motatoes commented Aug 13, 2024

Fixes #1656

In case github is configured for automatic branch deletion it will fail if a PR is merged, since digger will not be able to load digger.yml from the branch. We add additional check to see if the action is PR closed and the branch does not exist. In this case we bail early to avoid the noisy comment on the PR after it is merged. Screenshot shows error with digger cloud (without the fix) versus the locally commited fix which no longer comments that error (diggerhq/branch-deletion-test#5)

Screenshot 2024-08-13 at 14 55 41
Screenshot 2024-08-13 at 14 55 21

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@motatoes motatoes merged commit 4dae08d into develop Aug 13, 2024
9 checks passed
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.

"Could not load digger config" Error on PRs
2 participants