Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

chore: Synced file(s) with cloudquery/.github #147

Merged
merged 2 commits into from
Jan 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# DONT EDIT. This file is synced from https://github.com/cloudquery/.github/.github
changelog:
exclude:
labels:
- ignore-for-release
categories:
- title: 💥 Breaking Changes
labels:
- breaking
- title: 🚀 Added
labels:
- enhancement
- docs
- feat
- title: Fixed
labels:
- fix
- title: Other Changes
labels:
- refactor
- chore
- ci
- test
16 changes: 16 additions & 0 deletions .github/workflows/add_tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# DONT EDIT. This file is synced from https://github.com/cloudquery/.github/.github
# Warning, do not check out untrusted code with
# the pull_request_target event.
# the current workflow IS safe as long as you dont checkout untrusted code
# https://nathandavison.com/blog/github-actions-and-the-threat-of-malicious-pull-requests
on:
pull_request_target:
types: [opened, edited]
name: conventional-release-labels
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: bcoe/conventional-release-labels@v1
with:
type_labels: '{ "feat": "feat", "fix": "fix", "docs": "docs", "chore": "chore", "enhancement": "enhancement", "ci": "ci", "refactor": "refactor", "test": "test", "breaking": "breaking" }'
21 changes: 21 additions & 0 deletions .github/workflows/golang_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# DONT EDIT. This file is synced from https://github.com/cloudquery/.github/.github
name: Golang Lint
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
golangci:
name: GoLangCI Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.1
args: --timeout 5m
57 changes: 57 additions & 0 deletions .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# DONT EDIT. This file is synced from https://github.com/cloudquery/.github/.github
name: "Validate PR title"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
# Please look up the latest version from
# https://github.com/amannn/action-semantic-pull-request/releases
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure which types are allowed.
# Default: https://github.com/commitizen/conventional-commit-types
types: |
fix
feat
docs
ci
chore
refactor
test
enhancement
breaking
# Configure that a scope must always be provided.
requireScope: false
# Configure additional validation for the subject based on a regex.
# This example ensures the subject starts with an uppercase character.
subjectPattern: ^[A-Z].+$
# If `subjectPattern` is configured, you can use this property to override
# the default error message that is shown when the pattern doesn't match.
# The variables `subject` and `title` can be used within the message.
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
starts with an uppercase character.
# For work-in-progress PRs you can typically use draft pull requests
# from Github. However, private repositories on the free plan don't have
# this option and therefore this action allows you to opt-in to using the
# special "[WIP]" prefix to indicate this state. This will avoid the
# validation of the PR title and the pull request checks remain pending.
# Note that a second check will be reported if this is enabled.
wip: true
# When using "Squash and merge" on a PR with only one commit, GitHub
# will suggest using that commit message instead of the PR title for the
# merge commit, and it's easy to commit this by mistake. Enable this option
# to also validate the commit message for one commit PRs.
validateSingleCommit: true