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 ededfd1..a1b69f9 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 @@ -39,5 +39,4 @@ repos: - id: no-commit-to-branch - id: trailing-whitespace ci: - autofix_prs: true - autoupdate_schedule: quarterly + autofix_prs: false