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

[bots] PR gets ciflow/trunk on import #5836

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

[bots] PR gets ciflow/trunk on import #5836

wants to merge 2 commits into from

Conversation

clee2000
Copy link
Contributor

@clee2000 clee2000 commented Oct 28, 2024

Continuation of #5795

There was a case where the pr body didn't get edited when the PR was imported, so we should also handle this case, which I identify by seeing if the comment got added

I think the rule is :

  • ghimport -> pr body gets edited
  • normal import using button -> pr body doesn't get edited

Random but I think ghimport uses 2 spaces after the period, but the facebook-github-bot uses 1

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
torchci ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 8:27pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 28, 2024
@clee2000 clee2000 marked this pull request as ready for review October 28, 2024 20:28
@clee2000 clee2000 requested a review from a team October 28, 2024 20:28
return;
}

const asPR = await context.octokit.pulls.get({
Copy link
Contributor

Choose a reason for hiding this comment

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

we probably need to check that issue comment is actually a pr?

@izaitsevfb
Copy link
Contributor

you can reuse additional tests from #5838

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants