Add --before and --after time filtering with relative time support to gh aw inspect#103
Closed
Add --before and --after time filtering with relative time support to gh aw inspect#103
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
… gh aw inspect Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [copilot] update
Add --before and --after time filtering with relative time support to gh aw inspect
Aug 19, 2025
gh aw inspect time filter (--before, --after) to support relative time (-24)
16 tasks
5 tasks
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.
This PR adds time-based filtering capabilities to the
gh aw inspectcommand, supporting both absolute dates and relative time expressions like-24h(24 hours ago) or-3d(3 days ago).Changes Made
Extended Time Delta System
TimeDeltastruct to support negative relative times by adding aSignfieldparseTimeDeltafunction to accept both+and-prefixes (e.g.,+24h,-24h)isRelativeTimehelper function to detect relative time expressionsResolveRelativeTimefunction to convert relative times to absolute timestampsstop-timefrontmatter field functionalityEnhanced Inspect Command
--beforeand--afterflags to filter workflow results by time-24h,-3d,-1d12h30m(hours/days/minutes ago)+24h,+3d(hours/days/minutes from now)2024-12-31 23:59:59,June 1, 2025,1st January 2025Example Usage
Testing
The existing time delta system for the
stop-timefrontmatter field now supports both positive and negative relative times, and this enhanced functionality is now available as filtering options in theinspectcommand.Fixes #102.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.contoso.com/tmp/go-build309341679/b270/cli.test -test.testlogfile=/tmp/go-build309341679/b270/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)/tmp/go-build1217218078/b001/cli.test -test.testlogfile=/tmp/go-build1217218078/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)/tmp/go-build1669324914/b270/cli.test -test.testlogfile=/tmp/go-build1669324914/b270/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.