* Adding support for custom titles. * Cleaning up blank lines in main.go * Renaming approvalIssueTitle to IssueTitle in all relavent places. * Fixing period in README Co-authored-by: Thomas Stringer <thomas@trstringer.com> * Remove period in action doc. Co-authored-by: Thomas Stringer <thomas@trstringer.com> Co-authored-by: Thomas Stringer <thomas@trstringer.com>
20 lines
585 B
Go
20 lines
585 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
const (
|
|
pollingInterval time.Duration = 10 * time.Second
|
|
|
|
envVarRepoFullName string = "GITHUB_REPOSITORY"
|
|
envVarRunID string = "GITHUB_RUN_ID"
|
|
envVarRepoOwner string = "GITHUB_REPOSITORY_OWNER"
|
|
envVarToken string = "INPUT_SECRET"
|
|
envVarApprovers string = "INPUT_APPROVERS"
|
|
envVarMinimumApprovals string = "INPUT_MINIMUM-APPROVALS"
|
|
envVarIssueTitle string = "INPUT_ISSUE-TITLE"
|
|
)
|
|
|
|
var (
|
|
approvedWords = []string{"approved", "approve", "lgtm", "yes"}
|
|
deniedWords = []string{"denied", "deny", "no"}
|
|
)
|