Skip to content

Require PR approval before release tagging#41

Merged
ajpallares merged 4 commits into
mainfrom
pallares/require-release-pr-approval
Mar 23, 2026
Merged

Require PR approval before release tagging#41
ajpallares merged 4 commits into
mainfrom
pallares/require-release-pr-approval

Conversation

@ajpallares

Copy link
Copy Markdown
Member

Motivation

The release workflow currently allows tagging a release branch without verifying that the PR has been reviewed and approved. This adds a safeguard to ensure the release PR is properly approved before the tag is created.

Description

Adds a validate_pr_approved step to the tag-current-branch job. This verifies the release PR has been approved by an org member with write permissions before the git tag is created. If the PR is not approved, the job fails and the tag is not pushed.

This change affects all SDK repos that use the revenuecat/tag-current-branch orb job.

Reference: RevenueCat/purchases-ios#6243

Made with Cursor

Add a `validate_pr_approved` check to `tag-current-branch` that verifies
the release PR has been approved by an org member with write permissions
before the tag is created. This prevents tagging a release before the PR
is properly reviewed.

Made-with: Cursor
Matches the Ruby version used by purchases-ios.

Made-with: Cursor
Fixes RC009 lint: complex run step commands must use <<include()>> syntax.

Made-with: Cursor
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:60d9cf412b7e08f21074b3f07d9f6035dd648103

@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:dabbf3ee28046417670444dce393d95f0f14d422

@ajpallares ajpallares merged commit 5390131 into main Mar 23, 2026
13 checks passed
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:5390131b198e9b8131d27409ca0d6517dfa263e2

1 similar comment
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:5390131b198e9b8131d27409ca0d6517dfa263e2

@RCGitBot

Copy link
Copy Markdown
Contributor

Your orb has been published to the CircleCI Orb Registry.
You can view your published orb on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=3.16.0

ajpallares added a commit to RevenueCat/purchases-hybrid-common that referenced this pull request Mar 23, 2026
## Motivation

The release workflow currently allows tagging a release branch without
verifying that the PR has been reviewed and approved. This adds a
safeguard to ensure the release PR is properly approved before the tag
is created.

Additionally, the repo had a custom `tag-release-branch` job that was
copy-pasted from `purchases-ios`, including a wrong `working_directory:
~/purchases-ios`. This PR cleans that up.

## Description

- Bumps `revenuecat/sdks-common-config` orb to `@3.16.0`, which includes
a `validate_pr_approved` step in the `tag-current-branch` job
- Replaces the custom `tag-release-branch` job with the orb's
`revenuecat/tag-current-branch` (passing `ruby_version: "3.3.0"`), since
the custom job was functionally equivalent and had a wrong
`working_directory`

**Depends on:** RevenueCat/sdks-circleci-orb#41
ajpallares added a commit to RevenueCat/react-native-purchases that referenced this pull request Mar 23, 2026
## Motivation

The release workflow currently allows tagging a release branch without
verifying that the PR has been reviewed and approved. This adds a
safeguard to ensure the release PR is properly approved before the tag
is created.

## Description

Bumps `revenuecat/sdks-common-config` orb to `@3.16.0`, which includes a
`validate_pr_approved` step in the `tag-current-branch` job. This
verifies the release PR has been approved by an org member with write
permissions before the git tag is created.

**Depends on:** RevenueCat/sdks-circleci-orb#41
ajpallares added a commit to RevenueCat/purchases-flutter that referenced this pull request Mar 23, 2026
## Motivation

The release workflow currently allows tagging a release branch without
verifying that the PR has been reviewed and approved. This adds a
safeguard to ensure the release PR is properly approved before the tag
is created.

## Description

Bumps `revenuecat/sdks-common-config` orb to `@3.16.0`, which includes a
`validate_pr_approved` step in the `tag-current-branch` job. This
verifies the release PR has been approved by an org member with write
permissions before the git tag is created.

