Skip to content

[INFRA] start using tributors #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"projectName": "CPP_ROI",
"projectOwner": "cpp-lln-lab",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 100,
"commit": true,
"commitConvention": "none",
"contributors": [
{
"login": "marcobarilari",
"name": "Marco Barilari",
"contributions": [
"code",
"doc",
"ideas"
],
"profile": "https://github.com/marcobarilari",
"avatar_url": [
"https://avatars.githubusercontent.com/u/38101692?v=4"
]
},
{
"login": "Remi-Gau",
"name": "Remi Gau",
"contributions": [
"code",
"doc",
"infra",
"design",
"review",
"bug",
"test"
],
"profile": "https://github.com/Remi-Gau",
"avatar_url": [
"https://avatars.githubusercontent.com/u/6961185?v=4"
]
},
{
"login": "JeanneCaronGuyon ",
"name": "Jeanne Caron-Guyon ",
"avatar_url": "https://avatars.githubusercontent.com/u/8718798?v=4",
"profile": "https://github.com/JeanneCaronGuyon",
"contributions": [
"ideas",
"userTesting"
]
},
{
"login": "iqrashahzad14",
"name": "Iqra Shahzad",
"avatar_url": "https://avatars.githubusercontent.com/u/75671348?v=4",
"profile": "https://github.com/iqrashahzad14",
"contributions": [
"userTesting"
]
},
{
"login": "fedefalag",
"name": "Federica Falagiarda",
"avatar_url": "https://avatars2.githubusercontent.com/u/50373329?v=4",
"profile": "https://github.com/fedefalag",
"contributions": [
"bug",
"userTesting"
]
},
{
"login": "CerenB",
"name": "Ceren Battal",
"contributions": [
"code",
"review",
"userTesting"
],
"profile": "https://github.com/CerenB",
"avatar_url": [
"https://avatars.githubusercontent.com/u/10451654?v=4"
]
}
],
"contributorsPerLine": 7
}
2 changes: 1 addition & 1 deletion .github/workflows/miss_hit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
fetch-depth: 1

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/run_tests_matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ on:
branches:
- dev
- main
paths:
- '**.m'
- '.github/workflows/*.m'
pull_request:
branches: ['*']
paths:
- '**.m'
- '.github/workflows/*.m'
schedule:
- cron: "1 1 1 * *"

Expand Down
90 changes: 90 additions & 0 deletions .github/workflows/update-contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: allcontributors-auto-detect

on:
schedule:
# Run nightly 1am
- cron: 0 1 * * *

# You can also have it check for changes on each push to master
push:
branches:
- master
- dev

jobs:
Update:
name: Generate
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Tributors Update

# Important! Update to release https://github.com/con/tributors
uses: con/tributors@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:

# Single text list (space separated) of parsers, leave unset to auto-detect
parsers: unset

# INFO, DEBUG, ERROR, WARNING, etc.
log_level: DEBUG

# If files already exist and an init is done, force overwrite
force: true

# the minimum number of contributions required to add a user
threshold: 1

- name: Checkout New Branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_AGAINST: "master"
run: |
printf "GitHub Actor: ${GITHUB_ACTOR}\n"
export BRANCH_FROM="contributors/update-$(date '+%Y-%m-%d')"
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"

BRANCH_EXISTS=$(git ls-remote --heads origin ${BRANCH_FROM})
if [[ -z ${BRANCH_EXISTS} ]]; then
printf "Branch does not exist in remote.\n"
else
printf "Branch already exists in remote.\n"
exit 1
fi
git branch
git checkout -b "${BRANCH_FROM}" || git checkout "${BRANCH_FROM}"
git branch

git config --global user.name "github-actions"
git config --global user.email "github-actions@users.noreply.github.com"

git status

# Make sure to add new files or path/*
git add .tributors
git add README.md
git add .all-contributorsrc

