Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvanrijn committed Sep 8, 2024
0 parents commit 8f0b8bd
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=false
/.gitattributes export-ignore
/.github/ export-ignore
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- dependencies
- automerge
15 changes: 15 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 14

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: false

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels: []

# Label to use when marking as stale
staleLabel: stale

# Comment to post when marking as stale. Set to `false` to disable
markComment: false
24 changes: 24 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Dependabot Automerge"

on:
pull_request:
branches: [ master ]

permissions: write-all

jobs:
automerge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: automerge
uses: actions/[email protected]
with:
script: |
github.rest.pulls.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
sha: context.payload.pull_request.head.sha,
merge_method: 'merge'
})
18 changes: 18 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Lock"

on:
schedule:
- cron: '0 0 * * *'

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/[email protected]
with:
add-issue-labels: 'locked'
remove-issue-labels: 'stale'
issue-lock-reason: ''
add-pr-labels: 'locked'
remove-pr-labels: 'stale'
pr-lock-reason: ''
52 changes: 52 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "Update"

on:
push:
branches: [ main ]
schedule:
- cron: '*/5 * * * *'

permissions: write-all

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
token: ${{ secrets.WORKFLOW_TOKEN }}
fetch-depth: 0
- name: Update
shell: bash
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
# Configure git to be more predictable and deterministic
git config core.autocrlf false
git config core.ignorecase false
git config core.fscache true
git config core.longpaths true
git config diff.renameLimit 0
git config status.renameLimit 0
git config merge.renameLimit 0
git config http.lowSpeedLimit 0
git config http.lowSpeedTime 300
git config http.postBuffer 1048576000
git config pack.threads 1
git config index.threads 0
git remote add RHH https://github.com/rh-hideout/pokeemerald-expansion.git
git fetch -f --all -t
git for-each-ref --shell --format='git branch -rd %(refname:lstrip=2)' --exclude=refs/remotes/RHH/master --exclude=refs/remotes/RHH/upcoming refs/remotes/RHH/ | bash --noprofile --norc -e -o pipefail
git for-each-ref --shell --format='git push -f -u origin %(refname):refs/heads/%(refname:lstrip=2)' --exclude=refs/remotes/origin/ refs/remotes/ | bash --noprofile --norc -e -o pipefail
git push -f --tags
git for-each-ref --shell --format='if git cat-file -e remotes/%(refname:lstrip=3)^{commit}; then echo Everything up-to-date; else git push -d origin refs/heads/%(refname:lstrip=3); fi' --exclude=refs/remotes/origin/main --exclude=refs/remotes/origin/master --exclude=refs/remotes/origin/upcoming refs/remotes/origin/ | bash --noprofile --norc -e -o pipefail
git checkout -b master refs/remotes/origin/master
git -c user.name="8" -c user.email="[email protected]" rebase refs/remotes/RHH/master
git push -f -u origin master:refs/heads/master
if [[ $(git cherry refs/remotes/origin/upcoming refs/remotes/RHH/upcoming | head -c1 | wc -c) -ne 0 || $(git cherry refs/remotes/RHH/upcoming | wc -l) -gt $(git cherry refs/remotes/RHH/upcoming refs/remotes/origin/upcoming | wc -l) ]]; then
git -c user.name="8" -c user.email="[email protected]" rebase refs/remotes/RHH/upcoming
git push -f -u origin master:refs/heads/upcoming
else
echo Current branch upcoming is up to date.
echo Everything up-to-date
fi
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# pokeemerald-expansion

You're probably looking for:

https://github.com/EIGHTFINITE/pokeemerald-expansion/tree/master
https://github.com/EIGHTFINITE/pokeemerald-expansion/blob/master/INSTALL.md
https://github.com/EIGHTFINITE/pokeemerald-expansion/blob/master/CHANGELOG.md

Or if you want to start coding:

```
git init .
git remote add origin https://github.com/EIGHTFINITE/pokeemerald-expansion.git
git remote add RHH https://github.com/rh-hideout/pokeemerald-expansion.git
git fetch --force --all --tags
git checkout -B master refs/remotes/origin/master
```

0 comments on commit 8f0b8bd

Please sign in to comment.