@managed-api/github-stitch-it v0.17.0
Stitch It Managed API for GitHub
Managed API for GitHub is an API Client for GitHub by Adaptavist. You can read more about Managed APIs here.
This is Stitch It runtime specific version of the Managed API (with stitch-it suffix). If you want to use Managed API in any other runtime, have a look at the runtime agnostic version.
Supported API calls
- fetch
- Branch
- Commit
- Deployment
- Git
- Issue
- Organization
- Project
- Pull
- Release
- Repository
- createDispatchEvent
- createOrganizationRepository
- createRepositoryForAuthenticatedUser
- createRepositoryFromTemplate
- deleteRepository
- disableAutomatedSecurityFixes
- disableVulnerabilityAlerts
- enableAutomatedSecurityFixes
- enableVulnerabilityAlerts
- getCodeOwnersErrors
- getContributors
- getLanguages
- getOrganizationRepositories
- getPublicRepositories
- getRepositoriesForAuthenticatedUser
- getRepositoriesForUser
- getRepository
- getTags
- getTeams
- getTopics
- isVulnerabilityAlertsEnabled
- replaceTopics
- transferRepository
- updateRepository
- Collaborator
- Content
- Fork
- Search
- User
Constructing Managed API
In Stitch It a Managed API is constructed for you, but if you need to construct it manually, here's how you can do it:
import { GitHubApi } from '@managed-api/github-stitch-it';
export default async function() {
const api = new GitHubApi('API_CONNECTION_ID');
}Contact
Feel free to drop ideas, suggestions or improvements into our Slack community channel.
Changelog
0.11.0
- Updated OpenApi Specification.
- Fields
sortandorderare deprecated inSearch.searchCode.
- Fields
0.9.0
Added support for the following Organization.Member methods:
List organization members that can be used as
Organization.Member.getMembersorAll.getOrganizationMembers.Check organization membership for a user that can be used as
Organization.Member.checkMembershipForUserorAll.checkOrganizationMembershipForUser.Remove an organization member that can be used as
Organization.Member.removeMemberorAll.removeOrganizationMember.Get organization membership for a user that can be used as
Organization.Member.getMembershipForUserorAll.getOrganizationMembershipForUser.Set organization membership for a user that can be used as
Organization.Member.setMembershipForUserorAll.setOrganizationMembershipForUser.Remove organization membership for a user that can be used as
Organization.Member.removeMembershipForUserorAll.removeOrganzationMembershipForUser.List organization memberships for the authenticated user that can be used as
Organization.Member.getMembershipsForAuthenticatedUserorAll.getOrganizationMembershipsForAuthenticatedUser.Get an organization membership for the authenticated user that can be used as
Organization.Member.getMembershipForAuthenticatedUserorAll.getOrganizationMembershipForAuthenticatedUser.Update an organization membership for the authenticated user that can be used as
Organization.Member.updateMembershipForAuthenticatedUserorAll.updateOrganizationMembershipForAuthenticatedUser.
Added support for the following Organization methods:
List organizations that can be used as
Organization.getOrganizationsorAll.getOrganizations.Get an organization that can be used as
Organization.getOrganizationorAll.getOrganization.Update an organization that can be used as
Organization.updateOrganizationorAll.updateOrganization.Get the audit log for an organization that can be used as
Organization.getAuditLogorAll.getAuditLogForOrganization.List app installations for an organization that can be used as
Organization.getInstallationsorAll.getInstallationsForOrganization.List organizations for the authenticated user that can be used as
Organization.getOrganizationsForAuthenticatedUserorAll.getOrganizationsForAuthenticatedUser.List organizations for a user that can be used as
Organization.getOrganizationsForUserorAll.getOrganizationsForUser.
Added support for the following Search methods:
Search code that can be used as
Search.searchCodeorAll.searchCode.Search commits that can be used as
Search.searchCommitsorAll.searchCommits.Search issues and pull requests that can be used as
Search.searchIssuesAndPullRequestsorAll.searchIssuesAndPullRequests.Search labels that can be used as
Search.searchLabelsorAll.searchLabels.Search repositories that can be used as
Search.searchRepositoriesorAll.searchRepositories.Search topics that can be used as
Search.searchTopicsorAll.searchTopics.Search users that can be used as
Search.searchUsersorAll.searchUsers.
Added support for the following Release methods:
List releases that can be used as
Release.getReleasesorAll.getReleases.Create a release that can be used as
Release.createReleaseorAll.createRelease.Generate release notes content for a release that can be used as
Release.generateReleaseNotesorAll.generateReleaseNotes.Get the latest release that can be used as
Release.getLatestReleaseorAll.getLatestRelease.Get a release by tag name that can be used as
Release.getReleaseByTagNameorAll.getReleaseByTagName.Get a release that can be used as
Release.getReleaseorAll.getRelease.Update a release that can be used as
Release.updateReleaseorAll.updateRelease.Delete a release that can be used as
Release.deleteReleaseorAll.deleteRelease.
Added support for the following User.Block methods:
List users blocked by the authenticated user that can be used as
User.Block.getBlockedUsersByAuthenticatedUserorAll.getBlockedUsersByAuthenticatedUser.Check if a user is blocked by the authenticated user that can be used as
User.Block.checkIfUserIsBlockedByAuthenticatedUserorAll.checkIfUserIsBlockedByAuthenticatedUser.Block a user that can be used as
User.Block.blockUserorAll.blockUser.Unblock a user that can be used as
User.Block.unblockUserorAll.unblockUser.
Added support for the following User methods:
Get the authenticated user that can be used as
User.getAuthenticatedUserorAll.getAuthenticatedUser.Update the authenticated user that can be used as
User.updateAuthenticatedUserorAll.updateAuthenticatedUser.List users that can be used as
User.getUsersorAll.getUsers.Get a user that can be used as
User.getUserorAll.getUser.Get contextual information for a user that can be used as
User.getUserContextorAll.getUserContext.
Added support for the following Repository.Content methods:
Delete a file that can be used as
Repository.Content.deleteFileorAll.deleteFile.Get a repository README that can be used as
Repository.Content.getRepositoryReadmeorAll.getRepositoryReadme.Get a repository README for a directory that can be used as
Repository.Content.getRepositoryReadmeForDirectoryorAll.getRepositoryReadmeForDirectory.
Added support for the following Branch.Protection methods:
Get branch protection that can be used as
Branch.Protection.getProtectionorAll.getBranchProtection.Update branch protection that can be used as
Branch.Protection.updateProtectionorAll.updateBranchProtection.Delete branch protection that can be used as
Branch.Protection.deleteProtectionorAll.deleteBranchProtection.
Added support for the following Branch.Protection.Admin methods:
Get admin branch protection that can be used as
Branch.Protection.Admin.getProtectionorAll.getAdminBranchProtection.Set admin branch protection that can be used as
Branch.Protection.Admin.setProtectionorAll.setAdminBranchProtection.Delete admin branch protection that can be used as
Branch.Protection.Admin.deleteProtectionorAll.deleteAdminBranchProtection.
Added support for the following Branch.Protection.Pull.Review methods:
Get pull request review protection that can be used as
Branch.Protection.Pull.Review.getProtectionorAll.getBranchPullRequestReviewProtection.Update pull request review protection that can be used as
Branch.Protection.Pull.Review.updateProtectionorAll.updateBranchPullRequestReviewProtection.
Added support for the following Branch.Protection.Commit.Signature methods:
Get commit signature protection that can be used as
Branch.Protection.Commit.Signature.getProtectionorAll.getBranchCommitSignatureProtection.Create commit signature protection that can be used as
Branch.Protection.Commit.Signature.createProtectionorAll.createBranchCommitSignatureProtection.Delete commit signature protection that can be used as
Branch.Protection.Commit.Signature.deleteProtectionorAll.deleteBranchCommitSignatureProtection.
Added support for the following Branch.Protection.Status.Check methods:
Get status checks protection that can be used as
Branch.Protection.Status.Check.getProtectionorAll.getBranchStatusCheckProtection.Update status checks protection that can be used as
Branch.Protection.Status.Check.updateProtectionorAll.updateBranchStatusCheckProtection.Remove status checks protection that can be used as
Branch.Protection.Status.Check.removeProtectionorAll.removeBranchStatusCheckProtection.Get all status check contexts that can be used as
Branch.Protection.Status.Check.getContextsorAll.getBranchStatusCheckContexts.Add status check contexts that can be used as
Branch.Protection.Status.Check.addContextsorAll.addBranchStatusCheckContexts.Set status check contexts that can be used as
Branch.Protection.Status.Check.setContextsorAll.setBranchStatusCheckContexts.
Added support for the following Project methods:
List organization projects that can be used as
Project.getOrganizationProjectsorAll.getOrganizationProjects.Create an organization project that can be used as
Project.createOrganizationProjectorAll.createOrganizationProject.Get a project that can be used as
Project.getProjectorAll.getProject.Update a project that can be used as
Project.updateProjectorAll.updateProject.Delete a project that can be used as
Project.deleteProjectorAll.deleteProject.List repository projects that can be used as
Project.getRepositoryProjectsorAll.getRepositoryProjects.Create a repository project that can be used as
Project.createRepositoryProjectorAll.createRepositoryProject.List user projects that can be used as
Project.getUserProjectsorAll.getUserProjects.Create a user project that can be used as
Project.createUserProjectorAll.createUserProject.
Added support for the following Search methods:
Search code that can be used as
Search.searchCodeorAll.searchCode.Search commits that can be used as
Search.searchCommitsorAll.searchCommits.Search issues and pull requests that can be used as
Search.searchIssuesAndPullRequestsorAll.searchIssuesAndPullRequests.Search labels that can be used as
Search.searchLabelsorAll.searchLabels.Search repositories that can be used as
Search.searchRepositoriesorAll.searchRepositories.Search topics that can be used as
Search.searchTopicsorAll.searchTopics.Search users that can be used as
Search.searchUsersorAll.searchUsers.
Copyright Adaptavist 2023 (c) All rights reserved