From da0d9b7ac5e558d65262acd73785812e645b0fef Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 07:42:34 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/zricethezav/gitleaks: v8.15.2 → v8.16.2](https://github.com/zricethezav/gitleaks/compare/v8.15.2...v8.16.2) - [github.com/igorshubovych/markdownlint-cli: v0.32.2 → v0.33.0](https://github.com/igorshubovych/markdownlint-cli/compare/v0.32.2...v0.33.0) - [github.com/adrienverge/yamllint: v1.28.0 → v1.30.0](https://github.com/adrienverge/yamllint/compare/v1.28.0...v1.30.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ededfd1..28858a6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,18 +11,18 @@ repos: - id: detect-secrets stages: ["commit", "push"] - repo: https://github.com/zricethezav/gitleaks - rev: v8.15.2 + rev: v8.16.2 hooks: - id: gitleaks stages: ["commit", "push"] # Markdown - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.32.2 + rev: v0.33.0 hooks: - id: markdownlint # Yaml - repo: https://github.com/adrienverge/yamllint - rev: v1.28.0 + rev: v1.30.0 hooks: - id: yamllint # Other From 93a89afaa926c70ebf57cc3f1401732a0a2508c4 Mon Sep 17 00:00:00 2001 From: fabasoad Date: Thu, 6 Apr 2023 08:29:04 +0900 Subject: [PATCH 2/2] Set autofix_prs to false --- .github/pull_request_template.md | 29 +++++++++++++++++----------- .github/workflows/create-release.yml | 24 ++++------------------- .pre-commit-config.yaml | 3 +-- 3 files changed, 23 insertions(+), 33 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index ca97abc..b1d0e19 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,12 +1,10 @@ -Closes #{IssueNumber} - ## Pull request checklist Please check if your PR fulfills the following requirements: -- [ ] I have read the [CONTRIBUTING](https://github.com/fabasoad/setup-brainfuck-action/CONTRIBUTING.md) +- [ ] I have read the [CONTRIBUTING](https://github.com/fabasoad/setup-brainfuck-action/blob/main/CONTRIBUTING.md) doc. - [ ] Tests for the changes have been added (for bug fixes / features). - [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features). @@ -15,7 +13,8 @@ doc. - + Please check the type of change your PR introduces: @@ -27,24 +26,32 @@ Please check the type of change your PR introduces: - [ ] Documentation content changes - [ ] Other (please describe): -## What is the current behavior? - +## What is the current behavior + -## What is the new behavior? +## What is the new behavior - - - -## Does this introduce a breaking change? +## Does this introduce a breaking change - [ ] Yes - [ ] No - + ## Other information - - + + + +--- + +Closes #{IssueNumber} diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index fd18a08..89f8bf6 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -14,35 +14,19 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Get latest release tag - id: latest_release - run: | - latest_tag=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') - echo "tag=${latest_tag}" >> $GITHUB_OUTPUT - shell: sh - - name: Get current release tag - id: current_release - run: echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT - shell: bash - - name: Build changelog + - name: Get changelog id: changelog - run: | - body=$(git log --pretty=oneline ${{ steps.latest_release.outputs.tag }}..${{ steps.current_release.outputs.tag }}) - body="${body//'%'/'%25'}" - body="${body//$'\n'/'%0A'}" - body="${body//$'\r'/'%0D'}" - echo "body=${body}" >> $GITHUB_OUTPUT - shell: bash + uses: simbo/changes-since-last-release-action@v1 - name: Create release uses: softprops/action-gh-release@v1 with: tag_name: ${{ github.ref }} - name: ${{ steps.current_release.outputs.tag }} + name: ${{ github.ref_name }} token: ${{ secrets.GITHUB_TOKEN }} body: | # Changelog - ${{ steps.changelog.outputs.body }} + ${{ steps.changelog.outputs.log }} draft: false prerelease: false - name: Bump tags diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28858a6..a1b69f9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,5 +39,4 @@ repos: - id: no-commit-to-branch - id: trailing-whitespace ci: - autofix_prs: true - autoupdate_schedule: quarterly + autofix_prs: false