diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..c653277 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,36 @@ +--- +name: Bug report +about: Create a report to help us improve +labels: bug, new +--- + + + + + +**Describe the bug** + + + +**Expected and actual results** + + +**Describe your environment** + + + +**Additional context** + + \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..eb02796 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -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. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..3a2a8a7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,23 @@ +--- +name: Feature request +about: Suggest an idea +labels: enhancement, new +--- + + + +**Is your feature or enhancement request related to a problem or limitation? Please describe** + + + +**Describe your enhancement idea** + + + +**Describe alternatives you've considered** + + + +**Provide any additional context** + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..849511b --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,16 @@ +**What It Does** + + +**How to Test** + + +**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** + \ No newline at end of file diff --git a/.github/label-actions.yml b/.github/label-actions.yml new file mode 100644 index 0000000..443c741 --- /dev/null +++ b/.github/label-actions.yml @@ -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. \ No newline at end of file diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 5663f25..8a206a7 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -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/* diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml new file mode 100644 index 0000000..2a7a81f --- /dev/null +++ b/.github/workflows/auto-comment.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index cc3f7d1..d546401 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -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 \ No newline at end of file + lerna: false diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 085fc15..296401d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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 diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 67abfd2..481ff51 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -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/* diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..4d7ac81 --- /dev/null +++ b/.github/workflows/stale.yml @@ -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. \ No newline at end of file diff --git a/.github/workflows/zowe-cli-plugin.yml b/.github/workflows/zowe-cli-plugin.yml index 0d8777b..6f2fac1 100644 --- a/.github/workflows/zowe-cli-plugin.yml +++ b/.github/workflows/zowe-cli-plugin.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [16.x, 18.x] os: [windows-latest, ubuntu-latest, macos-latest] env: @@ -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 @@ -39,7 +39,6 @@ jobs: run: | echo "::remove-matcher owner=eslint-compact::" echo "::remove-matcher owner=eslint-stylish::" - - name: Update NPM run: npm install -g npm@8 @@ -48,7 +47,7 @@ jobs: - name: Update Dependencies id: npm-update - uses: zowe-actions/octorelease-script@master + uses: zowe-actions/octorelease/script@v1 with: script: npmUpdate @@ -63,9 +62,11 @@ 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@v1 + + - name: Set K8s Namespace + if: ${{ always() && steps.k3s.outcome == 'success' }} + run: kubectl config set-context --current --namespace=default - name: Create System Test Properties if: ${{ always() && steps.k3s.outcome == 'success' }} @@ -76,14 +77,13 @@ jobs: host: localhost port: 12345 " > packages/cli/__tests__/__resources__/properties/custom_properties.yaml - - name: System Tests if: ${{ always() && steps.k3s.outcome == 'success' }} run: npm run test:system - 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__/ @@ -101,14 +101,14 @@ 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/checkout@v3 # with: # node-version: 'lts/*' @@ -116,7 +116,7 @@ jobs: # 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 }} @@ -127,7 +127,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 }} @@ -135,4 +135,4 @@ jobs: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # NPM_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} # NPM_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} - # NPM_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }} + # NPM_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }} \ No newline at end of file