Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🩹 [Patch]: Add formatting to dates in response headers #303

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

MariusStorhaug
Copy link
Member

Description

This pull request includes changes to the Invoke-GitHubAPI function to improve the handling of date and time headers.

Date and time handling improvements:

  • Added conversion of the x-ratelimit-reset header from Unix epoch seconds to a formatted date-time string.
  • Added parsing and formatting of the Date header to a standardized date-time string.
  • Added parsing and formatting of the github-authentication-token-expiration header to a standardized date-time string.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@MariusStorhaug MariusStorhaug self-assigned this Feb 7, 2025
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner February 7, 2025 15:01
@MariusStorhaug MariusStorhaug merged commit 18e433d into main Feb 7, 2025
20 checks passed
@MariusStorhaug MariusStorhaug deleted the nittyGritty branch February 7, 2025 16:27
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Module GitHub - v0.14.1 published to the PowerShell Gallery.

Copy link
Contributor

github-actions bot commented Feb 7, 2025

GitHub release for GitHub v0.14.1 has been created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

🩹 [Patch]: In Invoke-GitHubAPI, convert x-ratelimit-reset in response header to datetime
1 participant