Update fetchdep to also take into account forks
This commit is contained in:
parent
dab1488ffe
commit
0a239a30fa
5 changed files with 7 additions and 7 deletions
3
.github/workflows/build.yaml
vendored
3
.github/workflows/build.yaml
vendored
|
@ -19,7 +19,8 @@ on:
|
||||||
SENTRY_URL:
|
SENTRY_URL:
|
||||||
required: true
|
required: true
|
||||||
env:
|
env:
|
||||||
# This must be set for fetchdep.sh to get the right branch
|
# These must be set for fetchdep.sh to get the right branch
|
||||||
|
REPOSITORY: ${{ github.repository }}
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
3
.github/workflows/build_develop.yaml
vendored
3
.github/workflows/build_develop.yaml
vendored
|
@ -6,9 +6,6 @@ on:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [ element-web-notify ]
|
types: [ element-web-notify ]
|
||||||
env:
|
|
||||||
# This must be set for fetchdep.sh to get the right branch
|
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: "Build"
|
name: "Build"
|
||||||
|
|
3
.github/workflows/static_analysis.yaml
vendored
3
.github/workflows/static_analysis.yaml
vendored
|
@ -6,7 +6,8 @@ on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [ element-web-notify ]
|
types: [ element-web-notify ]
|
||||||
env:
|
env:
|
||||||
# This must be set for fetchdep.sh to get the right branch
|
# These must be set for fetchdep.sh to get the right branch
|
||||||
|
REPOSITORY: ${{ github.repository }}
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
jobs:
|
jobs:
|
||||||
ts_lint:
|
ts_lint:
|
||||||
|
|
3
.github/workflows/test.yaml
vendored
3
.github/workflows/test.yaml
vendored
|
@ -6,7 +6,8 @@ on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [ element-web-notify ]
|
types: [ element-web-notify ]
|
||||||
env:
|
env:
|
||||||
# This must be set for fetchdep.sh to get the right branch
|
# These must be set for fetchdep.sh to get the right branch
|
||||||
|
REPOSITORY: ${{ github.repository }}
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
|
@ -29,7 +29,7 @@ getPRInfo() {
|
||||||
if [ -n "$number" ]; then
|
if [ -n "$number" ]; then
|
||||||
echo "Getting info about a PR with number $number"
|
echo "Getting info about a PR with number $number"
|
||||||
|
|
||||||
apiEndpoint="https://api.github.com/repos/matrix-org/matrix-react-sdk/pulls/"
|
apiEndpoint="https://api.github.com/repos/${REPOSITORY:-"vector-im/element-web"}/pulls/"
|
||||||
apiEndpoint+=$number
|
apiEndpoint+=$number
|
||||||
|
|
||||||
head=$(curl $apiEndpoint | jq -r '.head.label')
|
head=$(curl $apiEndpoint | jq -r '.head.label')
|
||||||
|
|
Loading…
Add table
Reference in a new issue