Skip to content

Commit

Permalink
chore(github-actions): improve GitHub actions (#6)
Browse files Browse the repository at this point in the history
- Improved GitHub actions for better project management.
- Updated the Dependabot configuration for daily package updates.
- Enhanced the CI workflow with concurrency control.
- Added a new PR Agent workflow to handle pull requests and user
comments(commented out).
  • Loading branch information
sergerdn authored Oct 10, 2023
1 parent 8d9a813 commit d2ce67a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates


version: 2
updates:
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
- package-ecosystem: pip # poetry package manager wil be used
directory: "/"
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#scheduleinterval
schedule:
interval: daily
open-pull-requests-limit: 10
versioning-strategy: increase
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ "develop", "master" ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pr_agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#name: PR Agent
#
#on:
# pull_request:
# issue_comment:
#jobs:
# pr_agent_job:
# runs-on: ubuntu-latest
# permissions:
# issues: write
# pull-requests: write
# contents: write
# name: Run pr agent on every pull request, respond to user comments
# steps:
# - name: PR Agent action step
# id: pragent
# uses: Codium-ai/pr-agent@main
# env:
# OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d2ce67a

Please sign in to comment.