-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into luke/relay-workflows
- Loading branch information
Showing
107 changed files
with
1,940 additions
and
747 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
# This is a basic workflow adding every issue in this repo to the Obol Project Management Board. | ||
name: Add Issue To Project | ||
|
||
# Controls when the workflow will run - new issues | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
# This workflow contains a single job called "build" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
# Steps | ||
steps: | ||
- name: Add Issue To Project | ||
uses: actions/[email protected] | ||
with: | ||
# URL of the project to add issues to | ||
project-url: https://github.com/orgs/ObolNetwork/projects/7 | ||
# A GitHub personal access token with write access to the project, need org admin's token with repo and project permissions, need to store the token outside the script if public | ||
github-token: ${{ secrets.GH_ORG_ADMIN_SECRET }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Label PR | ||
on: | ||
pull_request: | ||
types: [ opened, reopened, edited, synchronize ] | ||
|
||
jobs: | ||
label_pr: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Calculate branch label | ||
id: branch-label | ||
run: | | ||
# Short name for current branch. For PRs, use target branch (base ref) | ||
# Reference: https://stackoverflow.com/questions/60300169/how-to-get-branch-name-on-github-action | ||
GIT_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} | ||
echo "GIT_BRANCH=$GIT_BRANCH" | ||
LABEL="" | ||
if [[ $GIT_BRANCH = main ]]; then | ||
# Do not label main branch PRs | ||
LABEL="skip" | ||
elif [[ $GIT_BRANCH = main* ]]; then | ||
# Label release branches | ||
LABEL="branch-release" | ||
else | ||
# Label all other branches as invalid | ||
LABEL="branch-invalid" | ||
fi | ||
echo "label=$LABEL" >> $GITHUB_OUTPUT | ||
- uses: actions/github-script@v6 | ||
if: steps.branch-label.outputs.label != 'skip' | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ["${{steps.branch-label.outputs.label}}"] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- main* | ||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
|
@@ -16,7 +16,7 @@ jobs: | |
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20.2' | ||
go-version: '1.20.3' | ||
- uses: pre-commit/[email protected] | ||
|
||
- name: notify failure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.