From 00f172f1eca9bf7cb457e74e5789d42a000c1560 Mon Sep 17 00:00:00 2001 From: Sebastian Czech Date: Wed, 12 Jul 2023 12:43:41 +0200 Subject: [PATCH] ci(workflow): Add workflow for lint PR, fix GitHub release workflow status (#336) --- .github/workflows/lint_pr_title.yml | 21 +++++++++++++++++++++ README.md | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint_pr_title.yml diff --git a/.github/workflows/lint_pr_title.yml b/.github/workflows/lint_pr_title.yml new file mode 100644 index 00000000..4a099949 --- /dev/null +++ b/.github/workflows/lint_pr_title.yml @@ -0,0 +1,21 @@ +# DESCRIPTION: +# A workflow used to verify if PR titles matches conventional commits strategy. +# END + +name: Lint PR Title +run-name: "Lint PR - (#${{ github.event.number }}) ${{ github.event.pull_request.title }}" + +permissions: + pull-requests: read + +on: + pull_request_target: + types: + - opened + - edited + - ready_for_review + +jobs: + lint_pr_title: + name: Lint PR + uses: PaloAltoNetworks/terraform-modules-vmseries-ci-workflows/.github/workflows/lint_pr_title.yml@v1.2.0 diff --git a/README.md b/README.md index d98b17c2..3da792df 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![GitHub release (latest by date)](https://img.shields.io/github/v/release/PaloAltoNetworks/terraform-aws-vmseries-modules?style=flat-square) ![GitHub](https://img.shields.io/github/license/PaloAltoNetworks/terraform-modules-vmseries-ci-workflows?style=flat-square) -![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PaloAltoNetworks/terraform-aws-vmseries-modules/release.yml?style=flat-square) +![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PaloAltoNetworks/terraform-aws-vmseries-modules/release_ci.yml?style=flat-square) ![GitHub issues](https://img.shields.io/github/issues/PaloAltoNetworks/terraform-aws-vmseries-modules?style=flat-square) ![GitHub pull requests](https://img.shields.io/github/issues-pr/PaloAltoNetworks/terraform-aws-vmseries-modules?style=flat-square) ![Terraform registry downloads total](https://img.shields.io/badge/dynamic/json?color=green&label=downloads%20total&query=data.attributes.total&url=https%3A%2F%2Fregistry.terraform.io%2Fv2%2Fmodules%2FPaloAltoNetworks%2Fvmseries-modules%2Faws%2Fdownloads%2Fsummary&style=flat-square)