{"id":14971811,"url":"https://github.com/grafana/grafana-github-actions","last_synced_at":"2025-10-19T10:31:34.871Z","repository":{"id":37825346,"uuid":"301934163","full_name":"grafana/grafana-github-actions","owner":"grafana","description":"Github automation ","archived":false,"fork":false,"pushed_at":"2024-05-21T15:26:37.000Z","size":1845,"stargazers_count":19,"open_issues_count":19,"forks_count":9,"subscribers_count":124,"default_branch":"main","last_synced_at":"2024-05-22T13:57:02.679Z","etag":null,"topics":["backstage-include"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/grafana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-07T05:17:15.000Z","updated_at":"2024-06-03T13:56:21.020Z","dependencies_parsed_at":"2024-01-09T23:25:08.219Z","dependency_job_id":"400ed49d-4b5e-40ef-a607-3bceee4b49bf","html_url":"https://github.com/grafana/grafana-github-actions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fgrafana-github-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fgrafana-github-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fgrafana-github-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fgrafana-github-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grafana","download_url":"https://codeload.github.com/grafana/grafana-github-actions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869249,"owners_count":16555572,"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":["backstage-include"],"created_at":"2024-09-24T13:45:52.147Z","updated_at":"2025-10-19T10:31:34.262Z","avatar_url":"https://github.com/grafana.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Github action commands for automating issue management.\n\nBased on work from: https://github.com/microsoft/vscode-github-triage-actions\n\n\n## Commands\n\nType: `label`\n\n- `action`: defines what action to perform (`close` or `addToProject`)\n- `name`: defines which label to match on\n- `addToProject`: an object that is required when the `action` is `addToProject`, but is otherwise optional.\n- `addToProject.url`: Absolute url of the project where the project `id` will be parsed.\n- `addToProject.column`: Column name to add the issues to. Required for old types of projects\n- `removeFromProject`: an object that is required when the `action` is `removeFromProject`, but is otherwise optional.\n- `removeFromProject.url`: Absolute url of the project where the project `id` will be parsed.\n\nNote: When removed, the issue will irreversibly lose the project-specific metadata assigned to it. removeFromProject does not currently work for old project types.\n\n**Syntax**:\n```json\n{\n  \"type\": \"label\",\n  \"name\": \"plugins\",\n  \"action\": \"addToProject\",\n  \"addToProject\": {\n    \"url\": \"https://github.com/orgs/grafana/projects/76\",\n    \"column\": \"To Do\"\n  }\n}\n```\n\n## PR Checks\n\nMark commits with an error, failure, pending, or success state, which is then reflected in pull requests involving those commits.\n\n**Syntax**:\n```json\n[\n  {\n    \"type\": \"\u003ccheck\u003e\"\n    // check specific properties\n  }\n]\n```\n\n### Milestone Check\n\nThis will check if a milestone is set on a pull request or not. All properties below except `type` are optional.\n\n**Syntax**:\n```json\n{\n  \"type\": \"check-milestone\",\n  \"title\": \"Milestone Check\",\n  \"targetUrl\": \"https://something\",\n  \"success\": \"Milestone set\",\n  \"failure\": \"Milestone not set\"\n}\n```\n\n### Label Check\n\nThis will check if `labels.matches` matches any labels on a pull request.\n- If it matches, it will create a success status with a `labels.exists` message.\n- If it does not match it will create a failure status with a `labels.notExists` message.\n\nIf `skip.matches` is specified, it will check if any of the labels exist on a pull request and if so, it will create a success status with a `skip.message` message. This will happen before returning a failure status according to the documentation above.\n\nAll properties below except `type` and `labels.matches` are optional. The `labels.matches` and `skip.matches` support providing a `*` (star) at the end to denote only matching the beginning of a label.\n\n```json\n{\n  \"type\": \"check-label\",\n  \"title\": \"New Label Backport Check\",\n  \"labels\": {\n    \"exists\": \"Backport enabled\",\n    \"notExists\": \"Backport decision needed\",\n    \"matches\": [\n      \"backport v*\"\n    ]\n  },\n  \"skip\": {\n    \"message\": \"Backport skipped\",\n    \"matches\": [\n      \"backport\",\n      \"no-backport\"\n    ]\n  },\n  \"targetUrl\": \"https://github.com/grafana/grafana/blob/main/contribute/merge-pull-request.md#should-the-pull-request-be-backported\"\n}\n```\n\n### Changelog Check\n\nThis check will enforce that an active decision of including a change in changelog/release notes needs to be taken for every pull request.\n\nThis check uses the [Label Check](#label-check) and its detailed description is applicable to this check config as well.\n\nIf the result of the Label Check is a \"success\" status with `labels.exists` message, the check will continue to validate the PR title:\n- If the PR title formatting is not valid, e.g. `\u003cArea\u003e: \u003cSummary\u003e`, it will create a failure status explaining that PR title formatting is invalid.\n\nIf the PR title is valid it will continue to validate the PR body. If you use `breakingChangeLabels` it will check if any of the labels exist on a pull request and if so, it will verify that a breaking change notice section has been added to the PR body:\n- If there is no breaking change notice section, it will create a failure status explaining why.\n\n```json\n{\n  \"type\": \"check-changelog\",\n  \"title\": \"Changelog Check\",\n  \"labels\": {\n    \"exists\": \"Changelog enabled\",\n    \"notExists\": \"Changelog decision needed\",\n    \"matches\": [\n      \"add to changelog\"\n    ]\n  },\n  \"breakingChangeLabels\": [\n    \"breaking-change\"\n  ],\n  \"skip\": {\n    \"message\": \"Changelog skipped\",\n    \"matches\": [\n      \"no-changelog\"\n    ]\n  },\n  \"targetUrl\": \"https://github.com/grafana/grafana/blob/main/contribute/merge-pull-request.md#include-in-changelog-and-release-notes\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafana%2Fgrafana-github-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrafana%2Fgrafana-github-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafana%2Fgrafana-github-actions/lists"}