diff --git a/.github/workflows/build-and-bump.yml b/.github/workflows/build-and-bump.yml index 18abe0c8..5ed785cb 100644 --- a/.github/workflows/build-and-bump.yml +++ b/.github/workflows/build-and-bump.yml @@ -1,12 +1,12 @@ -name: Build, minify, lower syntax, bump versions, update download counts & changelog +name: Build and bump on: push: branches: [main] paths: - - source/** # only trigger when source files were changed - - .github/workflows/build-and-bump.yml # or on updates to this file itself - workflow_dispatch: # allows manual triggering on GitHub + - source/** + - .github/workflows/build-and-bump.yml + workflow_dispatch: permissions: contents: write @@ -43,7 +43,12 @@ jobs: npx lightningcss --minify --browserslist \ --output-file="./theme.css" -- "./theme.css" || exit 1 - # check for unsupported features via `doiuse` + # append style-settings (last, so not removed by minification) + cat <(echo && echo "/* @settings") ./source/style-settings.yaml <(echo "*/") \ + >> ./theme.css + + - name: check for unsupported features + run: | violations=$(npx doiuse --browsers="$BROWSERSLIST" \ --config="./.doiuse-ignore.json" theme.css) if [[ -n "$violations" ]]; then # `doiuse` does not exit with non-zero code @@ -52,10 +57,6 @@ jobs: exit 1 fi - # append style-settings (last, so not removed by minification) - cat <(echo && echo "/* @settings") ./source/style-settings.yaml <(echo "*/") \ - >> ./theme.css - - name: bump version in manifest run: | version=$(grep --max-count=1 '"version"' "./manifest.json" | cut -d'"' -f4 | cut -d'.' -f2) @@ -71,7 +72,7 @@ jobs: - name: update changelog run: | git log :/bump.. --format="- %cs %s" | # commits since last `bump` commit - grep -vE "build|ci|refactor|style|bump" | # don't include internal changes + grep -vE "build|ci||style|bump" | # don't include internal changes sed -E "s/^(- [0-9-]+) ([^ ]+): /\1 **\2**: /" >> "temp.md" # bold cc keyword grep -v "^$" "Changelog.md" >> "temp.md" mv -f "temp.md" "Changelog.md" @@ -79,5 +80,5 @@ jobs: - name: commit uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: "bump: version & update changelog" + commit_message: "bump: version bump & changelog update" branch: ${{ github.head_ref }} diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml index e2f07778..3859f1f3 100644 --- a/.github/workflows/semantic-pr-title.yml +++ b/.github/workflows/semantic-pr-title.yml @@ -1,21 +1,29 @@ -name: Ensure Conventional Commits-like PR titles +name: PR title on: pull_request_target: - types: [opened, edited, synchronize] + types: + - opened + - edited + - synchronize + - reopened + - ready_for_review permissions: pull-requests: read jobs: semantic-pull-request: - name: Validate PR title + name: Check PR title runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v5 - # add `improv` to the list of allowed types + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - types: | + requireScope: false + subjectPattern: ^(?![A-Z]).+$ # disallow title starting with capital + types: | # add `improv` to the list of allowed types improv fix feat @@ -29,5 +37,3 @@ jobs: docs break revert - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index 093048e5..694219d3 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -1,4 +1,4 @@ -name: "Close stale issues and PRs" +name: Stale bot on: schedule: - cron: "18 04 * * 3" @@ -11,12 +11,12 @@ jobs: stale: runs-on: ubuntu-latest steps: - - name: Close Stale Issues + - name: Close stale issues uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - # DOCS https://github.com/actions/stale?tab=readme-ov-file#all-options + # DOCS https://github.com/actions/stale#all-options days-before-stale: 180 # ~6 months days-before-close: 7 stale-issue-label: "Stale" diff --git a/Changelog.md b/Changelog.md index c8cef565..2acb7c01 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,17 +4,14 @@ - 2024-12-15 **feat**: setting to hide the status bar icon of the Harper plugin - 2024-12-15 **docs**: improve some phrasing - 2024-12-11 **chore**: tweak headings in longform notes -- 2024-12-11 **chore**: consistent file naming convention -- 2024-12-09 **docs**: update badges - 2024-12-09 **docs**: formatting and minor fixes -- 2024-12-09 **feat**: new color scheme Gruvbox Light -- 2024-12-09 **feat**: new colorscheme `Gruvbox Dark` +- 2024-12-09 **feat**: new color scheme `Gruvbox Light` +- 2024-12-09 **feat**: new color scheme `Gruvbox Dark` - 2024-12-06 **chore**: do not override callout icons (#320) - 2024-11-22 **fix**: make link to relevant section of readme go to the correct place - 2024-11-20 **feat**: add infobox on submission of own color scheme - 2024-11-18 **feat!**: alternative color schemes - 2024-11-17 **fix**: reduce indentation of unordered lists in callouts -- 2024-11-17 **chore**: rename `just` tasks - 2024-11-12 **fix**: better contrast for success/error notifications - 2024-11-07 **fix**: remove outdated vault launch styling - 2024-11-04 **feat**: styling of success notices