Skip to content

chore(ci): validate pull-request title #136

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

Merged
merged 7 commits into from
Feb 11, 2022
Merged

chore(ci): validate pull-request title #136

merged 7 commits into from
Feb 11, 2022

Conversation

eunjae-lee
Copy link
Contributor

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-305

Changes included:

  • Validate PR title

@eunjae-lee eunjae-lee marked this pull request as draft February 11, 2022 14:48
Comment on lines +29 to +30
with:
regex: '^(?:(feat)|(fix)|(docs)|(style)|(refactor)|(perf)|(test)|(build)|(ci)|(chore)|(revert))\((?:(javascript)|(php)|(java)|(cts)|(spec)|(script)|(ci))\): .+'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added ci as a scope. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

make sense!

Copy link
Member

Choose a reason for hiding this comment

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

Next improvement could be to find the languages with a small bash script but it's fine for now

@eunjae-lee eunjae-lee marked this pull request as ready for review February 11, 2022 14:52
@eunjae-lee eunjae-lee changed the title chore(ci): validate pull-request title wrongly(scoped): validate pull-request title Feb 11, 2022
@shortcuts
Copy link
Member

shortcuts commented Feb 11, 2022

Having an other workflow does not stop other jobs to run, we could maybe set this at the early stage of our CI https://github.com/algolia/api-clients-automation/blob/main/.github/workflows/check.yml

@eunjae-lee eunjae-lee changed the title wrongly(scoped): validate pull-request title chore(ci): validate pull-request title Feb 11, 2022
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

Looks good!

@eunjae-lee eunjae-lee merged commit a53e10c into main Feb 11, 2022
@eunjae-lee eunjae-lee deleted the chore/pr-title2 branch February 11, 2022 15:37
shortcuts pushed a commit that referenced this pull request Apr 22, 2022
* chore(ci): validate pr title

* chore: remove semantic pull request config

* chore: fix name of workflow

* chore: clean up workflow

* chore: move title checking to check.yml

* Revert "chore: move title checking to check.yml"

This reverts commit d4afd07.

* chore: remove unnecessary setup
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.

2 participants