Skip to content

api: Change Extract and CheckIn to include config-changed#74

Merged
doanac merged 1 commit into
foundriesio:mainfrom
doanac:config-changed-return
Oct 24, 2025
Merged

api: Change Extract and CheckIn to include config-changed#74
doanac merged 1 commit into
foundriesio:mainfrom
doanac:config-changed-return

Conversation

@doanac
Copy link
Copy Markdown
Member

@doanac doanac commented Oct 24, 2025

Callers of Extract and CheckIn can benefit from knowing if a config file actually changed.

Comment thread internal/app.go Outdated

modtime, err := time.Parse(time.RFC1123, res.Header.Get("Date"))
modtime, err2 := time.Parse(time.RFC1123, res.Header.Get("Date"))
if err != nil {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if err != nil {
if err2 != nil {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch. fixed in force push

Callers of `Extract` and `CheckIn` can benefit from knowing if a config
file actually changed.

Signed-off-by: Andy Doan <andy@foundries.io>
@doanac doanac force-pushed the config-changed-return branch from 77ed74a to 65c039a Compare October 24, 2025 15:26
@doanac doanac merged commit 65c039a into foundriesio:main Oct 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants