generated from actions/container-action
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mage][1] is a Go build tool which we were using to invoke our label checking Go function and to build our Go binary. We don't need Mage though, as we can simply use the standard Go `main` function and build the binary using the standard `go build` command. It's always good to remove unneeded dependencies, and also Mage was responsible for setting the beginning of the error output (`Error:`) that is displayed on the console. By removing Mage we now have control of this. This paves the way for making the error output a [GitHub Actions workflow command][2] in a future PR, which will mean the error message is highlighted (which will fix #330). [1]: https://magefile.org/ [2]: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message
- Loading branch information
Showing
11 changed files
with
45 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
//go:build mage | ||
// +build mage | ||
|
||
//nolint:unused,deadcode,gochecknoglobals | ||
package main | ||
|
||
import "github.com/agilepathway/label-checker/internal/github" | ||
import ( | ||
"os" | ||
|
||
var Default = PullRequestLabelChecker | ||
"github.com/agilepathway/label-checker/internal/github" | ||
) | ||
|
||
// PullRequestLabelChecker checks pull requests for the presence or absence of specified GitHub labels | ||
func PullRequestLabelChecker() error { | ||
func main() { | ||
a := github.Action{} | ||
return a.CheckLabels() | ||
exitCode := a.CheckLabels(os.Stdout, os.Stderr) | ||
os.Exit(exitCode) | ||
} |
This file was deleted.
Oops, something went wrong.