diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e2347a8..b214fc3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,6 @@ updates: directory: / schedule: interval: weekly + commit-message: + prefix: chore + include: scope diff --git a/.github/semantic.yml b/.github/semantic.yml new file mode 100644 index 0000000..6f1287c --- /dev/null +++ b/.github/semantic.yml @@ -0,0 +1,6 @@ +titleOnly: false +commitsOnly: false +titleAndCommits: true +anyCommit: false +allowMergeCommits: false +allowRevertCommits: true diff --git a/.github/settings.yml b/.github/settings.yml new file mode 100644 index 0000000..64f34e9 --- /dev/null +++ b/.github/settings.yml @@ -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: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1832dca..d7d92ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,10 @@ name: build on: + pull_request: push: branches: - master - pull_request: jobs: plugin_test: @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e21c35..87d171d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,8 @@ on: jobs: release-please: runs-on: ubuntu-latest + outputs: + release_created: ${{ steps.release.outputs.release_created }} steps: - uses: GoogleCloudPlatform/release-please-action@v3.1 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 83f7f8d..b6a9812 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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' diff --git a/.tool-versions b/.tool-versions index 90f03bc..14d13a1 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,3 @@ +pre-commit 2.17.0 shellcheck 0.8.0 shfmt 3.4.2 diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc new file mode 100644 index 0000000..ca78c81 --- /dev/null +++ b/CONTRIBUTING.adoc @@ -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. diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..ec4388b --- /dev/null +++ b/README.adoc @@ -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].