-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: setup basic doc and workflow (#1)
- v1.19.3
- v1.19.2
- v1.19.1
- v1.19.0
- v1.18.0
- v1.17.4
- v1.17.3
- v1.17.2
- v1.17.1
- v1.17.0
- v1.16.8
- v1.16.7
- v1.16.6
- v1.16.5
- v1.16.4
- v1.16.3
- v1.16.2
- v1.16.1
- v1.16.0
- v1.15.0
- v1.14.0
- v1.13.0
- v1.12.2
- v1.12.1
- v1.12.0
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.8
- v1.4.7
- v1.4.6
- v1.4.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- 0.1.0-beta.9
- 0.1.0-beta.8
- 0.1.0-beta.7
- 0.1.0-beta.6
- 0.1.0-beta.5
- 0.1.0-beta.4
- 0.1.0-beta.3
- 0.1.0-beta.2
- 0.1.0-beta.1
1 parent
92248e0
commit 31bd223
Showing
5 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!--- | ||
Thanks for contributing to the Amplitude Kotlin SDK! 🎉 | ||
Please fill out the following sections to help us quickly review your pull request. | ||
---> | ||
|
||
### Summary | ||
|
||
<!-- What does the PR do? --> | ||
|
||
### Checklist | ||
|
||
* [ ] Does your PR title have the correct [title format](https://github.com/amplitude/Amplitude-Kotlin/blob/main/CONTRIBUTING.md#pr-commit-title-conventions)? | ||
* Does your PR have a breaking change?: <!-- Yes or no --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Creates jira tickets for new github issues to help triage | ||
name: Jira Issue Creator | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
environment: Jira | ||
name: SDK Bot Jira Issue Creation | ||
steps: | ||
- name: Login | ||
uses: atlassian/gajira-login@master | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
|
||
- name: Create issue | ||
id: create | ||
uses: atlassian/gajira-create@master | ||
with: | ||
project: ${{ secrets.JIRA_PROJECT }} | ||
issuetype: Task | ||
summary: | | ||
[SDK - Kotlin] ${{ github.event.issue.title }} | ||
description: | | ||
${{ github.event.issue.html_url }} | ||
fields: '{ | ||
"customfield_10006": 1391, | ||
"customfield_11481": {"value": "Governance 🕵️"}, | ||
"customfield_11200": {"value": "Developer Experience"}, | ||
"labels": ["kotlin"] | ||
}' # sprint, pillar, pod, labels | ||
|
||
- name: Log created issue | ||
run: echo "Issue AMP-${{ steps.create.outputs.issue }} was created" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Semantic PR Check | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, edited] | ||
|
||
jobs: | ||
pr-title-check: | ||
name: Check PR for semantic title | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: PR title is valid | ||
if: > | ||
startsWith(github.event.pull_request.title, 'feat:') || startsWith(github.event.pull_request.title, 'feat(') || | ||
startsWith(github.event.pull_request.title, 'fix:') || startsWith(github.event.pull_request.title, 'fix(') || | ||
startsWith(github.event.pull_request.title, 'perf:') || startsWith(github.event.pull_request.title, 'perf(') || | ||
startsWith(github.event.pull_request.title, 'docs:') || startsWith(github.event.pull_request.title, 'docs(') || | ||
startsWith(github.event.pull_request.title, 'test:') || startsWith(github.event.pull_request.title, 'test(') || | ||
startsWith(github.event.pull_request.title, 'refactor:') || startsWith(github.event.pull_request.title, 'refactor(') || | ||
startsWith(github.event.pull_request.title, 'style:') || startsWith(github.event.pull_request.title, 'style(') || | ||
startsWith(github.event.pull_request.title, 'build:') || startsWith(github.event.pull_request.title, 'build(') || | ||
startsWith(github.event.pull_request.title, 'ci:') || startsWith(github.event.pull_request.title, 'ci(') || | ||
startsWith(github.event.pull_request.title, 'chore:') || startsWith(github.event.pull_request.title, 'chore(') || | ||
startsWith(github.event.pull_request.title, 'revert:') || startsWith(github.event.pull_request.title, 'revert(') | ||
run: | | ||
echo 'Title checks passed' | ||
- name: PR title is invalid | ||
if: > | ||
!startsWith(github.event.pull_request.title, 'feat:') && !startsWith(github.event.pull_request.title, 'feat(') && | ||
!startsWith(github.event.pull_request.title, 'fix:') && !startsWith(github.event.pull_request.title, 'fix(') && | ||
!startsWith(github.event.pull_request.title, 'perf:') && !startsWith(github.event.pull_request.title, 'perf(') && | ||
!startsWith(github.event.pull_request.title, 'docs:') && !startsWith(github.event.pull_request.title, 'docs(') && | ||
!startsWith(github.event.pull_request.title, 'test:') && !startsWith(github.event.pull_request.title, 'test(') && | ||
!startsWith(github.event.pull_request.title, 'refactor:') && !startsWith(github.event.pull_request.title, 'refactor(') && | ||
!startsWith(github.event.pull_request.title, 'style:') && !startsWith(github.event.pull_request.title, 'style(') && | ||
!startsWith(github.event.pull_request.title, 'build:') && !startsWith(github.event.pull_request.title, 'build(') && | ||
!startsWith(github.event.pull_request.title, 'ci:') && !startsWith(github.event.pull_request.title, 'ci(') && | ||
!startsWith(github.event.pull_request.title, 'chore:') && !startsWith(github.event.pull_request.title, 'chore(') && | ||
!startsWith(github.event.pull_request.title, 'revert:') && !startsWith(github.event.pull_request.title, 'revert(') | ||
run: | | ||
echo 'Pull request title is not valid. Please check github.com/amplitude/Amplitude-Java/blob/main/CONTRIBUTING.md#pr-commit-title-conventions' | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### PR Commit Title Conventions | ||
|
||
PR titles should follow [conventional commit standards](https://www.conventionalcommits.org/en/v1.0.0/). | ||
|
||
#### Commit Types | ||
|
||
- `feat(<optional scope>)`: New features (minimum minor release) | ||
- `fix(<optional scope>)`: Bug fixes (minimum patch release) | ||
- `perf(<optional scope>)`: Performance improvement | ||
- `docs(<optional scope>)`: Documentation updates | ||
- `test(<optional scope>)`: Test updates | ||
- `refactor(<optional scope>)`: Code change that neither fixes a bug nor adds a feature | ||
- `style(<optional scope>)`: Code style changes (e.g. formatting, commas, semi-colons) | ||
- `build(<optional scope>)`: Changes that affect the build system or external dependencies (e.g. Yarn, Npm) | ||
- `ci(<optional scope>)`: Changes to our CI configuration files and scripts | ||
- `chore(<optional scope>)`: Other changes that don't modify src or test files | ||
- `revert(<optional scope>)`: Revert commit |