mirror of
https://github.com/tauri-apps/create-pull-request.git
synced 2026-01-31 00:35:18 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21aff96eee | ||
|
|
f4703cdc23 |
@@ -24,7 +24,7 @@ Create one [here](https://github.com/settings/tokens) and pass that as a secret
|
||||
|
||||
```yml
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v1.1.1
|
||||
uses: peter-evans/create-pull-request@v1.1.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||
@@ -60,7 +60,7 @@ Here is an example that sets all the environment variables.
|
||||
|
||||
```yml
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v1.1.1
|
||||
uses: peter-evans/create-pull-request@v1.1.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||
|
||||
@@ -43,8 +43,8 @@ def pr_branch_exists(repo, branch):
|
||||
|
||||
def get_head_author(github_event):
|
||||
if 'schedule' in github_event:
|
||||
email=os.environ['GITHUB_ACTOR']
|
||||
name=os.environ['GITHUB_ACTOR'] + '@users.noreply.github.com'
|
||||
email = os.environ['GITHUB_ACTOR'] + '@users.noreply.github.com'
|
||||
name = os.environ['GITHUB_ACTOR']
|
||||
else:
|
||||
email = "{head_commit[author][email]}".format(**github_event)
|
||||
name = "{head_commit[author][name]}".format(**github_event)
|
||||
|
||||
Reference in New Issue
Block a user