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

Added commenting of errors #11

Merged
merged 3 commits into from
Sep 28, 2023
Merged

Added commenting of errors #11

merged 3 commits into from
Sep 28, 2023

Conversation

Bullrich
Copy link
Collaborator

@Bullrich Bullrich commented Sep 28, 2023

Added a call to the comment function inside the catch block.

Just to be sure, we are logging the error first in the case that the comment fails.

The intention is that, if it fails for a configuration reason, the bot will be able to report that. (If it fails because of the commenting feature then it won't be able to report it).

A good example is that it is set for MERGE but it is not allowed in the repository (or auto-merge is disabled).

This resolves #2

@Bullrich Bullrich requested a review from a team as a code owner September 28, 2023 13:18
@Bullrich Bullrich self-assigned this Sep 28, 2023
@Bullrich
Copy link
Collaborator Author

/merge help

@github-actions
Copy link

Auto-Merge-Bot

Available commands

  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@rzadp
Copy link
Contributor

rzadp commented Sep 28, 2023

/merge

@github-actions
Copy link

Auto-Merge-Bot

User @rzadp is not the author of the PR and does not publicly belong to the org paritytech.

Only author or public org members can trigger the bot.

@Bullrich
Copy link
Collaborator Author

/merge

This way it won't be ignored in silent mode
@Bullrich
Copy link
Collaborator Author

/merge

@github-actions
Copy link

Enabled auto-merge in Pull Request

@github-actions github-actions bot merged commit e2f047c into main Sep 28, 2023
4 checks passed
@github-actions github-actions bot deleted the comment-errors branch September 28, 2023 13:36
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.

Report issues when merging
2 participants