mirror of
https://github.com/ahmetb/kubectx.git
synced 2026-03-18 03:42:12 +00:00
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v7...v8) --- updated-dependencies: - dependency-name: actions/github-script dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: Bash scripts frozen
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'kubectx'
|
|
- 'kubens'
|
|
|
|
jobs:
|
|
comment:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
steps:
|
|
- name: Comment on PR if author is not ahmetb
|
|
if: github.event.pull_request.user.login != 'ahmetb'
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
const body = [
|
|
'> [!WARNING]',
|
|
'> **This PR will not be merged.**',
|
|
'>',
|
|
'> The bash implementation of `kubectx` and `kubens` is **frozen** and is provided only for convenience.',
|
|
'> We are not accepting any improvements to the bash scripts.',
|
|
'>',
|
|
'> Please propose your improvements to the **Go implementation** instead.',
|
|
].join('\n');
|
|
|
|
await github.rest.issues.createComment({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
body: body
|
|
});
|