github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/api/checks/summaries/pending.go (about) 1 // Copyright 2018 The WPT Dashboard Project. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package summaries 6 7 import "github.com/google/go-github/v47/github" 8 9 // Pending is the struct for pending.md. 10 type Pending struct { 11 CheckState 12 13 RunsURL string // URL for the list of test runs 14 } 15 16 // GetCheckState returns the info needed to update a check. 17 func (p Pending) GetCheckState() CheckState { 18 return p.CheckState 19 } 20 21 // GetSummary executes the template for the data. 22 func (p Pending) GetSummary() (string, error) { 23 return compile(&p, "pending.md") 24 } 25 26 // GetActions returns the actions that can be taken by the user. 27 func (p Pending) GetActions() []*github.CheckRunAction { 28 return []*github.CheckRunAction{ 29 CancelAction(), 30 } 31 }