if git diff-index --quiet HEAD --; then
export OPEN_PULL_REQUEST=0
printf "No changes\n"
else
export OPEN_PULL_REQUEST=1
printf "Changes\n"
git commit -a -m "Automated deployment to update contributors $(date '+%Y-%m-%d')"
git push origin "${BRANCH_FROM}"
fi
echo "::set-env name=OPEN_PULL_REQUEST::${OPEN_PULL_REQUEST}"
echo "::set-env name=PULL_REQUEST_FROM_BRANCH::${BRANCH_FROM}"
echo "::set-env name=PULL_REQUEST_TITLE::[tributors] ${BRANCH_FROM}"
echo "::set-env name=PULL_REQUEST_BODY::Updating tributors automated pull request."

- name: Open Pull Request
uses: vsoch/pull-request-action@1.0.6
if: ${{ env.OPEN_PULL_REQUEST == '1' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_BRANCH: "master"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*.mat
*.html

node_modules

# ignore content of the build folder of the doc
docs/build/*

Expand Down
26 changes: 26 additions & 0 deletions .tributors
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"marcobarilari": {
"name": "Marco Barilari",
"blog": "https://github.com/marcobarilari"
},
"Remi-Gau": {
"name": "Remi Gau",
"blog": "https://github.com/Remi-Gau"
},
"JeanneCaronGuyon ": {
"name": "Jeanne Caron-Guyon ",
"blog": "https://github.com/JeanneCaronGuyon"
},
"iqrashahzad14": {
"name": "Iqra Shahzad",
"blog": "https://github.com/iqrashahzad14"
},
"fedefalag": {
"name": "Federica Falagiarda",
"blog": "https://github.com/fedefalag"
},
"CerenB": {
"name": "Ceren Battal",
"blog": "https://github.com/CerenB"
}
}
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![miss_hit](https://github.com/cpp-lln-lab/CPP_ROI/actions/workflows/miss_hit.yml/badge.svg)](https://github.com/cpp-lln-lab/CPP_ROI/actions/workflows/miss_hit.yml)
[![tests and coverage with matlab](https://github.com/cpp-lln-lab/CPP_ROI/actions/workflows/run_tests_matlab.yml/badge.svg)](https://github.com/cpp-lln-lab/CPP_ROI/actions/workflows/run_tests_matlab.yml)
[![codecov](https://codecov.io/gh/cpp-lln-lab/CPP_ROI/branch/main/graph/badge.svg?token=8IoRQtbFUV)](https://codecov.io/gh/cpp-lln-lab/CPP_ROI)
![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)

# CPP ROI

Expand Down Expand Up @@ -69,13 +70,31 @@ as a submodule, and intitialized when running `initCppSpm`.
Probabilistic Maps of Visual Topography in Human Cortex. Cerebral
cortex (New York, N.Y. : 1991), 25(10), 3911–3931.
https://doi.org/10.1093/cercor/bhu277
- the probabilistic functional atlas of human occipito-temporal visual cortex
- Rosenke, M., van Hoof, R., van den Hurk, J., Grill-Spector, K., & Goebel, R. (2021).
A Probabilistic Functional Atlas of Human Occipito-Temporal Visual Cortex.
Cerebral cortex (New York, N.Y. : 1991), 31(1), 603–619.
https://doi.org/10.1093/cercor/bhaa246
- the probabilistic functional atlas of human occipito-temporal visual
cortex
- Rosenke, M., van Hoof, R., van den Hurk, J., Grill-Spector, K., &
Goebel, R. (2021). A Probabilistic Functional Atlas of Human
Occipito-Temporal Visual Cortex. Cerebral cortex (New York, N.Y. :
1991), 31(1), 603–619. https://doi.org/10.1093/cercor/bhaa246

Also includes:

- Yeo's 7 networks "atlas"
<!-- add REF and URL -->

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/marcobarilari"><img src="https://avatars.githubusercontent.com/u/38101692?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Marco Barilari</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=marcobarilari" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/Remi-Gau"><img src="https://avatars.githubusercontent.com/u/6961185?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Remi Gau</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=Remi-Gau" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/fedefalag"><img src="https://avatars2.githubusercontent.com/u/50373329?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Federica Falagiarda</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/issues?q=author%3Afedefalag" title="Bug reports">🐛</a> <a href="#userTesting-fedefalag" title="User Testing">📓</a></td>
<td align="center"><a href="https://github.com/CerenB"><img src="https://avatars.githubusercontent.com/u/10451654?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ceren Battal</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=CerenB" title="Code">💻</a></td>
</tr>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->