Skip to content

Commit 5000fc3

Browse files
authored
Add GitHub template and workflows needed on the default branch (#136)
1 parent 0864b35 commit 5000fc3

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ _What does this PR do?_
1111
Requirements for merging:
1212
- [ ] I have opened an issue or PR upstream on JuliaLang/julia: <link to JuliaLang/julia>
1313
- [ ] I have removed the `port-to-*` labels that don't apply.
14+
- [ ] I have opened a PR on raicode to test these changes: <link to raicode>

.github/workflows/stale.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Close stale PRs"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *" # every night at midnight
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v8
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Comment or remove stale label, or this PR will be closed in 5 days.'
14+
days-before-stale: 30
15+
days-before-close: 5
16+
stale-pr-label: 'stale'
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Update upstream branches"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *" # every night at midnight
5+
workflow_dispatch:
6+
7+
jobs:
8+
PullUpstream:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false # run all jobs in the matrix even if one fails
12+
matrix:
13+
branch:
14+
- "master"
15+
- "backports-release-1.10"
16+
- "backports-release-1.9"
17+
steps:
18+
- name: Checkout RAI/julia
19+
uses: actions/checkout@v3
20+
with:
21+
ref: ${{ matrix.branch }}
22+
- name: Update ${{ matrix.branch }}
23+
run: |
24+
git config --global user.email "[email protected]"
25+
git config --global user.name "RAI CI (GitHub Action Automation)"
26+
27+
git remote add upstream https://github.com/JuliaLang/julia
28+
git pull upstream ${{ matrix.branch }}
29+
git push origin ${{ matrix.branch }}

0 commit comments

Comments
 (0)