https://github.com/compwa/update-pre-commit

Composite GitHub Action to auto-update .pre-commit-config.yaml

https://github.com/compwa/update-pre-commit

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

projection archival optimizer interactive profiles generic sequences observability autograding hacking
Last synced: 10 months ago · JSON representation

Repository

Composite GitHub Action to auto-update .pre-commit-config.yaml

Basic Info
  • Host: GitHub
  • Owner: ComPWA
  • Default Branch: main
  • Homepage:
  • Size: 19.5 KB
Statistics
  • Stars: 1
  • Watchers: 6
  • Forks: 0
  • Open Issues: 0
  • Releases: 4
Created over 4 years ago · Last pushed 11 months ago
Metadata Files
Readme

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

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

All Time
  • Total Commits: 16
  • Total Committers: 2
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.125
Past Year
  • Commits: 4
  • Committers: 1
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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
🔨 Maintenance (7) 🖱️ DX (6) ⚙️ Enhancement (5) ❗ Behavior (3) 🐛 Bug (3)

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
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 0.0%
Average: 32.0%
Forks count: 35.1%
Dependent repos count: 44.7%
Stargazers count: 48.2%
Last synced: 10 months ago

Dependencies

action.yml actions
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
.github/workflows/cd.yml actions
  • actions/checkout v4 composite
.github/workflows/pr-linting.yml actions
  • JulienKode/pull-request-name-linter-action v0.5.0 composite
  • actions/checkout v4 composite
  • docker://agilepathway/pull-request-label-checker latest composite
.github/workflows/release-drafter.yml actions
  • release-drafter/release-drafter v6 composite