mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
49ae5a8ecb
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
33 lines
863 B
YAML
33 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@v7
|
|
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'
|