Skip to content

current time along with key expiry time#418

Open
Dipro-cyber wants to merge 1 commit into
chaoss:mainfrom
Dipro-cyber:feat/show-current-time-api-keys-412
Open

current time along with key expiry time#418
Dipro-cyber wants to merge 1 commit into
chaoss:mainfrom
Dipro-cyber:feat/show-current-time-api-keys-412

Conversation

@Dipro-cyber

Copy link
Copy Markdown
Contributor

Description
Adds a "Current Time" line above the API key table in the collectoss github api-keys command output. This makes it easier to compare key reset times against the current time at a glance. Reuses the existing epoch_to_local_time_with_am_pm() helper so the format is consistent with the reset time column.

This PR fixes #412

Notes for Reviewers
3-line change in collectoss/application/cli/github.py. No new dependencies.

Signed commits

  • Yes, I signed my commits.

Generative AI disclosure

Please select one option:

  • This contribution was NOT assisted or created by Generative AI tools.
  • This contribution was assisted or created by Generative AI tools.

If AI tools were used, please provide details below:

  • What tools were used? Kiro
  • How were these tools used? Drafted the code change
  • Did you review these outputs before submitting this PR? Yes, reviewed and verified the change before submitting

…keys CLI

Adds a 'Current Time' line above the API key table in the
'collectoss github api-keys' command output. This makes it easier
to compare key reset times against the current time at a glance.

Fixes chaoss#412

Signed-off-by: Diptesh Roy <droy88333@gmail.com>
@MoralCode

Copy link
Copy Markdown
Contributor

the code itself LGTM. Will test this eventually and merge (currently thinking for v1.2 but we'll see)

@MoralCode MoralCode added this to the v1.2 milestone Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output current time alongside API key reset time

2 participants