https://github.com/compwa/update-pre-commit
Composite GitHub Action to auto-update .pre-commit-config.yaml
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.1%) to scientific vocabulary
Keywords from Contributors
Repository
Composite GitHub Action to auto-update .pre-commit-config.yaml
Statistics
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
- Releases: 4
Metadata Files
README.md
Auto-update pre-commit GitHub Action
A small custom, composite GitHub Action that is used by ComPWA repositories that pin constraints files (see update-pip-constraints). The action is enforced in these repositories through ComPWA/repo-maintenance.
Example workflow
```yaml jobs: pre-commit: name: pre-commit autoupdate runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Check if there are changes to pre-commit config run: git diff origin/main --exit-code -- .pre-commit-config.yml continue-on-error: true - name: Update hooks in pre-commit config if: success() uses: ComPWA/update-pre-commit@v1
push: name: Push changes runs-on: ubuntu-24.04 needs: - pre-commit steps: - uses: actions/checkout@v4 with: token: ${{ secrets.PAT }} # GITHUBTOKEN will not rerun checks after pushing to a PR branch - uses: actions/download-artifact@v5 with: path: pre-commit - run: | [[ -f .pre-commit-config.yaml ]] && mv -f .pre-commit-config.yaml .. working-directory: pre-commit - name: Commit and push changes run: | git remote set-url origin https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }} git config --global user.name "GitHub" git config --global user.email "noreply@github.com" git checkout -b ${GITHUBHEADREF} if [[ $(git status -s) ]]; then git add -A git commit -m "ci: upgrade pinned requirements (automatic)" git config pull.rebase true git pull origin ${GITHUBHEADREF} git push origin HEAD:${GITHUBHEAD_REF} fi ```
Owner
- Name: Common Partial Wave Analysis
- Login: ComPWA
- Kind: organization
- Email: compwa@ep1.rub.de
- Location: Germany
- Website: https://compwa.github.io
- Repositories: 36
- Profile: https://github.com/ComPWA
Making amplitude analysis reproducible, understandable, and easy to do
GitHub Events
Total
- Release event: 2
- Delete event: 3
- Push event: 9
- Pull request event: 7
- Create event: 8
Last Year
- Release event: 2
- Delete event: 3
- Push event: 9
- Pull request event: 7
- Create event: 8
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Remco de Boer | 2****r | 14 |
| dependabot[bot] | 4****] | 2 |
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 15
- Average time to close issues: N/A
- Average time to close pull requests: 2 minutes
- Total issue authors: 0
- Total pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 12
- Bot issues: 0
- Bot pull requests: 4
Past Year
- Issues: 0
- Pull requests: 8
- Average time to close issues: N/A
- Average time to close pull requests: 3 minutes
- Issue authors: 0
- Pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
Pull Request Authors
- redeboer (12)
- dependabot[bot] (4)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
github actions: ComPWA/update-pre-commit
Run pre-commit autoupdate and upload config file as artifact
-
Latest release: 1.0.3
published over 1 year ago
Rankings
Dependencies
- actions/setup-python v4 composite
- actions/upload-artifact v3 composite
- actions/checkout v4 composite
- JulienKode/pull-request-name-linter-action v0.5.0 composite
- actions/checkout v4 composite
- docker://agilepathway/pull-request-label-checker latest composite
- release-drafter/release-drafter v6 composite