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

feat(types): add support for new REST API endpoints #524

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 13, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@octokit/types ^7.0.0 -> ^8.0.0 age adoption passing confidence

Release Notes

octokit/types.ts

v8.0.0

Compare Source

BREAKING CHANGES
  • @octokit/types no longer include endpoint types for GHEC
Features
  • feat: publish new GitHub Enterprise Cloud (GHEC) specific @octokit/openapi-types-ghec package, plus lots of API changes (29539cf)
  • feat: add support for new "Get a Dependabot alert" API (GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number})
  • feat: add support for new "Update a Dependabot alert" API (PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number})
  • feat: add support for new "List Dependabot alerts for a repository" API (GET /repos/{owner}/{repo}/dependabot/alerts)
    • feat: add support for new "List organization secret" (GET /organizations/{org}/codespaces/secrets) Codespaces API
  • feat: add support for new "Get an organization public key" (GET /organizations/{org}/codespaces/secrets/public-key) Codespaces API
  • feat: add support for new "Get an organization secret" (GET /organizations/{org}/codespaces/secrets/{secret_name} ) Codespaces API
  • feat: adds support for new "Create or update an organization secret" (PUT /organizations/{org}/codespaces/secrets/{secret_name} ) Codespaces API
  • feat: add support for new "Delete an organization secret" (DELETE /organizations/{org}/codespaces/secrets/{secret_name}) Codespaces API
  • feat: add support for new "List selected repositories for an organization secret" (GET /organizations/{org}/codespaces/secrets/{secret_name}/repositories) Codespaces API
  • feat: add support for new "Set selected repositories for an organization secret" ( PUT /organizations/{org}/codespaces/secrets/{secret_name}/repositories) Codespaces API
  • feat: add support for new "Add selected repository to an organization secret" (PUT /organizations/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}) Codespaces API
  • feat: add support for new "Remove selected repository from an organization secret" (DELETE /organizations/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}) Codespaces API
  • feat: add support for resolution_comment attribute returned on secret scanning alerts
  • feat: add support for new scope attribute returned by the "Get a diff of the dependencies between commits" (GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}) API
  • deps: update @octokit/openapi-types to v14 (#​463) (7bf7e20)

### Fixes

  • fix: tweak documentation for repo starring related APIs (GET /repos/{owner}/{repo}/stargazers, GET /users/{username}/starred and GET /user/starred) to clarify what Accept header to send to get information about when stars were created
  • fix: tweak documentation for "Get community profile metrics" API (GET /repos/{owner}/{repo}/community/profile) to clarify that it only works with public repos which are not forks
  • fix: document the size attribute returned on repos across the API
  • fix: document that APIs can return 422 errors when an endpoint has been spammed with many requests
  • fix: document 301 status returned by labels-related APIs if the repo has been renamed or moved
  • fix: document 404 Not Found status returned by labels-related APIs

v7.5.1

Compare Source

Bug Fixes
  • deps: revert upgrade of dependency sort-keys to v5 (#​468) (e80d45f)

v7.5.0

Compare Source

Features
  • add new "List CodeQL databases for a repository" (GET /repos/{owner}/{repo}/code-scanning/codeql/databases) and "Get a CodeQL database for a repository" (GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}) APIs (#​461) (440eb6d)

v7.4.0

Compare Source

Features
  • add support for filtering the "List repository collaborators" API (GET /repos/{owner}/{repo}/collaborators) by permission using a query param (#​459) (3502d91)

v7.3.1

Compare Source

Bug Fixes
  • deps: bump @octokit/openapi-types to latest (v13.9.1) (#​456) (87928d2)

v7.3.0

Compare Source

Features
  • add support for new public beta APIs for creating, reading, updating and deleting custom repo roles (POST /orgs/{org}/custom_roles, PATCH /orgs/{org}/custom_roles/{role_id}, DELETE /orgs/{org}/custom_roles/{role_id}, GET /orgs/{org}/fine_grained_permissions) (#​455) (b162e5d)

v7.2.0

Compare Source

Features
  • Add support for new "Enable or disable a security feature for an organization" API (POST /orgs/{org}/{security_product}/{enablement})
  • Add support for new advanced_security_enabled_for_new_repositories, dependabot_alerts_enabled_for_new_repositories, dependabot_security_updates_enabled_for_new_repositories, dependency_graph_enabled_for_new_repositories, secret_scanning_enabled_for_new_repositories and secret_scanning_push_protection_enabled_for_new_repositories boolean parameters when updating an organization with PATCH /orgs/:id
  • Add support for sorting with sort and direction querystring parameters when listing a repo's code scanning analyses with GET /repos/{owner}/{repo}/code-scanning/analyses
  • Add support for default_branch_only boolean request body parameter when creating a fork with POST /repos/{owner}/{repo}/forks
  • Add support for state_reason request body parameter when updating an issue with PATCH /repos/{owner}/{repo}/issues/{issue_number}
  • Add support for new SSH signing keys APIs (GET /user/ssh_signing_keys, POST /user/ssh_signing_keys, GET /user/ssh_signing_keys/{ssh_signing_key_id}, DELETE /user/ssh_signing_keys/{ssh_signing_key_id}, GET /users/{username}/ssh_signing_keys)

v7.1.1

Compare Source

Bug Fixes
  • deps: update @octokit/openapi-types to latest (v13.4.0) (#​442) (cbcea3c)

v7.1.0

Compare Source

Features
  • add new Enterprise licenses APIs (GET /enterprises/{enterprise}/consumed-licenses, GET /enterprises/{enterprise}/license-sync-status) (#​439) (a61bd54)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR label Oct 13, 2022
@gr2m gr2m changed the title fix(deps): update dependency @octokit/types to v8 feat(types): add support for new REST API endpoints Oct 13, 2022
@gr2m gr2m merged commit 99aaa4e into master Oct 13, 2022
@gr2m gr2m deleted the renovate/octokit-types-8.x branch October 13, 2022 04:32
@github-actions
Copy link
Contributor

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant