You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/08/03 08:57:35 UTC
[GitHub] [pulsar] mangoGoForward commented on a diff in pull request #16836: [feat]: support check PR name and automatically add labels based on PR title
mangoGoForward commented on code in PR #16836:
URL: https://github.com/apache/pulsar/pull/16836#discussion_r936413524
##########
.github/workflows/semantic.yaml:
##########
@@ -0,0 +1,35 @@
+name: "PR Lint"
+
+on:
+ pull_request_target:
+ types:
+ - opened
+ - edited
+ - synchronize
+
+jobs:
+ main:
+ name: Validate PR title
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out repository code
+ uses: actions/checkout@v3
+ with:
+ submodules: recursive
+ - uses: amannn/action-semantic-pull-request@v4
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ types: |
+ [feat]
+ [fix]
+ [docs]
Review Comment:
Thanks! and @Anonymitaet has already mad a PIP about [Standardize PR Naming Convention using GitHub Actions](https://docs.google.com/document/d/1sJlUNAHnYAbvu9UtEgCrn_oVTnVc1M5nHC19x1bFab4/edit?pli=1), when the PIP passed, I will improve this PR:
1. (Optional) Implement semantic Github Action in [docbot](https://github.com/apache/pulsar-test-infra/tree/master/docbot)
2. Add a Job in [ci-documentbot.yml](https://github.com/apache/pulsar/blob/master/.github/workflows/ci-documentbot.yml) to check PR title and set `false` to `required`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org