mirror-chatterino2/.github/workflows/changelog-category-check.yml
dependabot[bot] 86c2a070cc
Bump pajlads/changelog-checker from 1.0.0 to 1.0.1 (#4866)
Bumps [pajlads/changelog-checker](https://github.com/pajlads/changelog-checker) from 1.0.0 to 1.0.1.
- [Changelog](https://github.com/pajlads/changelog-checker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pajlads/changelog-checker/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: pajlads/changelog-checker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 13:00:22 +00:00

34 lines
863 B
YAML

---
name: Changelog Category Check
on:
pull_request:
types:
- labeled
- unlabeled
- opened
- synchronize
- reopened
jobs:
changelog-category-check:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
id: label-checker
with:
result-encoding: "string"
script: |
const response = await github.rest.issues.listLabelsOnIssue({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo
});
if (new Set(response.data.map(label => label.name)).has("skip-changelog-checker")) {
return "skip";
}
return "";
- uses: pajlads/changelog-checker@v1.0.1
if: steps.label-checker.outputs.result != 'skip'