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

Remove Codeapprove image once PR is approved. #65

Open
rockwotj opened this issue Sep 27, 2022 · 2 comments
Open

Remove Codeapprove image once PR is approved. #65

rockwotj opened this issue Sep 27, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@rockwotj
Copy link

rockwotj commented Sep 27, 2022

GitHub recently announced new options for controlling the commit message when PRs are merged. We use squash and merge, and the actual commits people make are mostly useless, so we've started defaulting to the Pull Request and description as the commit when squashed into master. The problem with that is that now we're getting the review image and label in our commits on master, which makes reading the commits that have happened very noisey.

Most commits on master end with:

<a data-ca-tag
    href="https://codeapprove.com/pr/<redacted>"><img
    src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review
    on CodeApprove" /></a>

Which is a ton of noise. When a PR is approved in Code Approve could that badge be automatically removed? Or at least turn it into something more text friendly at the latest.

If you're unwilling to remove the link on approval, can you at least update the link to be markdown instead of HTML?

[![Review on CodeApprove](https://codeapprove.com/external/github-tag-allbg.png)](https://codeapprove.com/pr/<redacted>)

If you need the data-ca-tag to hide it with CSS on codeapprove.com I'd suggest changing your selector to:

img[alt="Review on CodeApprove"] {
  display: none;
}
/* or even add the src to be super explicit */
img[alt="Review on CodeApprove"][src="https://codeapprove.com/external/github-tag-allbg.png"] {
  display: none;
}

That will hide the image, and since the image is gone the link won't be clickable either.

@tstirrat
Copy link

I wonder if theres a way to have a CodeApprove "deployment" - a link to CA - that is easy to see and doesn't create an extra email, nor does it clog up the main PR description.

Screen Shot 2022-09-27 at 9 34 14 AM

@samatcodeapprove
Copy link

@rockwotj I love how you thought through all of my options haha. I will find a way to do at least one of the things you suggested!

@samatcodeapprove samatcodeapprove added the enhancement New feature or request label Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants