Skip to content

Commit 499ddb9

Browse files
authored
Merge branch 'STForScratch:main' into main
2 parents 08a5d59 + b8ddef5 commit 499ddb9

3 files changed

Lines changed: 33 additions & 3 deletions

File tree

.github/workflows/extract-classnames.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,23 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false
22+
fetch-depth: 0
2023

2124
- name: Set up Node.js
2225
uses: actions/setup-node@v4
2326
with:
2427
node-version: 20
2528

29+
- name: Generate GitHub App token
30+
id: generate_token
31+
uses: tibdex/github-app-token@v2
32+
with:
33+
app_id: ${{ secrets.APP_ID }}
34+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
35+
installation_id: ${{ secrets.INSTALLATION_ID }}
36+
2637
- name: Run extraction script
2738
run: node .github/scripts/extract-classnames.js
2839

@@ -39,10 +50,11 @@ jobs:
3950
if: steps.git-diff.outputs.changed == 'true'
4051
uses: peter-evans/create-pull-request@v6
4152
with:
53+
token: ${{ steps.generate_token.outputs.token }}
4254
commit-message: "Update class-names.json"
4355
branch: update-class-names
44-
title: "Update class names"
45-
body: "Automated update of class-names.json"
56+
title: "Update feature class names"
57+
body: "Automated update of class-names.json to keep track of class names used across all features."
4658
labels: automated
4759
assignees: rgantzos
4860
delete-branch: true

class-names.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
"advanced-search"
4242
]
4343
},
44+
{
45+
"className": "ste-formatted-newline-comment",
46+
"features": [
47+
"comment-newlines"
48+
]
49+
},
4450
{
4551
"className": "ste-mutual-following-container",
4652
"features": [
@@ -52,5 +58,17 @@
5258
"features": [
5359
"mutual-following"
5460
]
61+
},
62+
{
63+
"className": "ste-real-profile-date",
64+
"features": [
65+
"real-date"
66+
]
67+
},
68+
{
69+
"className": "ste-hide-ago-real-date",
70+
"features": [
71+
"real-date"
72+
]
5573
}
5674
]

0 commit comments

Comments
 (0)