Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating workflows and adding templates #12

Merged
merged 10 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug, new
---

<!-- Thanks for deciding to open an issue. Before submitting, please see the following information. -->

<!-- Before opening a new issue, please search our existing issues: https://github.com/zowe/zowe-cli-secrets-for-kubernetes/issues -->

**Describe the bug**

<!-- A clear and concise description of the bug or error. -->

**Expected and actual results**

<!--
Details about the behavior:
1. Expected behavior:
2. Actual behavior:
3. Applicable log files:

-->
**Describe your environment**

<!--
- Node.js and NPM versions installed (run `node --version`, `npm --version`):
- Environment variables in use:
- Operating system and version:
- Shell/terminal (bash, cmd, powershell, etc...):
- For more information, see Gathering information to troubleshoot Imperative
-->

**Additional context**

<!-- Add any other context about the problem here. -->
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question
url: https://github.com/zowe/zowe-cli-secrets-for-kubernetes/discussions/categories/q-a
about: Please ask and answer questions here.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea
labels: enhancement, new
---

<!-- Thanks for deciding to open an issue. Before submitting, please complete the following information. -->

**Is your feature or enhancement request related to a problem or limitation? Please describe**

<!-- A clear and concise description of the problem or limitation. Example: I'm frustrated when [...] happens, or I wish I was able to [...] -->

**Describe your enhancement idea**

<!-- A clear and concise description of what you want to happen, such as the task you are trying to complete. -->

**Describe alternatives you've considered**

<!-- A clear and concise description of any alternative solutions or workarounds you've used to overcome the problem or limitation. -->

**Provide any additional context**

<!-- Add any other context (code snippets, error messages, sample outputs, screenshots) about the request here. -->
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
**What It Does**
<!-- A list of relevant issues, enhancements, fixed bugs, etc -->

**How to Test**
<!-- If a bug has been fixed, how can reviewers verify that the change(s) fixed it? -->

**Review Checklist**
I certify that I have:
- [ ] tested my changes
- [ ] added/updated automated tests
- [ ] updated the changelog
- [ ] followed the [contribution guidelines](https://github.com/zowe/zowe-cli/blob/master/CONTRIBUTING.md)


**Additional Comments**
<!-- Anything else noteworthy about this pull request. This section is optional. -->
11 changes: 11 additions & 0 deletions .github/label-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bug:
comment: |
Thank you for creating a bug report.
We will investigate the bug and evaluate its impact on the product.
If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.
enhancement:
comment: |
Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 5 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js LTS
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: lts/*

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/auto-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Auto Responder for New Issues
# This workflow is triggered when a label is added to an issue.
on:
issues:
types: labeled

jobs:
processLabelAction:
name: Process Label Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Process Label Action
uses: hramos/respond-to-issue-based-on-label@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/changelog.yml
ATorrise marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check Changelog Updated
id: checkchangelogupdated
uses: awharn/check_changelog_action@v0.0.2
uses: awharn/check_changelog_action@v1
with:
header: '## Recent Changes'
file: 'CHANGELOG.md'
lerna: false
lerna: false
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js LTS
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: lts/*

Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 */6 * * *'

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
# General rules applied to both, issues and pull requests (PRs)
start-date: "2022-07-30T00:00:00Z"
days-before-close: 14
days-before-stale: 90
exempt-all-assignees: true
exempt-all-milestones: true

# Rules applied to Issues
exempt-issue-labels: "Epic, bug, priority-critical, priority-high, community-upvoted, for-review, security, keep"
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
close-issue-message: >
This issue has been automatically closed due to lack of activity. In an
effort to reduce noise, please do not comment any further.

# Rules applied to PRs
exempt-pr-labels: "community-upvoted, for-review, security, keep"
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
close-pr-message: >
This pull request has been automatically closed due to lack of activity. In an
effort to reduce noise, please do not comment any further.
24 changes: 9 additions & 15 deletions .github/workflows/zowe-cli-plugin.yml
ATorrise marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
ATorrise marked this conversation as resolved.
Show resolved Hide resolved
node-version: [16.x, 18.x]
os: [windows-latest, ubuntu-latest, macos-latest]

env:
Expand All @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand All @@ -40,16 +40,12 @@ jobs:
echo "::remove-matcher owner=eslint-compact::"
echo "::remove-matcher owner=eslint-stylish::"

- name: Update NPM
if: ${{ matrix.node-version == '14.x' }}
run: npm install -g npm@7

- name: Install Dependencies
run: npm ci

- name: Update Dependencies
id: npm-update
uses: zowe-actions/octorelease-script@master
uses: zowe-actions/octorelease/script@v1
with:
script: npmUpdate

Expand All @@ -64,9 +60,7 @@ jobs:
- name: Start K3s Cluster
id: k3s
if: ${{ always() && steps.build.outcome == 'success' && matrix.os == 'ubuntu-latest' }}
uses: debianmaster/actions-k3s@master
with:
version: latest
uses: nolar/setup-k3d-k3s@latest
ATorrise marked this conversation as resolved.
Show resolved Hide resolved

- name: Create System Test Properties
if: ${{ always() && steps.k3s.outcome == 'success' }}
Expand All @@ -84,7 +78,7 @@ jobs:

- name: Archive Results
if: ${{ always() && steps.build.outcome == 'success' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.node-version }}-results
path: __tests__/__results__/
Expand All @@ -102,22 +96,22 @@ jobs:

# steps:
# - name: Checkout
# uses: actions/checkout@v2
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# persist-credentials: false
# ref: ${{ github.ref }}

# - name: Use Node.js LTS
# uses: actions/setup-node@v2
# uses: actions/setup-node@v3
# with:
# node-version: 'lts/*'

# - name: Install Dependencies
# run: npm ci

# - name: Update Dependencies
# uses: zowe-actions/octorelease-script@master
# uses: zowe-actions/octorelease/script@v1
# env:
# GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
# GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
Expand All @@ -128,7 +122,7 @@ jobs:
# - name: Build Source
# run: npm run build

# - uses: zowe-actions/octorelease@master
# - uses: zowe-actions/octorelease@v1
# env:
# GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
# GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
Expand Down
Loading