Files
news.gitea.happylizard.me/bin/gems/octokit-6.1.1/lib/octokit/response/feed_parser.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

18 lines
401 B
Ruby

# frozen_string_literal: true
require 'octokit/response/base_middleware'
module Octokit
module Response
# Parses RSS and Atom feed responses.
class FeedParser < BaseMiddleware
def on_complete(env)
if env[:response_headers]['content-type'] =~ /(\batom|\brss)/
require 'rss'
env[:body] = RSS::Parser.parse env[:body]
end
end
end
end
end