diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 8118693..7bbf72b 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -39,6 +39,7 @@ exclude-labels: - 'S: invalid' - 'S: merged' - 'S: wontfix' +include-pre-releases: false template: | ## What Changed diff --git a/.github/workflows/do-prioritize-issues.yml b/.github/workflows/do-prioritize-issues.yml new file mode 100644 index 0000000..6496ef9 --- /dev/null +++ b/.github/workflows/do-prioritize-issues.yml @@ -0,0 +1,42 @@ +# This workflow runs daily at noon. +# +# - Get list of labels. +# - Determine issue priority based on labels: +# - C: convention && P: bug --> U: high +# - C: style && P: bug --> U: medium +# - C: stakeholder && P:bug --> U: medium +# - C: convention && P: enhancement --> U: medium +# - C: style && P: enhancement --> U: low +# - C: stakeholder && P: enhancement --> U: low +# - chore || P: docs --> U: low +name: Prioritize Issues Workflow + +on: + schedule: + cron: '00 12 * * *' + +jobs: + prioritize_issues: + runs-on: ubuntu-latest + steps: + - name: Get Issue Labels + id: getlabels + uses: snnaplab/get-labels-action@v1 + + - name: Add High Urgency Labels + if: (endsWith(steps.getlabels.outputs.labels, ' convention ') && endsWith(steps.getlabels.outputs.labels, ' bug ')) + uses: andymckay/labeler@master + with: + add-labels: "U: high" + + - name: Add Medium Urgency Labels + if: (endsWith(steps.getlabels.outputs.labels, ' style ') && endsWith(steps.getlabels.outputs.labels, ' bug ')) || (endsWith(steps.getlabels.outputs.labels, ' stakeholder ') && endsWith(steps.getlabels.outputs.labels, ' bug ')) || (endsWith(steps.getlabels.outputs.labels, ' convenction ') && endsWith(steps.getlabels.outputs.labels, ' enhancement ')) + uses: andymckay/labeler@master + with: + add-labels: "U: medium" + + - name: Add Low Urgency Labels + if: (endsWith(steps.getlabels.outputs.labels, ' style ') && endsWith(steps.getlabels.outputs.labels, ' enhancement ')) || (endsWith(steps.getlabels.outputs.labels, ' stakeholder ') && endsWith(steps.getlabels.outputs.labels, ' enhancement ')) || endsWith(steps.getlabels.outputs.labels, ' doc ') || contains(steps.getlabels.outputs.labels, ' chore ') + uses: andymckay/labeler@master + with: + add-labels: "U: low" \ No newline at end of file diff --git a/.github/workflows/do-release.yml b/.github/workflows/do-release.yml index 98aa8fa..57fc668 100644 --- a/.github/workflows/do-release.yml +++ b/.github/workflows/do-release.yml @@ -10,7 +10,7 @@ # - Upload the wheel to the new GitHub release. # - Upload wheel to Test PyPi if build succeeds. (Future) # - Test install from Test PyPi. (Future) -# - Upload wheel to PyPi if test install succeeds. (Future) +# - Upload wheel to PyPi if install test succeeds. (Future) name: Do Release Workflow on: @@ -47,10 +47,10 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} sinceTag: "v1.3.1" - excludeTags: "latest" + excludeTagsRegex: "-rc[0-9]" breakingLabel: "Breaking Changes" breakingLabels: "V: major" - enhancementLabel: "New Features" + enhancementLabel: "Features" enhancementLabels: "P: enhancement" bugsLabel: "Bug Fixes" bugLabels: "P: bug" @@ -96,9 +96,9 @@ jobs: if: ${{ env.build_ok == 1 }} uses: release-drafter/release-drafter@v5 with: - name: "${{ steps.newversion.outputs.new_tag }}" - tag: "${{ steps.newversion.outputs.new_tag }}" - version: "${{ steps.newversion.outputs.new_tag }}" + name: "${{ steps.relversion.outputs.new_tag }}" + tag: "${{ steps.relversion.outputs.new_tag }}" + version: "${{ steps.relversion.outputs.new_tag }}" prerelease: false publish: true env: @@ -118,6 +118,7 @@ jobs: uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ steps.cutrelease.outputs.upload_url }} + asset_path: ./dist/*.whl # - name: Publish to Test PyPi # if: ${{ env.build_ok == 1 }} diff --git a/.github/workflows/on-issue-open.yml b/.github/workflows/on-issue-open.yml index 568dcaa..6008b2c 100644 --- a/.github/workflows/on-issue-open.yml +++ b/.github/workflows/on-issue-open.yml @@ -1,3 +1,6 @@ +# This workflow runs when a new issue is opened. +# +# - Apply the 'fresh' label. name: Issue Open Workflow on: diff --git a/.github/workflows/on-push-tag.yml b/.github/workflows/on-push-tag.yml index 4a7969d..836daa8 100644 --- a/.github/workflows/on-push-tag.yml +++ b/.github/workflows/on-push-tag.yml @@ -28,7 +28,7 @@ jobs: id: newversion run: | tag=${GITHUB_REF/refs\/tags\//} - version=$(echo $new_tag | sed 's/.rc[0-9]*//') + version=$(echo $tag | sed 's/-rc[0-9]*//') if [[ $tag != *"-rc"* ]]; then echo "do_milestones=1" >> $GITHUB_ENV echo "tag=$(echo $tag)" >> $GITHUB_OUTPUT @@ -49,7 +49,7 @@ jobs: if: ${{ env.do_milestones == 1 }} uses: WyriHaximus/github-action-close-milestone@master with: - number: ${{ steps.relversion.outputs.version }} + number: ${{ steps.newversion.outputs.version }} - name: Create new minor release milestone if: ${{ env.do_milestones == 1 }}