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

Config user and fix repo name in comment #2

Merged
merged 2 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: test
on:
schedule:
- cron: '20 8 * * *'
- cron: '35 9 * * *'
jobs:
build:
runs-on: ubuntu-latest
Expand Down
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def commit_changes(ci: Commit):
author = ci.author()
print(f">>> Commit changes by <{author.email}>")
git.add(".")
git.config("--local", "user.name", author.name)
git.config("--local", "user.email", author.email)
git.commit("-m", ci.title, "--author", f"{author.name} <{author.email}>")


Expand Down Expand Up @@ -173,8 +175,8 @@ def notify_author_by_comment(ent_repo, comm_ci, issue_num, comm_pr_num, org_memb
You can use following commands to resolve the conflicts locally:

```shell
$ git clone [email protected]:vesoft-inc/nebula-ent.git
$ cd nebula-ent
$ git clone [email protected]:{}.git
$ cd {}
$ git checkout -b pr-{} origin/master
$ curl -fsSL "{}.patch" -o {}.patch
$ git am -3 {}.patch
Expand All @@ -185,7 +187,7 @@ def notify_author_by_comment(ent_repo, comm_ci, issue_num, comm_pr_num, org_memb
"""

issue = ent_repo.get_issue(issue_num)
issue.create_comment(comment.format(comm_pr_num, comm_ci.commit.html_url, comm_pr_num, comm_pr_num, comm_pr_num))
issue.create_comment(comment.format(ent_repo.full_name, ent_repo.name, comm_pr_num, comm_ci.commit.html_url, comm_pr_num, comm_pr_num, comm_pr_num))


def create_pr(comm_repo, ent_repo, comm_ci, org_members):
Expand Down