Repository navigation
chore: sync actions from gh-aw@v0.77.5 - #128
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Synces gh-aw action scripts to v0.77.5, primarily adding support for formatting expiration/closure timestamps in a configurable “project” UTC offset and improving diagnosability of the daily effective token (ET) workflow guardrail.
Changes:
- Added
project_timezone.cjsto resolve a repo/env-configured UTC offset and format dates in that offset. - Updated expiration marker generation and expired entity closure messages to prefer project-time-zone formatting when configured.
- Added consistently prefixed diagnostic logging throughout the daily workflow ET guardrail flow.
Show a summary per file
| File | Description |
|---|---|
| setup/js/project_timezone.cjs | New helper for resolving/formatting dates with a configured UTC offset. |
| setup/js/ephemerals.cjs | Uses project-time-zone formatting for expiration strings and adjusts expiration marker output. |
| setup/js/close_expired_pull_requests.cjs | Uses project-time-zone formatting in “expired on …” closure comments. |
| setup/js/close_expired_issues.cjs | Uses project-time-zone formatting in “expired on …” closure comments. |
| setup/js/close_expired_discussions.cjs | Uses project-time-zone formatting in “expired on …” closure comments. |
| setup/js/check_daily_effective_workflow_guardrail.cjs | Adds structured, consistently prefixed diagnostic logging for ET guardrail inspection. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 6/6 changed files
- Comments generated: 6
Comment on lines
+4
to
8
| const { formatDateInProjectTimeZone, resolveProjectTimeZone } = require("./project_timezone.cjs"); | ||
|
|
||
| /** | ||
| * Regex pattern to match expiration marker with checked checkbox and HTML comment (new format) | ||
| * Format: > - [x] expires <!-- gh-aw-expires: ISO_DATE --> on HUMAN_DATE UTC |
Comment on lines
+27
to
+30
| const projectDate = formatDateInProjectTimeZone(date); | ||
| if (projectDate) { | ||
| return projectDate; | ||
| } |
Comment on lines
44
to
51
| function createExpirationLine(expirationDate) { | ||
| const expirationISO = expirationDate.toISOString(); | ||
| const humanReadableDate = formatExpirationDate(expirationDate); | ||
| if (resolveProjectTimeZone()) { | ||
| return `- [x] expires <!-- gh-aw-expires: ${expirationISO} --> on ${humanReadableDate}`; | ||
| } | ||
| return `- [x] expires <!-- gh-aw-expires: ${expirationISO} --> on ${humanReadableDate} UTC`; | ||
| } |
Comment on lines
2
to
+6
| // <reference types="@actions/github-script" /> | ||
|
|
||
| const { executeExpiredEntityCleanup } = require("./expired_entity_main_flow.cjs"); | ||
| const { generateExpiredEntityFooter, getExpiredEntityCautionAlert } = require("./generate_footer.cjs"); | ||
| const { formatDateInProjectTimeZone } = require("./project_timezone.cjs"); |
Comment on lines
2
to
+6
| // <reference types="@actions/github-script" /> | ||
|
|
||
| const { executeExpiredEntityCleanup } = require("./expired_entity_main_flow.cjs"); | ||
| const { generateExpiredEntityFooter, getExpiredEntityCautionAlert } = require("./generate_footer.cjs"); | ||
| const { formatDateInProjectTimeZone } = require("./project_timezone.cjs"); |
Comment on lines
2
to
+6
| // <reference types="@actions/github-script" /> | ||
|
|
||
| const { executeExpiredEntityCleanup } = require("./expired_entity_main_flow.cjs"); | ||
| const { generateExpiredEntityFooter, getExpiredEntityCautionAlert } = require("./generate_footer.cjs"); | ||
| const { formatDateInProjectTimeZone } = require("./project_timezone.cjs"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated sync of actions from gh-aw at
v0.77.5.