TomCasavant / tomcasavant.github.io

My personal blog
https://tomcasavant.com/
MIT License
1 stars 0 forks source link

Sweep: Add a new page for "Bookmarks" that displays an RSS feed #31

Closed TomCasavant closed 1 year ago

TomCasavant commented 1 year ago

RSS feed source: https://tomcasavant.glitch.me/index.xml

Checklist - [X] Modify `content/_includes/sidebar.njk` ✓ https://github.com/TomCasavant/tomcasavant.github.io/commit/ff572c3cf2d748fa66e58903b66b30e3a560aa9b - [X] Check `content/_includes/sidebar.njk` ✓ - [X] Modify `content/bookmarks.njk` ✓ https://github.com/TomCasavant/tomcasavant.github.io/commit/5ed1490d507fb67f8d03ff59ed8b42e3476ccd50 - [X] Check `content/bookmarks.njk` ✗ - [X] Modify `content/bookmarks.njk` ! No changes made - [X] Check `content/bookmarks.njk` ✗ - [X] Modify `assets/css/site.css` ✓ https://github.com/TomCasavant/tomcasavant.github.io/commit/817b7b82e84b9c83da0d895ec5f71290ea43ee88 - [X] Check `assets/css/site.css` ✗ - [ ] Modify `assets/css/site.css` ⋯ - [ ] Check `assets/css/site.css` ▶ ![Flowchart](http://24.199.78.105:8082/public/7bfad1b726439715735b8770efc56e6bf8cbdb5409b25724de2212f99989f063_31_flowchart.svg)
sweep-ai[bot] commented 1 year ago
Sweeping

50%
Sweep Basic Tier: I'm using GPT-4. You have 4 GPT-4 tickets left for the month and 2 for the day. (tracking ID: ed5a6cae84)

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).

