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

Reporting rebasing need only once #237

Open
vmx opened this issue Oct 26, 2023 · 1 comment
Open

Reporting rebasing need only once #237

vmx opened this issue Oct 26, 2023 · 1 comment

Comments

@vmx
Copy link
Contributor

vmx commented Oct 26, 2023

There's a GitHub action that checks if a rebase is needed. It posts a comment every hour.

I'm currently watching this repo and it would be great if there wouldn't be so many events happening if nothing really changes. I propose using something like https://github.com/peter-evans/find-comment to check if the comment already exists and in case it does, skipping to post another one.

@huitseeker
Copy link
Member

This would be a great improvement! You'd try searching for a comment containing the current commit hash right before this step:

- name: Update last report open issue
if: env.status == 'false' && steps.last_issue.outputs.has-found == 'true'
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ steps.last_issue.outputs.issue-number }}
body: ${{ env.message }}
edit-mode: replace

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

No branches or pull requests

2 participants