Skip to content
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

Add acoount type support #8

Closed
Yikun opened this issue Mar 9, 2020 · 1 comment · Fixed by #9
Closed

Add acoount type support #8

Yikun opened this issue Mar 9, 2020 · 1 comment · Fixed by #9
Labels
feature New feature or request

Comments

@Yikun
Copy link
Owner

Yikun commented Mar 9, 2020

Current, only org account type repo sync is supported, but the user account type is not suported.

We can add an is_org (False by default) add a account_type (can be set to user or org, user by default) to get/list the repos from user account or org account.

The org sync:

steps:
- name: Mirror the Github organization repos to Gitee.
  uses: Yikun/hub-mirror-action@master
  with:
    src: github/kunpengcompute
    dst: gitee/kunpengcompute
    dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
    dst_token:  ${{ secrets.GITEE_TOKEN }}
    account_type: org

The user sync:

steps:
- name: Mirror the Github organization repos to Gitee.
  uses: Yikun/hub-mirror-action@master
  with:
    src: github/xxx
    dst: gitee/xxx
    dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
    dst_token:  ${{ secrets.GITEE_TOKEN }}
@Yikun Yikun mentioned this issue Mar 9, 2020
@Yikun Yikun changed the title 支持用户类型账号同步 Support repo sync for normal user type Mar 9, 2020
Yikun added a commit that referenced this issue Mar 9, 2020
This patch try to add the account type support.

The account_type can be set to "org" or "user".

Closes: #8
Related: #7
Yikun added a commit that referenced this issue Mar 9, 2020
This patch try to add the account type support.

The account_type can be set to "org" or "user".

Closes: #8
Related: #7
Yikun added a commit that referenced this issue Mar 9, 2020
This patch try to add the account type support.

The account_type can be set to "org" or "user".

Closes: #8
Related: #7
@Yikun Yikun changed the title Support repo sync for normal user type Add acoount type support Mar 9, 2020
@Yikun Yikun closed this as completed in #9 Mar 9, 2020
Yikun added a commit that referenced this issue Mar 9, 2020
This patch try to add the account type support.

The account_type can be set to "org" or "user"(default).

Closes: #8
Related: #7
@Yikun
Copy link
Owner Author

Yikun commented Mar 9, 2020

Now you can use the account_type to specify the repo account type (org or user).
You can also see the org sync demo and user sync demo

@Yikun Yikun added the feature New feature or request label Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant