Skip to content

Commit b84287b

Browse files
egeakmancvrnkgithub-actions[bot]Ardasakirfan-karabacak
authored
Catch up with master (#39)
* Update wrap_branch.yml * Update wrap_pr.yml * tutorial/introduction (#27) * Add files via upload * Wrap translations * Update introduction.po Co-authored-by: Ege Akman <egeakmanegeakman@hotmail.com> * Update introduction.po Co-authored-by: Ege Akman <egeakmanegeakman@hotmail.com> * Wrap translations * Delete introduction.po * Rename introduction.po to tutorial/introduction.po * Apply suggestions from code review Co-authored-by: İrfan Karabacak <76447978+irfan-karabacak@users.noreply.github.com> * Wrap translations Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Arda Sak <76947524+Ardasak@users.noreply.github.com> Co-authored-by: Ege Akman <egeakmanegeakman@hotmail.com> Co-authored-by: Ege Akman <me@egeakman.dev> Co-authored-by: İrfan Karabacak <76447978+irfan-karabacak@users.noreply.github.com> * Update wrap_pr.yml * Create file_reservation.md * Update file_reservation.md * Update file_reservation.md * Update file_reservation.md * Update file_reservation.md * license (#33) * license.po is done * branch fix * fixed * Apply suggestions from code review Co-authored-by: Arda Sak <76947524+Ardasak@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Arda Sak <76947524+Ardasak@users.noreply.github.com> * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Arda Sak <76947524+Ardasak@users.noreply.github.com> Co-authored-by: Ege Akman <egeakmanegeakman@hotmail.com> * Update wrap_branch.yml * Update wrap_branch.yml * Update wrap_branch.yml * Update wrap_branch.yml * Update wrap_branch.yml * Update wrap_branch.yml * Create get_base_branch.py * Update wrap_branch.yml * Update wrap_branch.yml * Delete get_base_branch.py * Update wrap_branch.yml * Update wrap_branch.yml * Update wrap_branch.yml * Update wrap_branch.yml * Wrap branch: 3.10 (#38) * Wrap translations * Update license.po Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ege Akman <me@egeakman.dev> Co-authored-by: cvrnk <89136029+cvrnk@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Arda Sak <76947524+Ardasak@users.noreply.github.com> Co-authored-by: İrfan Karabacak <76447978+irfan-karabacak@users.noreply.github.com>
1 parent b22dc64 commit b84287b

File tree

5 files changed

+370
-107
lines changed

5 files changed

+370
-107
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Rezervasyon
3+
about: Bir .po dosyası rezerve etmek istiyorum (üzerinde sadece kendim çalışmak istiyorum).
4+
title: foo/bar.po üzerinde çalışmak istiyorum.
5+
labels: reservation
6+
assignees: ''
7+
---
8+
9+
<!---
10+
Dikkat, bir rezervasyon sadece bir ay geçerlidir, gerekirse yorum yaparak yenileyin.
11+
-->

.github/workflows/wrap_branch.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
# Checkout the latest code from the repo
1616
- name: Checkout repo
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818

1919
# Setup which version of Python to use
2020
- name: Set Up Python ${{ matrix.python-version }}
@@ -62,10 +62,21 @@ jobs:
6262
git commit -m "Wrap translations"
6363
echo "WRAPPED=True" >> $GITHUB_ENV
6464
fi
65-
# Push changes
66-
- name: Push changes
67-
if: env.WRAPPED == 'True'
68-
uses: ad-m/github-push-action@master
65+
66+
# Create pull request
67+
- name: Create Pull Request
68+
id: cpr
69+
uses: peter-evans/create-pull-request@v4
6970
with:
70-
github_token: ${{ secrets.GITHUB_TOKEN }}
71-
branch: ${{ github.ref_name }}
71+
token: ${{ secrets.GITHUB_TOKEN }}
72+
commit-message: Update report
73+
committer: GitHub <noreply@github.com>
74+
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
75+
signoff: false
76+
branch: ${{ github.ref_name }}_wrapped
77+
delete-branch: true
78+
title: 'Wrap branch: ${{ github.ref_name }}'
79+
body: Wrapped all translations on branch ${{ github.ref_name }}.
80+
labels: wrap
81+
team-reviewers: reviewers
82+
draft: false

.github/workflows/wrap_pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66

77
jobs:
88
wrap:
9+
# Check if the source branch is from a fork
10+
if: github.event.pull_request.head.repo.full_name == github.repository
911
runs-on: ubuntu-latest
1012

1113
strategy:
@@ -16,7 +18,7 @@ jobs:
1618
steps:
1719
# Checkout the latest code from the repo
1820
- name: Checkout repo
19-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2022
with:
2123
fetch-depth: 0
2224
ref: ${{ github.event.pull_request.head.ref }}

0 commit comments

Comments
 (0)