Skip to content

Commit

Permalink
Fixes (#40)
Browse files Browse the repository at this point in the history
* Add tagging scripts

* Add github workflows
  • Loading branch information
nkshah2 authored Oct 12, 2022
1 parent 563964b commit 94236a5
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Summary of change
(A few sentences about this PR)

## Related issues
- Link to issue1 here
- Link to issue1 here

## Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

## Documentation changes
(If relevant, please create a PR in our [docs repo](https://github.com/supertokens/docs), or create a checklist here highlighting the necessary changes)

## Checklist for important updates
- [ ] Changelog has been updated
- [ ] `frontendDriverInterfaceSupported.json` file has been updated (if needed)
- Along with the associated array in `app/src/main/java/com/supertokens/session/Version.java`
- [ ] Changes to the version if needed
- In `app/src/main/java/com/supertokens/session/Version.java`
- [ ] Issue this PR against the latest non released version branch.
- To know which one it is, run find the latest released tag (`git tag`) in the format `vX.Y.Z`, and then find the latest branch (`git branch --all`) whose `X.Y` is greater than the latest released tag.
- If no such branch exists, then create one from the latest released branch.

## Remaining TODOs for this PR
- [ ] Item1
- [ ] Item2
15 changes: 15 additions & 0 deletions .github/workflows/github-actions-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Enforcing changelog in PRs Workflow"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
# Enforces the update of a changelog file on every pull request
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dangoslen/changelog-enforcer@v2
with:
changeLogPath: 'CHANGELOG.md'
skipLabels: 'Skip-Changelog'
20 changes: 20 additions & 0 deletions .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Lint PR Title"

on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize

jobs:
pr-title:
name: Lint PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
validateSingleCommit: true
2 changes: 1 addition & 1 deletion addDevTag
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [[ $(git log origin/master ^HEAD) ]]; then
fi

# get version------------
version=`cat ../app/build.gradle | grep -e "publishVersionID =" -e "publishVersionID="`
version=`cat ./app/build.gradle | grep -e "publishVersionID =" -e "publishVersionID="`

while IFS='"' read -ra ADDR; do
counter=0
Expand Down
2 changes: 1 addition & 1 deletion addReleaseTag
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Expects a releasePassword file to be ./

# get version------------
version=`cat ../app/build.gradle | grep -e "publishVersionID =" -e "publishVersionID="`
version=`cat ./app/build.gradle | grep -e "publishVersionID =" -e "publishVersionID="`

while IFS='"' read -ra ADDR; do
counter=0
Expand Down

0 comments on commit 94236a5

Please sign in to comment.