Skip to content

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
6 checks passed
@MariusStorhaug MariusStorhaug deleted the nittyGritty branch February 7, 2025 16:27
@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2025

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

@github-actions
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

2 participants