# README
pullrequest-init
pullrequest-init fetches pull request data from the given URL and places it in the provided path.
This binary outputs a generic pull request object into a set of generic files, as well as provider specific payloads.
Currently supported providers:
- GitHub
Generic pull request payload
For information about the payloads written to disk, see the resource documentation.
Status code conversion
Tekton Status Code | GitHub Status State |
---|---|
success | success |
neutral | success |
queued | pending |
in_progress | pending |
failure | failure |
unknown | error |
error | error |
timeout | error |
canceled | error |
action_required | error |
# Functions
FromDisk outputs a PullRequest object from an on-disk representation at the specified path.
NewFakeGitHub returns a new FakeGitHub.
NewGitHubHandler initializes a new handler for interacting with GitHub resources.
ToDisk converts a PullRequest object to an on-disk representation at the specified path.
# Constants
TODO: Figure out how to do case insensitive statuses.
TODO: Figure out how to do case insensitive statuses.
TODO: Figure out how to do case insensitive statuses.
ErrorKeyword is a magic const used to denote PRs/Comments that should return errors to the client to simulate issues communicating with GitHub.
TODO: Figure out how to do case insensitive statuses.
TODO: Figure out how to do case insensitive statuses.
TODO: Figure out how to do case insensitive statuses.
TODO: Figure out how to do case insensitive statuses.
TODO: Figure out how to do case insensitive statuses.
TODO: Figure out how to do case insensitive statuses.
TODO: Figure out how to do case insensitive statuses.
# Structs
Comment represents a pull request comment.
FakeGitHub is a fake GitHub server for use in tests.
GitHubHandler handles interactions with the GitHub API.
GitReference represents a git ref object.
Label represents a Pull Request Label.
PullRequest represents a generic pull request resource.
No description provided by the author
# Type aliases
Manifest is a list of sub-resources that exist within the PR resource to determine whether an item existed when the resource was initialized.
No description provided by the author