Skip to content

Bump devalue from 5.6.2 to 5.6.3 #544

Bump devalue from 5.6.2 to 5.6.3

Bump devalue from 5.6.2 to 5.6.3 #544

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
name: Enforce Documentation Checkbox
on:
push:
branches-ignore:
- "main"
- "dependabot/**" # dependabot branches
- "update/**" # scala-steward branches
pull_request:
types: [opened, edited, synchronize, reopened]
branches-ignore:
- "dependabot/**" # dependabot PRs
- "update/**" # scala-steward PRs
jobs:
enforce-checkbox:
# this if is to further ensure that this job won't run on dependabot or scala-steward PRs
if: ${{ !startsWith(github.head_ref, 'dependabot/') && !startsWith(github.head_ref, 'update/') }}
runs-on: ubuntu-22.04
steps:
- name: Check required confirmation checkbox
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v7
with:
script: |
const prBody = context.payload.pull_request.body || "";
const checkbox1Text = "- [x] I have determined that no documentation updates are needed for these changes";
const checkbox2Text = "- [x] I have added following documentation for these changes";
if (!prBody.includes(checkbox1Text) && !prBody.includes(checkbox2Text)) {
core.setFailed("❌ Required documentation checkbox not checked. Please check one of the the box before merging.");
} else {
core.info("✅ Required documentation checkbox is checked.");
}