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

feat(auto-label): support more APIs and issue titles #574

Merged
merged 1 commit into from
Jun 5, 2020
Merged

Conversation

tbpg
Copy link
Contributor

@tbpg tbpg commented Jun 4, 2020

This adds support for some Python issues that have the API as the part before the period (for example, GoogleCloudPlatform/python-docs-samples#3923).

This also adds support for APIs that are prefixed with cloud like cloudiot and cloudkms.

I updated the auto-detect function signature a bit to make it easier to write tests. Let me know if there is a more idiomatic way to write a table-driven style test.

@tbpg tbpg requested review from bcoe, JustinBeckwith and sofisl June 4, 2020 18:54
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 4, 2020
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

I'm supportive of this, but one thing comes to mind, it feels like it might make sense to also support the scope value in conventional commits:

feat([scope]): description

We could then move towards further adoption of the conventional commit specification, rather than inventing our own format.

I think we should support the format people are using for now mind you.

@tbpg
Copy link
Contributor Author

tbpg commented Jun 5, 2020

Thanks!

These are for issue titles, which don't seem to follow conventional commits as much. Would probably need regex extraction, so I will leave that for a followup feature.

@tbpg tbpg merged commit 3e1f02b into master Jun 5, 2020
@tbpg tbpg deleted the autolabel branch June 5, 2020 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants