Skip to content

feat: add github_repository_rulesets data source#3495

Open
slymanmrcan wants to merge 1 commit into
integrations:mainfrom
slymanmrcan:feat/github-repository-rulesets-datasource
Open

feat: add github_repository_rulesets data source#3495
slymanmrcan wants to merge 1 commit into
integrations:mainfrom
slymanmrcan:feat/github-repository-rulesets-datasource

Conversation

@slymanmrcan

@slymanmrcan slymanmrcan commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Resolves #2563

Before the change?

The provider had a github_repository_ruleset resource, but there was no data source to:

  • Fetch a single repository ruleset by ID
  • List all existing repository rulesets for a repository

After the change?

  • Added a new github_repository_ruleset data source for fetching a single ruleset by ID
  • Added a new github_repository_rulesets data source for listing all rulesets for a repository
  • Added acceptance tests for both data sources
  • Added documentation for both data sources

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

Note on AI Usage

AI coding assistants were used to help draft the initial code structure for both data sources. I have personally reviewed, understood, and tested all changes including:

@github-actions

Copy link
Copy Markdown

👋 Hi, and thank you for this contribution!

This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.

You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions.


🤖 This is an automated message.

@github-actions github-actions Bot added the Type: Feature New feature or request label Jun 18, 2026
@slymanmrcan slymanmrcan force-pushed the feat/github-repository-rulesets-datasource branch 4 times, most recently from 9dd260f to 02c5e39 Compare June 18, 2026 12:48
@slymanmrcan slymanmrcan force-pushed the feat/github-repository-rulesets-datasource branch from 02c5e39 to 0ee2ff0 Compare June 18, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: github_repository_ruleset datasource

1 participant