mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 11:25:33 +00:00
ci: allow skipping news workflow with a label
Setting the label `ci:skip-news` will skip the job. This is useful for maintainers to indicate to contributors that a feature isn't big enough to warrant a news entry, or for contributors who dislike red CI even if there's nothing wrong. Also change label `ci-s390x` to `ci:s390x`; this way it'll be easier to see that `ci:` are a subcategory of labels that affect CI in some way.
This commit is contained in:
4
.github/workflows/news.yml
vendored
4
.github/workflows/news.yml
vendored
@@ -1,13 +1,13 @@
|
|||||||
name: "news.txt"
|
name: "news.txt"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened, ready_for_review]
|
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci:skip-news')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/optional.yml
vendored
2
.github/workflows/optional.yml
vendored
@@ -17,7 +17,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
s390x:
|
s390x:
|
||||||
if: contains(github.event.pull_request.labels.*.name, 'ci-s390x') || github.event_name == 'workflow_dispatch'
|
if: contains(github.event.pull_request.labels.*.name, 'ci:s390x') || github.event_name == 'workflow_dispatch'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@@ -230,8 +230,9 @@ https://github.com/neovim/neovim-backup
|
|||||||
Some github labels are used to trigger certain jobs:
|
Some github labels are used to trigger certain jobs:
|
||||||
|
|
||||||
* `backport release-x.y` - backport to release branch
|
* `backport release-x.y` - backport to release branch
|
||||||
* `ci-s390x` - enable s390x CI
|
* `ci:s390x` - enable s390x CI
|
||||||
* `needs:response` - Close PR after a certain amount of time if author doesn't
|
* `ci:skip-news` - skip news.yml workflows
|
||||||
|
* `needs:response` - close PR after a certain amount of time if author doesn't
|
||||||
respond
|
respond
|
||||||
|
|
||||||
See also
|
See also
|
||||||
|
|||||||
Reference in New Issue
Block a user