From 404f9c39d5c81c07dfda7cafe39f4f8a00bd3a01 Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:06:07 -0800 Subject: [PATCH] senzing-factory/build-resources#69 add linting --- .github/linters/.yaml-lint.yml | 2 -- .github/workflows/add-labels-standardized.yaml | 2 +- .github/workflows/add-to-project-factory-dependabot.yaml | 7 +++---- .github/workflows/add-to-project-factory.yaml | 9 +++++---- .github/workflows/dependabot-approve-and-merge.yaml | 6 ++++-- .github/workflows/lint-repo.yaml | 4 ++-- README.md | 5 ----- linters/.yamllint | 9 --------- 8 files changed, 15 insertions(+), 29 deletions(-) delete mode 100644 linters/.yamllint diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml index fbbff64..32ff17d 100644 --- a/.github/linters/.yaml-lint.yml +++ b/.github/linters/.yaml-lint.yml @@ -1,5 +1,3 @@ ---- - # Extends the default yamllint config by adjusting some options. extends: default diff --git a/.github/workflows/add-labels-standardized.yaml b/.github/workflows/add-labels-standardized.yaml index c20a712..1360a67 100644 --- a/.github/workflows/add-labels-standardized.yaml +++ b/.github/workflows/add-labels-standardized.yaml @@ -1,4 +1,4 @@ -name: 'add labels standardized' +name: add labels standardized on: issues: diff --git a/.github/workflows/add-to-project-factory-dependabot.yaml b/.github/workflows/add-to-project-factory-dependabot.yaml index d69ab7d..56f1cf4 100644 --- a/.github/workflows/add-to-project-factory-dependabot.yaml +++ b/.github/workflows/add-to-project-factory-dependabot.yaml @@ -1,14 +1,13 @@ -name: 'add to project factory dependabot' +name: add to project factory dependabot on: pull_request: branches: [main] jobs: - - add-issue-labels: + add-to-project-dependabot: secrets: SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} - uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@main + uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v1 with: project: ${{ vars.SENZING_PROJECT_FACTORY }} diff --git a/.github/workflows/add-to-project-factory.yaml b/.github/workflows/add-to-project-factory.yaml index b2dd32d..e6bf67b 100644 --- a/.github/workflows/add-to-project-factory.yaml +++ b/.github/workflows/add-to-project-factory.yaml @@ -1,4 +1,4 @@ -name: 'add to project factory' +name: add to project factory on: issues: @@ -8,11 +8,12 @@ on: jobs: add-to-project: - name: Add issue to project + name: add issue to project runs-on: ubuntu-latest + steps: - - name: Assign issue to project + - name: assign issue to project uses: actions/add-to-project@v0.5.0 with: - project-url: https://github.com/orgs/${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ vars.SENZING_PROJECT_FACTORY }} github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} + project-url: https://github.com/orgs/${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ vars.SENZING_PROJECT_FACTORY }} diff --git a/.github/workflows/dependabot-approve-and-merge.yaml b/.github/workflows/dependabot-approve-and-merge.yaml index 0c15821..15a5bf9 100644 --- a/.github/workflows/dependabot-approve-and-merge.yaml +++ b/.github/workflows/dependabot-approve-and-merge.yaml @@ -1,12 +1,14 @@ -name: dependabot-approve-and-merge.yaml +name: dependabot approve and merge + on: pull_request: branches: [main] + jobs: dependabot-approve-and-merge: permissions: contents: write pull-requests: write - uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@main secrets: SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v1 diff --git a/.github/workflows/lint-repo.yaml b/.github/workflows/lint-repo.yaml index c80ad2f..fbfb108 100644 --- a/.github/workflows/lint-repo.yaml +++ b/.github/workflows/lint-repo.yaml @@ -1,4 +1,4 @@ -name: 'lint repo' +name: lint repo on: push: @@ -8,4 +8,4 @@ on: jobs: lint-code-base: - uses: senzing-factory/build-resources/.github/workflows/linter.yaml@main + uses: senzing-factory/build-resources/.github/workflows/linter.yaml@v1 diff --git a/README.md b/README.md index f304ead..5a86cfe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1 @@ # .github - -![linter](https://github.com/senzing-factory/.github/actions/workflows/linter/badge.svg) -![dependabot automation](https://github.com/senzing-factory/.github/actions/workflows/dependabot-automation/badge.svg) -![issue automation](https://github.com/senzing-factory/.github/actions/workflows/issue-automation/badge.svg) -![pr closed automation](https://github.com/senzing-factory/.github/actions/workflows/pr-closed-automation/badge.svg) diff --git a/linters/.yamllint b/linters/.yamllint deleted file mode 100644 index 32ff17d..0000000 --- a/linters/.yamllint +++ /dev/null @@ -1,9 +0,0 @@ -# Extends the default yamllint config by adjusting some options. -extends: default - -rules: - comments-indentation: disable - line-length: - level: warning - allow-non-breakable-inline-mappings: true - truthy: disable