Skip to content

Commit

Permalink
Merge remote-tracking branch 'template/main'
Browse files Browse the repository at this point in the history
* template/main:
  ci: build main branch
  chore: repository settings
  chore(main): release 1.0.0
  feat!: Initial commit
  • Loading branch information
joke committed Apr 2, 2022
2 parents 6f2b4f6 + ac300b5 commit 060e84a
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ updates:
directory: /
schedule:
interval: weekly
commit-message:
prefix: chore
include: scope
6 changes: 6 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
titleOnly: false
commitsOnly: false
titleAndCommits: true
anyCommit: false
allowMergeCommits: false
allowRevertCommits: true
44 changes: 44 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
repository:
name: asdf-kn
description: Knative Client plugin for asdf version manager
topics: asdf, asdf-plugin, knative, kn
private: false
has_issues: true
has_projects: false
has_wiki: false
has_downloads: true
default_branch: master
allow_squash_merge: false
allow_merge_commit: false
allow_rebase_merge: true
allow_auto_merge: true
allow_update_branch: true
delete_branch_on_merge: true
enable_automated_security_fixes: true
enable_vulnerability_alerts: true

branches:
- name: master
protection:
required_pull_request_reviews:
required_approving_review_count: 1
dismiss_stale_reviews: true
require_code_owner_reviews: true
required_status_checks:
strict: true
checks:
- context: asdf plugin test (ubuntu-latest)
app_id: 15368
- context: asdf plugin test (macos-latest)
app_id: 15368
- context: pre-commit.ci - pr
app_id: 68672
- context: Semantic Pull Request
app_id: 9517
- context: DCO
app_id: 1861
enforce_admins: false
required_linear_history: true
required_conversation_resolution: true
restrictions:
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: build

on:
pull_request:
push:
branches:
- master
pull_request:

jobs:
plugin_test:
Expand All @@ -23,5 +23,5 @@ jobs:
- name: test versions <= 1.0.0
uses: asdf-vm/actions/plugin-test@v1
with:
version: 0.26.0
version: latest
command: kn version
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: GoogleCloudPlatform/[email protected]
with:
Expand Down
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: pretty-format-json
- id: trailing-whitespace
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.17
Expand All @@ -20,3 +26,11 @@ repos:
- --autofix
- --indent
- '2'
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v1.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
ci:
autofix_commit_msg: 'chore: pre-commit auto fixes'
autoupdate_commit_msg: 'chore: pre-commit autoupdate'
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pre-commit 2.17.0
shellcheck 0.8.0
shfmt 3.4.2
9 changes: 9 additions & 0 deletions CONTRIBUTING.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
= Contributing Guidelines

This project accepts contributions via GitHub pull requests.
This document outlines the process to help get your contribution accepted.

== Pull Request Checklist

* Write commit messages in the style of https://www.conventionalcommits.org/en/v1.0.0/[Conventional Commits].
* Accept the https://developercertificate.org/[Developer Certificate of Origin (DCO)] by https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff[signing off] your commits.
7 changes: 7 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
= Template

image:https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white[pre-commit, link=https://github.com/pre-commit/pre-commit]

== Contributing

If you're looking to contribute, you can find additional information in link:CONTRIBUTING.adoc[here].

0 comments on commit 060e84a

Please sign in to comment.