**Depends on:** RevenueCat/sdks-circleci-orb#41

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes the release/tagging workflow behavior via an orb upgrade,
which could block or alter release tagging if the new PR-approval
validation misbehaves or is misconfigured.
> 
> **Overview**
> Updates the CircleCI `revenuecat/sdks-common-config` orb from `3.13.0`
to `3.16.0`, pulling in new behavior for the
`revenuecat/tag-current-branch` job (including PR-approval validation)
before creating release tags.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
604173c. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
ajpallares added a commit to RevenueCat/purchases-capacitor that referenced this pull request Mar 23, 2026
## Motivation

The release workflow currently allows tagging a release branch without
verifying that the PR has been reviewed and approved. This adds a
safeguard to ensure the release PR is properly approved before the tag
is created.

## Description

Bumps `revenuecat/sdks-common-config` orb to `@3.16.0`, which includes a
`validate_pr_approved` step in the `tag-current-branch` job. This
verifies the release PR has been approved by an org member with write
permissions before the git tag is created.

**Depends on:** RevenueCat/sdks-circleci-orb#41
ajpallares added a commit to RevenueCat/cordova-plugin-purchases that referenced this pull request Mar 23, 2026
## Motivation

The release workflow currently allows tagging a release branch without
verifying that the PR has been reviewed and approved. This adds a
safeguard to ensure the release PR is properly approved before the tag
is created.

## Description

Bumps `revenuecat/sdks-common-config` orb to `@3.16.0`, which includes a
`validate_pr_approved` step in the `tag-current-branch` job. This
verifies the release PR has been approved by an org member with write
permissions before the git tag is created.

**Depends on:** RevenueCat/sdks-circleci-orb#41
github-merge-queue Bot pushed a commit to RevenueCat/purchases-android that referenced this pull request Mar 23, 2026
## Motivation

The release workflow currently allows tagging a release branch without
verifying that the PR has been reviewed and approved. This adds a
safeguard to ensure the release PR is properly approved before the tag
is created.

## Description

Bumps `revenuecat/sdks-common-config` orb to `@3.16.0`, which includes a
`validate_pr_approved` step in the `tag-current-branch` job. This
verifies the release PR has been approved by an org member with write
permissions before the git tag is created.

**Depends on:** RevenueCat/sdks-circleci-orb#41

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes the release-tagging workflow behavior by pulling in a newer
CircleCI orb; misconfiguration or orb regressions could block or delay
release tagging.
> 
> **Overview**
> Updates the CircleCI `revenuecat/sdks-common-config` orb from `3.13.0`
to `3.16.0`.
> 
> This is intended to add a safeguard to release tagging (via the orb’s
`tag-current-branch` job) by validating that the associated release PR
has been approved before creating git tags.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1d68cd9. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
ajpallares added a commit to RevenueCat/purchases-unity that referenced this pull request Mar 23, 2026
## Motivation

The release workflow currently allows tagging a release branch without
verifying that the PR has been reviewed and approved. This adds a
safeguard to ensure the release PR is properly approved before the tag
is created.

## Description

Bumps `revenuecat/sdks-common-config` orb to `@3.16.0`, which includes a
`validate_pr_approved` step in the `tag-current-branch` job. This
verifies the release PR has been approved by an org member with write
permissions before the git tag is created.

**Depends on:** RevenueCat/sdks-circleci-orb#41
ajpallares added a commit to RevenueCat/purchases-js that referenced this pull request Mar 23, 2026
## Motivation

The release workflow currently allows tagging a release branch without
verifying that the PR has been reviewed and approved. This adds a
safeguard to ensure the release PR is properly approved before the tag
is created.

## Description

Bumps `revenuecat/sdks-common-config` orb to `@3.16.0`, which includes a
`validate_pr_approved` step in the `tag-current-branch` job. This
verifies the release PR has been approved by an org member with write
permissions before the git tag is created.

**Depends on:** RevenueCat/sdks-circleci-orb#41
@ajpallares ajpallares deleted the pallares/require-release-pr-approval branch March 26, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants