diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 9672f6d..1ad4e18 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,9 +1,37 @@ -# References - + + + # Description - + + + + + +# Checklist + + + +* [ ] The PR satisfies the [contribution guidelines][yscope-contrib-guidelines]. +* [ ] This is a breaking change and that has been indicated in the PR title, OR this isn't a + breaking change. +* [ ] Necessary docs have been updated, OR no docs need to be updated. # Validation performed - + + + + +[yscope-contrib-guidelines]: https://docs.yscope.com/dev-guide/contrib-guides-overview.html diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index 8c75de5..e28cf53 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -12,9 +12,9 @@ jobs: matrix: python-version: ["3.8", "3.11"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -32,7 +32,7 @@ jobs: - run: python -m build - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: wheel-${{ matrix.python-version }} path: dist/* @@ -42,18 +42,18 @@ jobs: needs: [build] strategy: matrix: - os: [macos-13, ubuntu-latest] + os: [macos-13, ubuntu-22.04] python-version: ["3.7"] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Download wheels for Python3.7 - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: # Since we don't build for Python 3.7, we download the Python 3.8 wheel instead. name: wheel-3.8 @@ -74,14 +74,14 @@ jobs: python-version: ["3.8", "3.11"] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Download wheels for Built Python Versions - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: wheel-${{ matrix.python-version }} path: dist/ diff --git a/.github/workflows/pr-title-checks.yaml b/.github/workflows/pr-title-checks.yaml new file mode 100644 index 0000000..0aed19c --- /dev/null +++ b/.github/workflows/pr-title-checks.yaml @@ -0,0 +1,30 @@ +name: "pr-title-checks" + +on: + pull_request_target: + # NOTE: Workflows triggered by this event give the workflow access to secrets and grant the + # `GITHUB_TOKEN` read/write repository access by default. So we need to ensure: + # - This workflow doesn't inadvertently check out, build, or execute untrusted code from the + # pull request triggered by this event. + # - Each job has `permissions` set to only those necessary. + types: ["edited", "opened", "reopened"] + branches: ["main"] + +permissions: {} + +concurrency: + group: "${{github.workflow}}-${{github.ref}}" + + # Cancel in-progress jobs for efficiency + cancel-in-progress: true + +jobs: + conventional-commits: + permissions: + # For amannn/action-semantic-pull-request + pull-requests: "read" + runs-on: "ubuntu-latest" + steps: + - uses: "amannn/action-semantic-pull-request@v5" + env: + GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 678a867..02cf4cf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,13 +17,13 @@ jobs: permissions: id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.8" - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: wheel-3.8 path: dist/ diff --git a/pyproject.toml b/pyproject.toml index 85fa2cb..97f7e1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "clp_logging" -version = "0.0.12" +version = "0.0.13" license = { text = "Apache License 2.0" } authors = [ { name="david lion", email="david.lion@yscope.com" },