-
Notifications
You must be signed in to change notification settings - Fork 195
ci: add create-release-pr workflow action #1084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
39b418e to
27ab3b9
Compare
dc11e39 to
33b22c2
Compare
9d144c1 to
2bf66ce
Compare
.github/workflows/ci.yml
Outdated
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: amannn/action-semantic-pull-request@v6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we ok to use actions from third party libraries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does github action have any standard action that we can use instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ive removed it.
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| state: 'closed', | ||
| base: 'main', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is if its a non release branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ive updated to check if cordova version is prerelease and use rel/ e.g. rel/5.3.0-beta (minus the beta number)
| per_page: 100 | ||
| }); | ||
| // Filter and process PRs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am thinking if we can standardize this across all PRs? that way we haev one way of doing it everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ive added a call to get prs merged into rel/
| const hasFeatures = mergedPrs.some(pr => /^feat/i.test(pr.title)); | ||
| core.setOutput('isFeature', hasFeatures); | ||
| - name: Calculate new version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why should we calculate new version? cant we just manually enter the version?
anything that i am missing here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, this isn't something we should have to re-invent. There are tools that exist for this purpose, which will cut down on our overhead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ive added a cordova-input instead of new version calculation. Though if we expect this to be called from android-sdk (in the future) wed need to programmatically determine the new version.
43a536f to
73ea2b0
Compare
| RELEASE=$(curl -s -H "Authorization: token ${{ github.token }}" \ | ||
| "https://api.github.com/repos/OneSignal/OneSignal-Android-SDK/releases/tags/v${VERSION}") | ||
| if echo "$RELEASE" | grep -q "\"id\""; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a safe validation? have you tested it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will test when its merged
73ea2b0 to
658a6eb
Compare
658a6eb to
243127a
Compare
Description
One Line Summary
Details
alphaorbetain it, the release branch will be something like rel/5.3.0-alpha (no alpha/beta number)rel/5.2.0bunx cap synxin examples folderMotivation
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is