[PR #1592] [MERGED] feat: cache notices to reduce frequency of upgrade notifications #2019

Closed
opened 2026-03-01 21:53:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/1592
Author: @cplee
Created: 2/1/2023
Status: Merged
Merged: 2/2/2023
Merged by: @cplee

Base: masterHead: cache-notices


📝 Commits (4)

  • 2634384 feat: cache notices to reduce frequency of upgrade notifications
  • cc45b96 fix: reduce WriteFile permissions
  • 437d5d6 fix: remove reference to deprecated lib
  • 4e291e0 fix: handle HTTP status 304

📊 Changes

1 file changed (+61 additions, -1 deletions)

View changed files

📝 cmd/notices.go (+61 -1)

📄 Description

Look for ETag header when checking for upgrade notices and store that value in ~/.cache/act/.notices.etag. Use that value as If-None-Match header to perform conditional GET request.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/1592 **Author:** [@cplee](https://github.com/cplee) **Created:** 2/1/2023 **Status:** ✅ Merged **Merged:** 2/2/2023 **Merged by:** [@cplee](https://github.com/cplee) **Base:** `master` ← **Head:** `cache-notices` --- ### 📝 Commits (4) - [`2634384`](https://github.com/nektos/act/commit/2634384f0f4305e71dffa1031f7937d70247bcad) feat: cache notices to reduce frequency of upgrade notifications - [`cc45b96`](https://github.com/nektos/act/commit/cc45b963e1737cb5a12b572a325def752264bf26) fix: reduce WriteFile permissions - [`437d5d6`](https://github.com/nektos/act/commit/437d5d66a94d616523eb0c7d64842d5e80277e47) fix: remove reference to deprecated lib - [`4e291e0`](https://github.com/nektos/act/commit/4e291e0d9c543208953e939807748c15589ab738) fix: handle HTTP status 304 ### 📊 Changes **1 file changed** (+61 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/notices.go` (+61 -1) </details> ### 📄 Description Look for `ETag` header when checking for upgrade notices and store that value in `~/.cache/act/.notices.etag`. Use that value as `If-None-Match` header to perform conditional GET request. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:53:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#2019
No description provided.