Skip to content

Commit

Permalink
fix: wrong definition of the ref.is_default column
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh authored and d4x1 committed Jan 5, 2024
1 parent a35c49e commit 803dd55
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/DataModels/DevLakeDomainLayerSchema.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ A ref is the abstraction of a branch or tag.
| `name` | varchar | 255 | The name of the ref. E.g. '[refs/tags/v0.9.3](https://github.com/apache/incubator-devlake/tree/v0.9.3)' or 'origin/main' | |
| `repo_id` | varchar | 255 | The id of repo this ref belongs to | FK_repos.id |
| `commit_sha` | char | 40 | The commit this ref points to at the time of collection | |
| `is_default` | tinyint | 1 | <ul><li>0: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li><li>1: not the default branch</li></ul> | |
| `is_default` | tinyint | 1 | <ul><li>0: not the default branch</li><li>1: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li></ul> | |
| `ref_type` | varchar | 64 | There are 2 typical types:<ul><li>BRANCH</li><li>TAG</li></ul> | |

#### commits_diffs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ A ref is the abstraction of a branch or tag.
| `ref_name` | varchar | 255 | The name of ref. Eg. '[refs/tags/v0.9.3](https://github.com/apache/incubator-devlake/tree/v0.9.3)' | |
| `repo_id` | varchar | 255 | The id of repo this ref belongs to | FK_repos.id |
| `commit_sha` | char | 40 | The commit this ref points to at the time of collection | |
| `is_default` | int | | <ul><li>0: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li><li>1: not the default branch</li></ul> | |
| `is_default` | tinyint | 1 | <ul><li>0: not the default branch</li><li>1: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li></ul> | |
| `merge_base` | char | 40 | The merge base commit of the main ref and the current ref | |
| `ref_type` | varchar | 64 | There're 2 typical types:<ul><li>BRANCH</li><li>TAG</li></ul> | |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ A ref is the abstraction of a branch or tag.
| `name` | varchar | 255 | The name of the ref. E.g. '[refs/tags/v0.9.3](https://github.com/apache/incubator-devlake/tree/v0.9.3)' or 'origin/main' | |
| `repo_id` | varchar | 255 | The id of repo this ref belongs to | FK_repos.id |
| `commit_sha` | char | 40 | The commit this ref points to at the time of collection | |
| `is_default` | tinyint | 1 | <ul><li>0: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li><li>1: not the default branch</li></ul>| |
| `is_default` | tinyint | 1 | <ul><li>0: not the default branch</li><li>1: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li></ul> | |
| `ref_type` | varchar | 64 | There are 2 typical types:<ul><li>BRANCH</li><li>TAG</li></ul> | |

#### commits_diffs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ A ref is the abstraction of a branch or tag.
| `name` | varchar | 255 | The name of the ref. E.g. '[refs/tags/v0.9.3](https://github.com/apache/incubator-devlake/tree/v0.9.3)' or 'origin/main' | |
| `repo_id` | varchar | 255 | The id of repo this ref belongs to | FK_repos.id |
| `commit_sha` | char | 40 | The commit this ref points to at the time of collection | |
| `is_default` | tinyint | 1 | <ul><li>0: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li><li>1: not the default branch</li></ul> | |
| `is_default` | tinyint | 1 | <ul><li>0: not the default branch</li><li>1: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li></ul> | |
| `ref_type` | varchar | 64 | There are 2 typical types:<ul><li>BRANCH</li><li>TAG</li></ul> | |

#### commits_diffs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ A ref is the abstraction of a branch or tag.
| `name` | varchar | 255 | The name of the ref. E.g. '[refs/tags/v0.9.3](https://github.com/apache/incubator-devlake/tree/v0.9.3)' or 'origin/main' | |
| `repo_id` | varchar | 255 | The id of repo this ref belongs to | FK_repos.id |
| `commit_sha` | char | 40 | The commit this ref points to at the time of collection | |
| `is_default` | tinyint | 1 | <ul><li>0: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li><li>1: not the default branch</li></ul> | |
| `is_default` | tinyint | 1 | <ul><li>0: not the default branch</li><li>1: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li></ul> | |
| `ref_type` | varchar | 64 | There are 2 typical types:<ul><li>BRANCH</li><li>TAG</li></ul> | |

#### commits_diffs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ A ref is the abstraction of a branch or tag.
| `name` | varchar | 255 | The name of the ref. E.g. '[refs/tags/v0.9.3](https://github.com/apache/incubator-devlake/tree/v0.9.3)' or 'origin/main' | |
| `repo_id` | varchar | 255 | The id of repo this ref belongs to | FK_repos.id |
| `commit_sha` | char | 40 | The commit this ref points to at the time of collection | |
| `is_default` | tinyint | 1 | <ul><li>0: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li><li>1: not the default branch</li></ul> | |
| `is_default` | tinyint | 1 | <ul><li>0: not the default branch</li><li>1: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li></ul> | |
| `ref_type` | varchar | 64 | There are 2 typical types:<ul><li>BRANCH</li><li>TAG</li></ul> | |

#### commits_diffs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ A ref is the abstraction of a branch or tag.
| `name` | varchar | 255 | The name of the ref. E.g. '[refs/tags/v0.9.3](https://github.com/apache/incubator-devlake/tree/v0.9.3)' or 'origin/main' | |
| `repo_id` | varchar | 255 | The id of repo this ref belongs to | FK_repos.id |
| `commit_sha` | char | 40 | The commit this ref points to at the time of collection | |
| `is_default` | tinyint | 1 | <ul><li>0: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li><li>1: not the default branch</li></ul> | |
| `is_default` | tinyint | 1 | <ul><li>0: not the default branch</li><li>1: the ref is the default branch. By the definition of [Github](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch), the default branch is the base branch for pull requests and code commits.</li></ul> | |
| `ref_type` | varchar | 64 | There are 2 typical types:<ul><li>BRANCH</li><li>TAG</li></ul> | |

#### commits_diffs
Expand Down

0 comments on commit 803dd55

Please sign in to comment.