GitXplorerGitXplorer
l

ghactions

public
15 stars
6 forks
0 issues

Commits

List of commits on branch main.
Verified
f641c5a1f39f7cecbc0ebfe84ef249102a9ce071

chore: update funding

lldez committed 12 days ago
Unverified
d5a194b6f1836a2b66e0ce179fbb82351adb5ec4

chore: update workflow

lldez committed 25 days ago
Unverified
e57031e6866c261be88cfd43f16c1398baec6106

feat: update github library"

lldez committed 25 days ago
Unverified
53f94a0718d4a924d94cb9c29b300055443533f8

chore: update workflows, and linter

lldez committed 25 days ago
Unverified
c98c0a63faf17eb06233a29ad3d0c2525fddf6e4

chore: update Go, dependencies, and linter

lldez committed 8 months ago
Verified
ed2f3aa0c451713569fca09148b984241415c0f8

chore(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#4)

ddependabot[bot] committed 10 months ago

README

The README file for this repository.

GHActions

GitHub tag (latest SemVer) Build Status PkgGoDev

Sponsor

Create a GitHub Action in 5 seconds!

Examples

package main

import (
	"context"
	"log"

	"github.com/google/go-github/v49/github"
	"github.com/ldez/ghactions"
	"github.com/ldez/ghactions/event"
)

func main() {
	ctx := context.Background()
	action := ghactions.NewAction(ctx)
	// action.SkipWhenNoHandler = true
	// action.SkipWhenTypeUnknown = true

	err := action.
		OnPullRequest(func(client *github.Client, requestEvent *github.PullRequestEvent) error {
			// TODO add your code.
			return nil
		}).
		OnIssues(func(client *github.Client, issuesEvent *github.IssuesEvent) error {
			// TODO add your code.
			return nil
		}).
		Run()

	if err != nil {
		log.Fatal(err)
	}
}

References