Discover Packages
github.com/mtharrison/github-pr-comment-resource
internal
resource
package
Version:
v1.0.9
Opens a new window with list of versions in this module.
Published: Jul 10, 2020
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Comment struct {
Body string `json:"body"`
}
Comment is the actual resource
GithubComment retrieves a specific comment
Metadata returns the comment metadata
type Input struct {
Source *Source `json:"source"`
Version *Version `json:"version"`
}
Input is provided to this resource via STDIN
GetInput takes a reader and constructs an Input
Validate checks if the input is sound
type Metadata struct {
Name string `json:"name"`
Value string `json:"value"`
}
Metadata is a key-value type
type Output struct {
Version Version `json:"version"`
Metadata []Metadata `json:"metadata"`
}
Output is written by in script
type Source struct {
RepositoryString string `json:"repository"`
AccessToken string `json:"access_token"`
V3Endpoint string `json:"v3_endpoint"`
Regex string `json:"regex"`
}
Source is the configurable settings a user provides to this resource
Owner returns the repo owner
Repo returns the repo name
type Version struct {
PrNumber string `json:"pr"`
}
Version represents a single version of the resource
GithubVersions retrieves all matching versions for the given input
Source Files
¶
Click to show internal directories.
Click to hide internal directories.