Issue with org ruleset and target `tag`
With this file https://github.com/eclipse-arche/.eclipsefdn/blob/8f71503013236f30bf21b8a3b63c056ae95f6b00/otterdog/eclipse-arche.jsonnet, I get an error on apply:
│ Error: failed to apply patch: ADD - org_ruleset[name="tags"]
│ failed to add org ruleset with name 'tags':
│ Exception while accessing 'https://api.github.com/orgs/eclipse-arche/rulesets': (status=422, body={"message":"Validation Failed","errors":["Invalid
│ rule 'pull_request': "],"documentation_url":"https://docs.github.com/rest/orgs/rules#create-an-organization-repository-ruleset","status":"422"})
╵
It seems that the ruleset content is not valid. Please verify and create tests for this case.
Certain rules that can be specified seem to be only available when either targetting branches / tags / pulls or repository.
Right now no distinction is being made, but we need to add validation rules and then only specify the rules / keys that are supported by the target.
The Rest API is not really informative in this regard: https://docs.github.com/en/rest/orgs/rules?apiVersion=2022-11-28#create-an-organization-repository-ruleset
Will need trial and error.