![Docker Version Updated](https://img.shields.io/badge/Docker%20Version%20Updated-19%20minutes%20ago-blue)
Install Sweep Configs: Pull Request

Actions (click)

Sandbox Execution ✓

Here are the sandbox execution logs prior to making any changes:

Sandbox logs for d0c4587
npm i 1/6 ✓
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
added 664 packages, and audited 665 packages in 31s
103 packages are looking for funding
  run `npm fund` for details
8 vulnerabilities (7 high, 1 critical)
To address issues that do not require attention, run:
  npm audit fix
To address all issues (including breaking changes), run:
  npm audit fix --force
Run `npm audit` for details.
npm notice 
npm notice New major version of npm available! 9.6.7 -> 10.2.3
npm notice Changelog: 
npm notice Run `npm install -g npm@10.2.3` to update!
npm notice 
trunk init 2/6 ✓
⡿ Downloading Trunk 1.17.2...
⡿ Downloading Trunk 1.17.2...
⢿ Downloading Trunk 1.17.2...
⣻ Downloading Trunk 1.17.2...
⣽ Downloading Trunk 1.17.2...
⣾ Downloading Trunk 1.17.2...
⣷ Downloading Trunk 1.17.2...
✔ Downloading Trunk 1.17.2... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 13 linters were enabled (.trunk/trunk.yaml)
  actionlint 1.6.26 (1 github-workflow file)
  checkov 3.0.35 (12 json, 2 yaml files)
  eslint 8.53.0 (14 javascript files)
  git-diff-check (185 files)
  markdownlint 0.37.0 (33 markdown files)
  osv-scanner 1.4.3 (2 lockfile files)
  oxipng 9.0.0 (56 png files)
  prettier 3.1.0 (2 css, 12 html, 14 javascript, 10 json, 33 markdown, 1 prettier_supported_configs, 14 sass, 2 yaml files)
  svgo 3.0.3 (4 svg files) (created svgo.config.js)
  taplo 0.8.1 (1 toml file)
  trivy 0.47.0 (2 yaml files)
  trufflehog 3.62.1 (187 files)
  yamllint 1.33.0 (2 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt assets/css/site.css || exit 0 3/6 ✓
 ✔ Formatted assets/css/site.css
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix --print-failures assets/css/site.css 4/6 ✓
Checked 1 file
✔ No issues
trunk fmt assets/css/site.css || exit 0 5/6 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures assets/css/site.css 6/6 ✓
Checked 1 file
✔ No issues

Sandbox passed on the latest master, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/TomCasavant/tomcasavant.github.io/blob/d0c45873e9a1c9ecb7a6de5b8872ce1a8c1f29d9/content/bookmarks.njk#L1-L11 https://github.com/TomCasavant/tomcasavant.github.io/blob/d0c45873e9a1c9ecb7a6de5b8872ce1a8c1f29d9/content/_includes/sidebar.njk#L65-L125 https://github.com/TomCasavant/tomcasavant.github.io/blob/d0c45873e9a1c9ecb7a6de5b8872ce1a8c1f29d9/assets/css/site.css#L365-L430
I also found the following external resources that might be helpful: **Summaries of links found in the content:** https://tomcasavant.glitch.me/bookmark/63

Step 2: ⌨️ Coding

trunk fmt content/_includes/sidebar.njk || exit 0 1/2 ✓
Found no applicable linters for the requested path
trunk check --fix --print-failures content/_includes/sidebar.njk 2/2 ✓
Checked 1 file
✔ No issues

trunk fmt content/bookmarks.njk || exit 0 1/2 ✓
Found no applicable linters for the requested path
trunk check --fix --print-failures content/bookmarks.njk 2/2 ❌ (`1`)
  ISSUES  
content/bookmarks.njk:21:1
 21:1  high   leftover conflict marker  git-diff-check/error
 31:1  high   leftover conflict marker  git-diff-check/error
Checked 1 file
✖ 2 new issues

trunk fmt content/bookmarks.njk || exit 0 1/2 ✓
Found no applicable linters for the requested path
trunk check --fix --print-failures content/bookmarks.njk 2/2 ❌ (`1`)
  ISSUES  
content/bookmarks.njk:21:1
 21:1  high   leftover conflict marker  git-diff-check/error
 31:1  high   leftover conflict marker  git-diff-check/error
Checked 1 file
✖ 2 new issues

trunk fmt assets/css/site.css || exit 0 1/2 ✓
  FAILURES  
 prettier  assets/css/site.css  .trunk/out/20Uyb.yaml
  NOTICES  
 A tool failed to run. You can open the details yaml file for more information.
Checked 0 files
✖ No issues, 1 failure
trunk check --fix --print-failures assets/css/site.css 2/2 ❌ (`1`)
  ISSUES  
assets/css/site.css:406:1
 406:1  high   trailing whitespace.  git-diff-check/error
 417:1  high   trailing whitespace.  git-diff-check/error
 424:1  high   trailing whitespace.  git-diff-check/error
 428:1  high   trailing whitespace.  git-diff-check/error
 432:1  high   trailing whitespace.  git-diff-check/error
  FAILURES  
 prettier  assets/css/site.css  .trunk/out/bmZrk.yaml
  NOTICES  
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ 5 new issues
# .trunk/out/bmZrk.yaml
trunk_cli_version: 1.17.2
title: prettier exited with exit_code=2
report:
  - prettier exited with exit_code=2
  - linter:
      command: |
        /root/.cache/trunk/tools/prettier/3.1.0-a552fdee5ef3daae1274e7dca8183c14/node_modules/.bin/prettier -w assets/css/site.css
      stdin_path: (none)
      run_from: /tmp/trunk-0/W0FHjx/CQmtBZ
      timeout: 10m
      rerun: (cd /tmp/trunk-0/W0FHjx/CQmtBZ; env -i PATH=/root/.cache/trunk/tools/prettier/3.1.0-a552fdee5ef3daae1274e7dca8183c14/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_PATH=/root/.cache/trunk/tools/prettier/3.1.0-a552fdee5ef3daae1274e7dca8183c14/node_modules HOME=/root /root/.cache/trunk/tools/prettier/3.1.0-a552fdee5ef3daae1274e7dca8183c14/node_modules/.bin/prettier -w assets/css/site.css)
      affects_cache:
        - package.json
      direct_configs:
        - .prettierrc
        - .prettierignore
      exit_status: exited
      exit_code: 2
      stdout: (none)
      stderr: |
        [error] assets/css/site.css: SyntaxError: CssSyntaxError: Unexpected } (665:1)
        [error]   663 |     transition: opacity 0.2s ease-in-out;
        [error]   664 |     animation: fadeup-scrolltop 0.7s;
        [error] > 665 | }
        [error]       | ^
        [error]   666 |
        [error]   667 | @media all and (max-width: 400px) {
        [error]   668 |     .scroll {
    parser: |
      (none)

trunk fmt assets/css/site.css || exit 0 1/2 ✓
  FAILURES  
 prettier  assets/css/site.css  .trunk/out/20Uyb.yaml
  NOTICES  
 A tool failed to run. You can open the details yaml file for more information.
Checked 0 files
✖ No issues, 1 failure
trunk check --fix --print-failures assets/css/site.css 2/2 ❌ (`1`)
  ISSUES  
assets/css/site.css:406:1
 406:1  high   trailing whitespace.  git-diff-check/error
 417:1  high   trailing whitespace.  git-diff-check/error
 424:1  high   trailing whitespace.  git-diff-check/error
 428:1  high   trailing whitespace.  git-diff-check/error
 432:1  high   trailing whitespace.  git-diff-check/error
  FAILURES  
 prettier  assets/css/site.css  .trunk/out/bmZrk.yaml
  NOTICES  
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
✖ 5 new issues
# .trunk/out/bmZrk.yaml
trunk_cli_version: 1.17.2
title: prettier exited with exit_code=2
report:
  - prettier exited with exit_code=2
  - linter:
      command: |
        /root/.cache/trunk/tools/prettier/3.1.0-a552fdee5ef3daae1274e7dca8183c14/node_modules/.bin/prettier -w assets/css/site.css
      stdin_path: (none)
      run_from: /tmp/trunk-0/W0FHjx/CQmtBZ
      timeout: 10m
      rerun: (cd /tmp/trunk-0/W0FHjx/CQmtBZ; env -i PATH=/root/.cache/trunk/tools/prettier/3.1.0-a552fdee5ef3daae1274e7dca8183c14/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_PATH=/root/.cache/trunk/tools/prettier/3.1.0-a552fdee5ef3daae1274e7dca8183c14/node_modules HOME=/root /root/.cache/trunk/tools/prettier/3.1.0-a552fdee5ef3daae1274e7dca8183c14/node_modules/.bin/prettier -w assets/css/site.css)
      affects_cache:
        - package.json
      direct_configs:
        - .prettierrc
        - .prettierignore
      exit_status: exited
      exit_code: 2
      stdout: (none)
      stderr: |
        [error] assets/css/site.css: SyntaxError: CssSyntaxError: Unexpected } (665:1)
        [error]   663 |     transition: opacity 0.2s ease-in-out;
        [error]   664 |     animation: fadeup-scrolltop 0.7s;
        [error] > 665 | }
        [error]       | ^
        [error]   666 |
        [error]   667 | @media all and (max-width: 400px) {
        [error]   668 |     .scroll {
    parser: |
      (none)


Step 3: 🔁 Code Review

Working on it...


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord