-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] use citation.cff to store affiliations of authors (#3754)
* basic citation file * add other authors * add orcid * add links to doc - [skip ci] * basic script * update citation cff * sort citation authors * add missing authors * fix authors * update AUTHORS.rst * add some affiliations * fix * add workflow to automate file changes * add header * add doc * update doc * fix * update files before doc build * update doc * fix name of lexer
- Loading branch information
Showing
11 changed files
with
858 additions
and
20 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
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,37 @@ | ||
# github action to update AUTHORS.rst file if CITATION.cff is updated | ||
name: update authors | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
update_authors: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: install dependencies | ||
run: python -m pip install --upgrade pip ruamel.yaml | ||
|
||
- name: update AUTHORS.rst and doc/changes/names.rst | ||
run: python maint_tools/citation_cff_maint.py | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: update AUTHORS.rst and doc/changes/names.rst | ||
base: main | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
delete-branch: true | ||
title: '[BOT] update AUTHORS.rst and doc/changes/names.rst' | ||
body: 'done via this [GitHub Action](https://github.com/${{ github.repository_owner }}/nilearn/blob/main/.github/workflows/update_authors.yml)' |
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,23 @@ | ||
--- | ||
name: validation of citation.cff | ||
|
||
on: | ||
push: | ||
branches: ['*'] | ||
pull_request: | ||
branches: ['*'] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
validate_cff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check whether the citation metadata from CITATION.cff is valid | ||
uses: citation-file-format/cffconvert-github-action@2.0.0 | ||
with: | ||
args: --validate |
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.