Skip to content

Commit 1dc2dd7

Browse files
committed
Merge branch 'gh-pages' of https://github.com/hackforla/website into create-new-page-to-navigate-to-how-to-join-slack-channels-7988
2 parents 9fb166b + 13db9aa commit 1dc2dd7

32 files changed

+2270
-1734
lines changed

.github/workflows/activity-history-post.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Member Activity Trigger
2+
3+
on:
4+
workflow_call:
5+
issues:
6+
types: [opened, assigned, unassigned, closed, reopened]
7+
issue_comment:
8+
types: [created]
9+
pull_request_target:
10+
types: [opened, closed, reopened]
11+
pull_request_review:
12+
types: [submitted]
13+
pull_request_review_comment:
14+
types: [created]
15+
16+
# Limits default token permissions
17+
permissions:
18+
contents: read
19+
issues: write
20+
pull-requests: write
21+
22+
jobs:
23+
Gather-Activity-Event-Information:
24+
runs-on: ubuntu-latest
25+
if: github.repository == 'hackforla/website'
26+
steps:
27+
- uses: actions/checkout@v5
28+
29+
- name: Gather Event Details
30+
id: gather-event-details
31+
uses: actions/github-script@v7
32+
with:
33+
github-token: ${{ secrets.HACKFORLA_GRAPHQL_TOKEN }}
34+
script: |
35+
const script = require('./github-actions/activity-trigger/activity-trigger.js');
36+
const activities = script({github, context});
37+
return activities;
38+
39+
- if: ${{ steps.gather-event-details.outputs.result != '[]' }}
40+
name: Post to Skills Issue
41+
id: post-to-skills-issue
42+
uses: actions/github-script@v7
43+
with:
44+
github-token: ${{ secrets.HACKFORLA_GRAPHQL_TOKEN }}
45+
script: |
46+
const activities = JSON.parse(${{ steps.gather-event-details.outputs.result }});
47+
const script = require('./github-actions/activity-trigger/post-to-skills-issue.js');
48+
for (const activity of activities) {
49+
await script({github, context}, activity);
50+
}

.github/workflows/codeql-create-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818

1919
# Fetch Alerts
2020
- name: Fetch Alerts

.github/workflows/codeql-scan-job.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@v5
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL

.github/workflows/issue-trigger.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: ${{ github.event.action == 'opened' || github.event.action == 'transferred' }}
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313
# Checks if user is on the 'website-write' team, else halts workflow
1414
- name: Check Team Membership
1515
id: check-team-membership
@@ -20,7 +20,7 @@ jobs:
2020
const username = '${{ github.actor }}'
2121
const team = 'website-write'
2222
const script = require('./github-actions/utils/check-team-membership.js')
23-
return script(github, username, team)
23+
return script(github, context, username, team)
2424
2525
# If user is team member: checks if the issue has required labels
2626
- if: ${{ steps.check-team-membership.outputs.result == 'true' }}
@@ -50,7 +50,7 @@ jobs:
5050
runs-on: ubuntu-latest
5151
if: ${{ github.event.action == 'assigned' }}
5252
steps:
53-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@v5
5454
# Checks if the issue has the required roles (front end, back end/devOps, design, or user research)
5555
- name: Check Labels Prelim
5656
uses: actions/github-script@v7
@@ -79,7 +79,7 @@ jobs:
7979
runs-on: ubuntu-latest
8080
if: "${{ github.event.action == 'labeled' && github.event.label.name == 'Feature: Feature Branch' }}"
8181
steps:
82-
- uses: actions/checkout@v4
82+
- uses: actions/checkout@v5
8383
- name: Add feature branch comment
8484
uses: actions/github-script@v7
8585
with:
@@ -91,7 +91,7 @@ jobs:
9191
runs-on: ubuntu-latest
9292
if: "${{ github.event.action == 'unlabeled' && github.event.label.name == 'Feature: Feature Branch' }}"
9393
steps:
94-
- uses: actions/checkout@v4
94+
- uses: actions/checkout@v5
9595
- name: Hide feature branch comment
9696
uses: actions/github-script@v7
9797
with:

.github/workflows/lint-scss.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout Code
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
# Full git history is needed to get a proper list of changed files within `super-linter`
1919
fetch-depth: 0

.github/workflows/move-closed-issues.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
Move-Closed-Issues:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212

1313
# 1: Sort closed issues based on labels
1414
- name: Sort Closed Issues by Label

.github/workflows/pr-instructions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
Add-Pull-Request-Instructions:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414

1515
# Create the message to post
1616
- name: Create Instruction

.github/workflows/pr-verification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
Check-Team-Membership:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
- uses: actions/github-script@v7
1212
with:
1313
github-token: ${{ secrets.HACKFORLA_ADMIN_TOKEN }}

.github/workflows/pull-request-trigger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
if: ${{ github.event.action == 'opened' || github.event.action == 'edited' }}
1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Check for keyword and issue number
1717
id: check-for-keyword

0 commit comments

Comments
 (0)