Skip to content

Commit

Permalink
feat: create GH action to automatically link issues and PRs to the pr…
Browse files Browse the repository at this point in the history
…oject (#41)
  • Loading branch information
pranavmishra90 authored Dec 30, 2024
2 parents afba930 + f0b8baf commit 04b7027
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@ jobs:
path: ./docker/image_version.txt


- name: Matrix Message - Starting Build
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "Completed FacsimiLab image build for tag ${{ steps.package.outputs.content }}"
server: "matrix.drpranavmishra.com"
# - name: Matrix Message - Starting Build
# uses: s3krit/[email protected]
# with:
# room_id: ${{ secrets.MATRIX_ROOM_ID }}
# access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
# message: "Started FacsimiLab image build for tag ${{ steps.package.outputs.content }}"
# server: "matrix.drpranavmishra.com"

- name: Build Docker images
run: bash docker/build-all.sh

- name: Matrix Message - Completed Build
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "Completed FacsimiLab image build for tag ${{ steps.package.outputs.content }}"
server: "matrix.drpranavmishra.com"
# - name: Matrix Message - Completed Build
# uses: s3krit/[email protected]
# with:
# room_id: ${{ secrets.MATRIX_ROOM_ID }}
# access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
# message: "Completed FacsimiLab image build for tag ${{ steps.package.outputs.content }}"
# server: "matrix.drpranavmishra.com"


- name: Push Docker images
Expand All @@ -68,10 +68,10 @@ jobs:
echo "$builder_header" > testing/results/job_summary.md
cat testing/results/job_summary.md >> $GITHUB_STEP_SUMMARY
- name: Matrix Message - Completed GitHub Action
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "Completed FacsimiLab build github action for tag ${{ steps.package.outputs.content }}"
server: "matrix.drpranavmishra.com"
# - name: Matrix Message - Completed GitHub Action
# uses: s3krit/[email protected]
# with:
# room_id: ${{ secrets.MATRIX_ROOM_ID }}
# access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
# message: "Completed FacsimiLab build github action for tag ${{ steps.package.outputs.content }}"
# server: "matrix.drpranavmishra.com"
22 changes: 22 additions & 0 deletions .github/workflows/link-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add issues and PRs to Facsimilab Development project

on:
issues:
types:
- opened
pull_request:
types:
- opened

jobs:
add-to-project:
name: Add issue and PR to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
# You can target a project in a different organization
# to the issue
project-url: https://github.com/orgs/FacsimiLab/projects/1
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}

0 comments on commit 04b7027

Please sign in to comment.