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 pushes and rename for rendered links #1850

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

Urgau
Copy link
Member

@Urgau Urgau commented Oct 30, 2024

Follow up to #1848 to handle new commits/pushes on PR with rendered link.

I also added the logic to remove a rendered link if we can't point to it anymore, as well as a small optimize to avoid unnecessarily updating the body if not necessary.

Fixes #1803 (for real this time)
r? @ehuss

@@ -34,65 +36,83 @@ async fn add_rendered_link(ctx: &Context, e: &IssuesEvent, prefix: &str) -> anyh
if e.action == IssuesAction::Opened
|| e.action == IssuesAction::Closed
|| e.action == IssuesAction::Reopened
|| e.action == IssuesAction::Synchronize
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I originally though I would have to go through the PushEvent instead of the Issue/PushRequestEvent, but it seems to be as simple as checking the synchronize action, yay for simplicity.

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ehuss ehuss merged commit 742b66b into rust-lang:master Oct 31, 2024
2 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.

triagebot rfc_helper cannot deal with the file being renamed to the RFC number
2 participants