Skip to content

#7 Validate PR titles #14

#7 Validate PR titles

#7 Validate PR titles #14

Workflow file for this run

name: "Workflow"
on:
push:
branches: ["develop"]
pull_request:
branches: ["develop"]
jobs:
check-pr-title:
name: "PR Title Checker"
if: |
github.event_name == 'pull_request' &&
(github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'edited')
runs-on: ubuntu-latest
steps:
- name: Debug Event Name
run: "echo Event Name: ${{ github.event_name }}, Event Type: ${{ github.event.action }}"
- name: PR Title Checker
uses: thehanimo/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: .github/workflows/pr-title-checker-config.json
build-go:
name: "Go Build and Test"
if: |
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.base_ref == 'develop')
runs-on: ubuntu-latest
steps:
- name: Debug Event Name
run: "echo Event Name: ${{ github.event_name }}, Event Type: ${{ github.event.action }}"
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...