atlassian / github-for-jira

Connect your code with your project management in Jira
https://github.atlassian.com
MIT License
605 stars 183 forks source link

ARC-2759 skip the error "Commit not found by sha..." if on last try #2618

Closed gxueatlassian closed 6 months ago

gxueatlassian commented 6 months ago

What's in this PR? Add code to skip the commit if error is "422 not found by sha" when on the last try. Only apply for push queue.

Why I think on the last re-try, if we still couldn't find the commit by sha from either github.com or ghes, it could means either the server is wrong or the commit is gone. We should skip the message instead of putting them in DLQ.

Added feature flags skip-commit-if-sha-not-found-on-last-try

Affected issues
ARC-2759

How has this been tested?
Unit test.

Whats Next?