From 8f78c4bb02475b1efd5cdf9fac4fba0d40641184 Mon Sep 17 00:00:00 2001 From: Brandon Pfeifer Date: Wed, 27 Apr 2022 11:09:06 -0400 Subject: [PATCH] chore: backport semantic PR and commit message checks (#23306) * chore: use common semantic PR and commit message checks (#23300) After this is merged, the old semantic checker can be disabled, and its config file removed from the repository. * chore: remove previous semantic pull request config (#23305) * chore: remove previous semantic pull request config * chore: update pull request template, conventional commit version Co-authored-by: Jacob Marble --- .github/PULL_REQUEST_TEMPLATE.md | 1 + .github/workflows/semantic.yml | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 .github/workflows/semantic.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d1a39006df..df2404f746 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,6 +3,7 @@ ###### Required only if applicable _You can erase any checkboxes below this note if they are not applicable to your Pull Request._ +- [ ] [Well-formatted commit messages](https://www.conventionalcommits.org/en/v1.0.0/) - [ ] [InfluxQL Spec](https://github.com/influxdata/influxql/blob/master/README.md) updated - [ ] Provide example syntax - [ ] Update man page when modifying a command diff --git a/.github/workflows/semantic.yml b/.github/workflows/semantic.yml new file mode 100644 index 0000000000..5fbae6dc99 --- /dev/null +++ b/.github/workflows/semantic.yml @@ -0,0 +1,10 @@ +--- +name: "Semantic PR and Commit Messages" + +on: + pull_request: + types: [opened, reopened, synchronize, edited] + +jobs: + semantic: + uses: influxdata/validate-semantic-github-messages/.github/workflows/semantic.yml@main