{"id":15664459,"url":"https://github.com/ldez/ghactions","last_synced_at":"2025-04-30T15:50:35.864Z","repository":{"id":35000314,"uuid":"171375005","full_name":"ldez/ghactions","owner":"ldez","description":"Create a Github Action in 5 seconds!","archived":false,"fork":false,"pushed_at":"2025-04-11T21:35:28.000Z","size":93,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T22:34:22.536Z","etag":null,"topics":["github","github-actions","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ldez.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"ldez","ko_fi":"ldez_oss","liberapay":"ldez","thanks_dev":"u/gh/ldez"}},"created_at":"2019-02-19T00:07:31.000Z","updated_at":"2025-04-11T21:35:05.000Z","dependencies_parsed_at":"2025-01-06T20:26:58.804Z","dependency_job_id":"197ef2ad-9baa-47bf-b6d8-396552d2c276","html_url":"https://github.com/ldez/ghactions","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fghactions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fghactions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fghactions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldez%2Fghactions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ldez","download_url":"https://codeload.github.com/ldez/ghactions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251734545,"owners_count":21635155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","github-actions","go","golang"],"created_at":"2024-10-03T13:42:36.719Z","updated_at":"2025-04-30T15:50:35.808Z","avatar_url":"https://github.com/ldez.png","language":"Go","readme":"# GHActions\n\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/ldez/ghactions.svg?label=release)](https://github.com/ldez/ghactions/releases)\n[![Build Status](https://github.com/ldez/ghactions/workflows/Main/badge.svg?branch=master)](https://github.com/ldez/ghactions/actions)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/ldez/ghactions)](https://pkg.go.dev/github.com/ldez/ghactions)\n\n[![Sponsor](https://img.shields.io/badge/Sponsor%20me-%E2%9D%A4%EF%B8%8F-pink)](https://github.com/sponsors/ldez)\n\nCreate a GitHub Action in 5 seconds!\n\n- Environment variables: https://pkg.go.dev/github.com/ldez/ghactions#pkg-constants\n- Supported events: https://pkg.go.dev/github.com/ldez/ghactions/event#pkg-constants\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/google/go-github/v49/github\"\n\t\"github.com/ldez/ghactions\"\n\t\"github.com/ldez/ghactions/event\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\taction := ghactions.NewAction(ctx)\n\t// action.SkipWhenNoHandler = true\n\t// action.SkipWhenTypeUnknown = true\n\n\terr := action.\n\t\tOnPullRequest(func(client *github.Client, requestEvent *github.PullRequestEvent) error {\n\t\t\t// TODO add your code.\n\t\t\treturn nil\n\t\t}).\n\t\tOnIssues(func(client *github.Client, issuesEvent *github.IssuesEvent) error {\n\t\t\t// TODO add your code.\n\t\t\treturn nil\n\t\t}).\n\t\tRun()\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n\n## References\n\n- https://help.github.com/en/actions\n- https://github.com/marketplace/actions\n- https://github-actions.explore-tech.org\n- https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables\n- https://help.github.com/en/actions/reference/events-that-trigger-workflows\n","funding_links":["https://github.com/sponsors/ldez","https://ko-fi.com/ldez_oss","https://liberapay.com/ldez","https://thanks.dev/u/gh/ldez"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldez%2Fghactions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fldez%2Fghactions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldez%2Fghactions/lists"}