-
Notifications
You must be signed in to change notification settings - Fork 183
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
PRs from openapi-sdkautomation should not be marked as customer-reported #1354
Comments
Assigning this to @lillyjma for follow up. Pretty sure the change is to FabricBot rules to not apply that label when the issues are opened by a bot. Not sure if FabricBot is able to distinguish between a bot account and a real account (note that in GitHub UI it's labeled as a "bot" account). If it can't, a workaround for this specific issue is to not apply the label when this specific bot account ("openapi-sdkautomation") opened the issue. |
@AlexGhiondea: This bot is called |
The We don't know for sure, but the rule you need to set is probably something like this: You'll need to experiment to make sure. |
@mitchdenny Yeah, I figured that might be the problem. Wes said the openapi bot isn't even a user account, so I'm not sure if this will help. He suspects that the bot is a GH app, and we're waiting for Phoenix to confirm that. I looked through all the conditions available, if the bot is an app, maybe we could do: Condition="Title contains..." Pattern="ReleasePR". This is not ideal, but I can't think of anything else now. @AlexGhiondea thoughts? |
I would not recommend using any pattern in the PR title which is subject to change at any point. |
I'm pretty sure the GitHub events that FabricBot is responding to will have the bot name where the user identity is. |
@mitchdenny I didn't know that's the case. I've added the rule that you proposed. @ramya-rao-a let me know if the issue still comes up. |
@zhenglaizhang @ruowan to confirm the config. I don't know much about this config line. |
We didn't own this config. Maybe it could work by adding a new check for activity sender. |
@mitchdenny I don't think it's working. I added the rule 2 days ago, and for a recent PR created by the api bot, the msftbot is still adding customer-reported. The api bot is actually an app, https://github.com/apps/openapi-sdkautomation. Maybe that's why adding the condition didn't work. cc @AlexGhiondea |
Any updates here? |
Ping! |
I'm not sure if this will help or not but I noticed in the github issues query it marked the user as "app/openapi-sdkautomation" so I tried using that as the user. @ramya-rao-a please let use know if you see any new issues. |
@weshaggard This PR is from 4 days ago and it did get the customer-reported label: Azure/azure-sdk-for-js#17566 |
I suspect we don't have many other options here given the tools we have. While looking at the rule again I did notice there was a space at the end of the user name, not sure if that is any issue or not but I removed the space and saved the rule just in case. |
@weshaggard that might have done it... let's wait and see. If that doesn't work, I am not sure what else we can do... maybe have a separate rule that removes that label? |
Nope, did not work. Here is another PR from 4 days ago: Azure/azure-sdk-for-js#17738 |
We are seeing the same issue in python repo. e.g. Azure/azure-sdk-for-python#21251. It was created by azclibot and we labeled it "customer-reported". |
For regular github user accounts we can probably add them to a list to exclude, but for the app accounts we still don't have any good way to exclude them. @jsquire you have been using the FabricBot a while do you know of any other potential ways to exclude this customer-focused label for our bots? |
Unfortunately, I don't. The loosest part of the current ruleset is the check for If we're able to have partner bots join the [EDIT] |
There are some bot accounts that are github users, but there are also github applications that have their own set of permissions and can create issues/PRs in the repo and they are app accounts. |
I just reached out to the team that owns the Fabric bot for advice; hopefully, they'll have some insight that we can take advantage of. |
In the meantime, I'm going to try tuning the rule in the JS repo to filter against @ramya-rao-a: Can you keep an eye and let me know how that works out? |
These are the PRs from automation that end up getting the
customer-reported
label. See https://github.com/Azure/azure-sdk-for-js/pulls?q=is%3Apr+author%3Aapp%2Fopenapi-sdkautomation+is%3Aclosed+This messes up my count for actual community contributions :(
The text was updated successfully, but these errors were encountered: