Skip to content

Commit

Permalink
Update Dependabot configuration and add a new workflow for auto-relea…
Browse files Browse the repository at this point in the history
…sing and tagging. Also, add a workflow for autofilling PR descriptions. Rename the logo file. These changes were made to improve the automation and organization of the repository.
  • Loading branch information
thejmitchener committed Nov 10, 2023
1 parent 632b9c6 commit d0bdacb
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# 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:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: npm
directory: '/'
schedule:
interval: "daily"
interval: daily
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
45 changes: 45 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Auto Tag and Release

on:
push:
pull_request:
types: [closed]
branches:
- main

jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'

- name: Bump version and push tag
id: bump_version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: true
RELEASE_BRANCHES: main

- name: Create GitHub Release
if: steps.bump_version.outputs.new_tag
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.bump_version.outputs.new_tag }}
release_name: Release ${{ steps.bump_version.outputs.new_tag }}
body: |
Changes in this Release:
${{ github.event.pull_request.title }}
${{ github.event.pull_request.body }}
draft: false
prerelease: false
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/openai-auto-pr-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Autofill PR description

on: pull_request

jobs:
openai-pr-description:
runs-on: ubuntu-22.04

steps:
- uses: platisd/openai-pr-description@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
File renamed without changes

0 comments on commit d0bdacb

Please sign in to comment.