Skip to content

Commit

Permalink
[Update] readme git workflow best practice (#316)
Browse files Browse the repository at this point in the history
* [Update] readme git workflow

* [Update] readme git workflow and minor formating
  • Loading branch information
ViGeng authored Oct 9, 2023
1 parent a5b2325 commit afee2de
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 2 deletions.
86 changes: 86 additions & 0 deletions .readme_assets/best-practice.drawio
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<mxfile host="65bd71144e">
<diagram id="scfeG7vpldKUv0kFTR0y" name="Page-1">
<mxGraphModel dx="1398" dy="859" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="2" value="Upstream Repo" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" parent="1" vertex="1">
<mxGeometry x="80" y="320" width="120" height="40" as="geometry"/>
</mxCell>
<mxCell id="6" value="" style="edgeStyle=none;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fillColor=#f8cecc;strokeColor=#b85450;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="20" target="21" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="280" y="370" as="sourcePoint"/>
<mxPoint x="318.71546484833766" y="410.02751312787586" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="7" value="checkout&amp;nbsp; -b feature-name" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="6" vertex="1" connectable="0">
<mxGeometry x="-0.1582" y="1" relative="1" as="geometry">
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="10" value="" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" source="21" target="22" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="350" y="440" as="sourcePoint"/>
<mxPoint x="440.1036272526535" y="432.4913643956122" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="11" value="changes" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="10" vertex="1" connectable="0">
<mxGeometry x="-0.2041" relative="1" as="geometry">
<mxPoint as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="13" value="" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" source="22" target="23" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="467.38499149160816" y="459.8858115244766" as="sourcePoint"/>
<mxPoint x="454.11651594585464" y="510.58257972927277" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="14" value="push forked&amp;nbsp; feature-name" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="13" vertex="1" connectable="0">
<mxGeometry x="-0.3582" relative="1" as="geometry">
<mxPoint y="3" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="16" style="edgeStyle=orthogonalEdgeStyle;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" source="23" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="600" y="350" as="targetPoint"/>
<mxPoint x="490" y="540" as="sourcePoint"/>
</mxGeometry>
</mxCell>
<mxCell id="17" value="New Pull Request" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="16" vertex="1" connectable="0">
<mxGeometry x="-0.5816" y="-2" relative="1" as="geometry">
<mxPoint y="-3" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="15" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;fillColor=#f8cecc;strokeColor=#b85450;" parent="1" source="2" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="340" y="345" as="sourcePoint"/>
<mxPoint x="680" y="340" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="24" value="Review" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="15" vertex="1" connectable="0">
<mxGeometry x="0.7691" y="-1" relative="1" as="geometry">
<mxPoint x="-25" y="-1" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="18" value="Local Cloned" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="80" y="400" width="120" height="40" as="geometry"/>
</mxCell>
<mxCell id="19" value="Personal Fork" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="80" y="480" width="120" height="40" as="geometry"/>
</mxCell>
<mxCell id="20" value="Main HEAD" style="ellipse;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" parent="1" vertex="1">
<mxGeometry x="240" y="320" width="80" height="40" as="geometry"/>
</mxCell>
<mxCell id="21" value="Feature Branch" style="ellipse;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="240" y="400" width="80" height="40" as="geometry"/>
</mxCell>
<mxCell id="22" value="New Commit" style="ellipse;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="400" y="400" width="80" height="40" as="geometry"/>
</mxCell>
<mxCell id="23" value="New Commit" style="ellipse;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">
<mxGeometry x="400" y="480" width="80" height="40" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Binary file added .readme_assets/branch_based_workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# CCF-Deadlines

[![LICENSE](https://img.shields.io/github/license/ccfddl/ccf-deadlines)](https://github.com/ccfddl/ccf-deadlines/blob/main/LICENSE)
[![Build Status](https://img.shields.io/github/actions/workflow/status/ccfddl/ccf-deadlines/.github/workflows/deploy.yml?branch=main)](https://github.com/ccfddl/ccf-deadlines/commits/main)
[![Open PRs](https://img.shields.io/github/issues-pr/ccfddl/ccf-deadlines)](https://github.com/ccfddl/ccf-deadlines/pulls)
Expand All @@ -18,9 +19,11 @@ Help researchers track deadlines of conferences recommended by [China Computer F
**No More Finding and Time Conversion on Your Own!**

## Add/Update a conference

Contributions are welcomed and greatly appreciated! For further contribution and waterblowing, email [[email protected]]([email protected]) through your edu email address with wechatid to join the [CCFDDL](https://github.com/ccfddl) organization.

To add or update information:

- Fork the repo
- Add/Update the yml file of conference/conf_type/conf_name.yml
- Send a [pull request](https://github.com/ccfddl/ccf-deadlines/pulls)
Expand All @@ -29,7 +32,7 @@ Tips: check [conferences recommended](.readme_assets/ccf_recommended_2022.pdf) a
## Conference Entry File
Example file: conference/DB/sigmod.yml

```
```yaml
- title: SIGMOD
description: ACM Conference on Management of Data
sub: DB
Expand All @@ -48,6 +51,7 @@ Example file: conference/DB/sigmod.yml
date: June 12-17, 2022
place: Philadelphia, PA, USA
```
Description of the fields:
<table>
<tr>
Expand Down Expand Up @@ -132,15 +136,28 @@ The matching table:
| `MX` | Interdiscipline/Mixture/Emerging |

## Community activity [![Time period](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_badge.svg)](https://repography.com)

[![Timeline graph](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_timeline.svg)](https://github.com/ccfddl/ccf-deadlines/commits)
[![Issue status graph](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_issues.svg)](https://github.com/ccfddl/ccf-deadlines/issues)
[![Pull request status graph](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_prs.svg)](https://github.com/ccfddl/ccf-deadlines/pulls)
[![Top contributors](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_users.svg)](https://github.com/ccfddl/ccf-deadlines/graphs/contributors)

## Contribution

Maintained by [@jacklightChen](https://github.com/jacklightChen), [@0x4f5da2](https://github.com/0x4f5da2), [@kzoacn](https://github.com/kzoacn), [@cubercsl](https://github.com/cubercsl), [@spingARbor](https://github.com/spingARbor), [@liborui](https://github.com/liborui), [@PAN-Ziyue](https://github.com/PAN-Ziyue), [@xuhangc](https://github.com/xuhangc), [@RyunMi](https://github.com/RyunMi), [@Lukangkang123](https://github.com/Lukangkang123), [@oliverck](https://github.com/oliverck), [@fffmath](https://github.com/fffmath), [@Allenpandas](https://github.com/Allenpandas), [@yuang-chen](https://github.com/yuang-chen), [@hepengfei5709](https://github.com/hepengfei5709), [@ViGeng](https://github.com/ViGeng).

Inspired by [ai-deadlines](https://aideadlin.es/).

### Best Practice

We recommend branch-based workflow, which is a common practice in open source projects.
As shown in the figure below, The basic idea is to create a new branch for each feature or bug fix. Then this new branch can be pushed to forked repository.
All changes will be merged into upstream main branch through pull requests.

<!-- make it smaller -->
<!-- ![Branch-based Workflow](.readme_assets/branch_based_workflow.png) -->
<img src=".readme_assets/branch_based_workflow.png" width="500px"/>

## License

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fccfddl%2Fccf-deadlines.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fccfddl%2Fccf-deadlines?ref=badge_large)
20 changes: 19 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# CCF-Deadlines

[![LICENSE](https://img.shields.io/github/license/ccfddl/ccf-deadlines)](https://github.com/ccfddl/ccf-deadlines/blob/main/LICENSE)
[![Build Status](https://img.shields.io/github/actions/workflow/status/ccfddl/ccf-deadlines/.github/workflows/deploy.yml?branch=main)](https://github.com/ccfddl/ccf-deadlines/commits/main)
[![Open PRs](https://img.shields.io/github/issues-pr/ccfddl/ccf-deadlines)](https://github.com/ccfddl/ccf-deadlines/pulls)
Expand All @@ -18,6 +19,7 @@
**对麻烦的查找会议和转换时间说拜拜!**

## 增加/更新 会议

欢迎一起帮忙维护会议的相关信息! 如想要进一步做贡献或吹水,可通过发送邮件给[[email protected]]([email protected]),请使用edu邮箱并附上wechatid,加入 [CCFDDL](https://github.com/ccfddl) 组织。

增加或删除会议信息:
Expand All @@ -26,10 +28,12 @@
- 提交 [pull request](https://github.com/ccfddl/ccf-deadlines/pulls)

提示: 可检查 [会议推荐目录](.readme_assets/ccf_recommended_2022.pdf)[统计表格](https://docs.qq.com/sheet/DR3F1Tm1jcnlzVFJ2)

## 会议录入文件

示例文件: conference/DB/sigmod.yml

```
```yaml
- title: SIGMOD
description: ACM Conference on Management of Data
sub: DB
Expand All @@ -48,6 +52,7 @@
date: June 12-17, 2022
place: Philadelphia, PA, USA
```
字段描述:
<table>
Expand Down Expand Up @@ -133,15 +138,28 @@
| `MX` | 交叉/综合/新兴 |

## 社区动态 [![Time period](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_badge.svg)](https://repography.com)

[![Timeline graph](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_timeline.svg)](https://github.com/ccfddl/ccf-deadlines/commits)
[![Issue status graph](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_issues.svg)](https://github.com/ccfddl/ccf-deadlines/issues)
[![Pull request status graph](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_prs.svg)](https://github.com/ccfddl/ccf-deadlines/pulls)
[![Top contributors](https://images.repography.com/34277855/ccfddl/ccf-deadlines/recent-activity/5fTrp8O5TMylbcyWax-RA4zvtLwFXQeUmCGlTEmHlOc/3ypSX5IK_DYSkrgdERBGvHuaPzIse7m6ydGPLX_wJKE_users.svg)](https://github.com/ccfddl/ccf-deadlines/graphs/contributors)

## 贡献

本项目由 [@jacklightChen](https://github.com/jacklightChen), [@0x4f5da2](https://github.com/0x4f5da2), [@kzoacn](https://github.com/kzoacn), [@cubercsl](https://github.com/cubercsl), [@spingARbor](https://github.com/spingARbor), [@liborui](https://github.com/liborui), [@PAN-Ziyue](https://github.com/PAN-Ziyue), [@xuhangc](https://github.com/xuhangc), [@RyunMi](https://github.com/RyunMi), [@Lukangkang123](https://github.com/Lukangkang123), [@oliverck](https://github.com/oliverck), [@fffmath](https://github.com/fffmath), [@Allenpandas](https://github.com/Allenpandas), [@yuang-chen](https://github.com/yuang-chen), [@hepengfei5709](https://github.com/hepengfei5709), [@ViGeng](https://github.com/ViGeng) 共同维护。

灵感来自于 [ai-deadlines](https://aideadlin.es/)。

### 贡献的Git工作流

我们推荐开源项目中常见的分支工作流。
如下图所示,基本思想是为每个功能或错误修复创建一个新分支,然后将该新分支推送到fork的仓库中。
所有更改将通过提 PR 来进行审查,然后合并到主分支中。

<!-- make it smaller -->
<!-- ![Branch-based Workflow](.readme_assets/branch_based_workflow.png) -->
<img src=".readme_assets/branch_based_workflow.png" width="400px"/>

## License

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fccfddl%2Fccf-deadlines.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fccfddl%2Fccf-deadlines?ref=badge_large)

0 comments on commit afee2de

Please sign in to comment.