From a5d11be55696dece69753da2555b7757acb968ca Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Fri, 23 Feb 2024 05:23:10 -0800 Subject: [PATCH] senzing-factory/build-resources#69 add linting (#53) * senzing-factory/build-resources#69 add linting * senzing-factory/build-resources#69 add linting * senzing-factory/build-resources#69 add linting --- .github/dependabot.yml | 3 --- .github/linters/.markdown-lint.yml | 3 +++ .github/workflows/add-labels-standardized.yaml | 2 +- .../add-to-project-factory-dependabot.yaml | 7 +++---- .github/workflows/add-to-project-factory.yaml | 9 +++++---- .github/workflows/lint-repo.yaml | 11 +++++++++++ .github/workflows/make-go-tag.yaml | 9 +++++---- .github/workflows/make-latest-tag.yaml | 14 ++++++++------ .github/workflows/move-pr-to-done-dependabot.yaml | 14 ++++++++++++++ CODE_OF_CONDUCT.md | 2 +- 10 files changed, 51 insertions(+), 23 deletions(-) create mode 100644 .github/linters/.markdown-lint.yml create mode 100644 .github/workflows/lint-repo.yaml create mode 100644 .github/workflows/move-pr-to-done-dependabot.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a975232..1230149 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,3 @@ -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - version: 2 updates: - package-ecosystem: "github-actions" diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml new file mode 100644 index 0000000..aec8fd5 --- /dev/null +++ b/.github/linters/.markdown-lint.yml @@ -0,0 +1,3 @@ +{ + "line-length": false +} 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/lint-repo.yaml b/.github/workflows/lint-repo.yaml new file mode 100644 index 0000000..fbfb108 --- /dev/null +++ b/.github/workflows/lint-repo.yaml @@ -0,0 +1,11 @@ +name: lint repo + +on: + push: + branches-ignore: [main] + pull_request: + branches: [main] + +jobs: + lint-code-base: + uses: senzing-factory/build-resources/.github/workflows/linter.yaml@v1 diff --git a/.github/workflows/make-go-tag.yaml b/.github/workflows/make-go-tag.yaml index f8603a4..5a25899 100644 --- a/.github/workflows/make-go-tag.yaml +++ b/.github/workflows/make-go-tag.yaml @@ -1,4 +1,4 @@ -name: 'make go tag' +name: make go tag on: push: @@ -10,11 +10,12 @@ permissions: jobs: make-go-tag: - name: Make a vM.m.P tag + name: make a vM.m.P tag runs-on: ubuntu-latest + steps: - - name: Checkout repository + - name: checkout repository uses: actions/checkout@v4 - - name: Make go version tag + - name: make go version tag uses: senzing-factory/github-action-make-go-tag@v1 diff --git a/.github/workflows/make-latest-tag.yaml b/.github/workflows/make-latest-tag.yaml index 4af68ee..5b73904 100644 --- a/.github/workflows/make-latest-tag.yaml +++ b/.github/workflows/make-latest-tag.yaml @@ -1,4 +1,4 @@ -name: make-latest-tag.yaml +name: make latest tag on: push: @@ -10,12 +10,14 @@ permissions: jobs: make-go-tag: - name: Make a vM.m.P tag + name: make a vM.m.P tag runs-on: ubuntu-latest + steps: - - name: Checkout repository + - name: checkout repository uses: actions/checkout@v4 with: - fetch-depth: "0" - - name: Run latest-tag - uses: EndBug/latest-tag@latest + fetch-depth: 0 + + - name: run latest-tag + uses: EndBug/latest-tag@v1 diff --git a/.github/workflows/move-pr-to-done-dependabot.yaml b/.github/workflows/move-pr-to-done-dependabot.yaml new file mode 100644 index 0000000..3e98652 --- /dev/null +++ b/.github/workflows/move-pr-to-done-dependabot.yaml @@ -0,0 +1,14 @@ +name: move pr to done dependabot + +on: + pull_request: + branches: [main] + types: [closed] + +jobs: + move-pr-to-done-dependabot: + secrets: + SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done-dependabot.yaml@v1 + with: + project: ${{ vars.SENZING_PROJECT_FACTORY }} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index f6f9f91..0dc166a 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -30,7 +30,7 @@ Project maintainers have the right and responsibility to remove, edit, or reject ## Scope -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. ## Enforcement