diff --git a/.github/workflows/label_prs.yml b/.github/workflows/label_prs.yml index d0285052..7de111ba 100644 --- a/.github/workflows/label_prs.yml +++ b/.github/workflows/label_prs.yml @@ -5,18 +5,11 @@ on: jobs: assignUnreleased: - name: Unreleased + name: Add Unreleased Label runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Apply unreleased label - uses: actions/github-script@v6 + - uses: buildsville/add-remove-label@v2.0.0 with: - github-token: ${{secrets.MACHINE_GITHUB_API_TOKEN}} - script: | - github.rest.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['unreleased'] - }) + token: ${{secrets.GITHUB_TOKEN}} + labels: Unreleased + type: add diff --git a/.github/workflows/require_semver_label.yml b/.github/workflows/require_semver_label.yml index b764baaf..7cb0feb9 100644 --- a/.github/workflows/require_semver_label.yml +++ b/.github/workflows/require_semver_label.yml @@ -11,8 +11,16 @@ jobs: mode: exactly count: 1 labels: "semver:patch, semver:minor, semver:major" + token: ${{secrets.MACHINE_GITHUB_API_TOKEN}} + add_comment: | + Add a semantic version label + semver:patch - non-breaking bug fixes or internal changes + semver:minor - non-breaking changes (additions, deprecations) + semver:major - contains changes that may break consumers - uses: mheap/github-action-required-labels@v3 with: mode: exactly count: 1 - labels: "unreleased" \ No newline at end of file + labels: "unreleased" + token: ${{secrets.MACHINE_GITHUB_API_TOKEN}} + add_comment: The unrelease label is required to track which PRs have yet to be released. \ No newline at end of file
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: