Skip to content

Commit 99187ad

Browse files
authored
🤖 Sync org-wide files to upstream repo (#14)
1 parent c64dec1 commit 99187ad

File tree

4 files changed

+83
-112
lines changed

4 files changed

+83
-112
lines changed

‎.github/labels.yml

Lines changed: 57 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -22,116 +22,121 @@
2222
# The `x:action/<value>` labels describe what sort of work the contributor will be engaged in when working on the issue
2323
- name: "x:action/create"
2424
description: "Work on something from scratch"
25-
color: "6f60d2"
25+
color: "ffffff"
2626

2727
- name: "x:action/fix"
2828
description: "Fix an issue"
29-
color: "6f60d2"
29+
color: "ffffff"
3030

3131
- name: "x:action/improve"
3232
description: "Improve existing functionality/content"
33-
color: "6f60d2"
33+
color: "ffffff"
3434

3535
- name: "x:action/proofread"
3636
description: "Proofread text"
37-
color: "6f60d2"
37+
color: "ffffff"
3838

3939
- name: "x:action/sync"
4040
description: "Sync content with its latest version"
41-
color: "6f60d2"
41+
color: "ffffff"
4242

4343
# The `x:knowledge/<value>` labels describe how much Exercism knowledge is required by the contributor
4444
- name: "x:knowledge/none"
4545
description: "No existing Exercism knowledge required"
46-
color: "604fcd"
46+
color: "ffffff"
4747

4848
- name: "x:knowledge/elementary"
4949
description: "Little Exercism knowledge required"
50-
color: "604fcd"
50+
color: "ffffff"
5151

5252
- name: "x:knowledge/intermediate"
5353
description: "Quite a bit of Exercism knowledge required"
54-
color: "604fcd"
54+
color: "ffffff"
5555

5656
- name: "x:knowledge/advanced"
5757
description: "Comprehensive Exercism knowledge required"
58-
color: "604fcd"
58+
color: "ffffff"
5959

6060
# The `x:module/<value>` labels indicate what part of Exercism the contributor will be working on
6161
- name: "x:module/analyzer"
6262
description: "Work on Analyzers"
63-
color: "5240c9"
63+
color: "ffffff"
6464

6565
- name: "x:module/concept"
6666
description: "Work on Concepts"
67-
color: "5240c9"
67+
color: "ffffff"
6868

6969
- name: "x:module/concept-exercise"
7070
description: "Work on Concept Exercises"
71-
color: "5240c9"
71+
color: "ffffff"
7272

7373
- name: "x:module/generator"
7474
description: "Work on Exercise generators"
75-
color: "5240c9"
75+
color: "ffffff"
7676

7777
- name: "x:module/practice-exercise"
7878
description: "Work on Practice Exercises"
79-
color: "5240c9"
79+
color: "ffffff"
8080

8181
- name: "x:module/representer"
8282
description: "Work on Representers"
83-
color: "5240c9"
83+
color: "ffffff"
8484

8585
- name: "x:module/test-runner"
8686
description: "Work on Test Runners"
87-
color: "5240c9"
87+
color: "ffffff"
8888

8989
# The `x:size/<value>` labels describe the expected amount of work for a contributor
9090
- name: "x:size/tiny"
9191
description: "Tiny amount of work"
92-
color: "4836bf"
92+
color: "ffffff"
9393

9494
- name: "x:size/small"
9595
description: "Small amount of work"
96-
color: "4836bf"
96+
color: "ffffff"
9797

9898
- name: "x:size/medium"
9999
description: "Medium amount of work"
100-
color: "4836bf"
100+
color: "ffffff"
101101

102102
- name: "x:size/large"
103103
description: "Large amount of work"
104-
color: "4836bf"
104+
color: "ffffff"
105105

106106
- name: "x:size/massive"
107107
description: "Massive amount of work"
108-
color: "4836bf"
108+
color: "ffffff"
109109

110110
# The `x:status/<value>` label indicates if there is already someone working on the issue
111111
- name: "x:status/claimed"
112112
description: "Someone is working on this issue"
113-
color: "4231af"
113+
color: "ffffff"
114114

115115
# The `x:type/<value>` labels describe what type of work the contributor will be engaged in
116116
- name: "x:type/ci"
117117
description: "Work on Continuous Integration (e.g. GitHub Actions workflows)"
118-
color: "3c2d9f"
118+
color: "ffffff"
119119

120120
- name: "x:type/coding"
121121
description: "Write code that is not student-facing content (e.g. test-runners, generators, but not exercises)"
122-
color: "3c2d9f"
122+
color: "ffffff"
123123

124124
- name: "x:type/content"
125125
description: "Work on content (e.g. exercises, concepts)"
126-
color: "3c2d9f"
126+
color: "ffffff"
127127

128128
- name: "x:type/docker"
129129
description: "Work on Dockerfiles"
130-
color: "3c2d9f"
130+
color: "ffffff"
131131

132132
- name: "x:type/docs"
133133
description: "Work on Documentation"
134-
color: "3c2d9f"
134+
color: "ffffff"
135+
136+
# This label can be added to accept PRs as part of Hacktoberfest
137+
- name: "hacktoberfest-accepted"
138+
description: "Make this PR count for hacktoberfest"
139+
color: "ff7518"
135140

136141
# This Exercism-wide label is added to all automatically created pull requests that help migrate/prepare a track for Exercism v3
137142
- name: "v3-migration 🤖"
@@ -143,38 +148,38 @@
143148
# https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml. #
144149
# ----------------------------------------------------------------------------------------- #
145150

146-
- name: "bug"
151+
- name: 'bug'
147152
description: "Something isn't working"
148-
color: "d73a4a"
153+
color: 'd73a4a'
149154

150-
- name: "documentation"
151-
description: "Improvements or additions to documentation"
152-
color: "0075ca"
155+
- name: 'documentation'
156+
description: 'Improvements or additions to documentation'
157+
color: '0075ca'
153158

154-
- name: "duplicate"
155-
description: "This issue or pull request already exists"
156-
color: "cfd3d7"
159+
- name: 'duplicate'
160+
description: 'This issue or pull request already exists'
161+
color: 'cfd3d7'
157162

158-
- name: "enhancement"
159-
description: "New feature or request"
160-
color: "a2eeef"
163+
- name: 'enhancement'
164+
description: 'New feature or request'
165+
color: 'a2eeef'
161166

162-
- name: "good first issue"
163-
description: "Good for newcomers"
164-
color: "7057ff"
167+
- name: 'good first issue'
168+
description: 'Good for newcomers'
169+
color: '7057ff'
165170

166-
- name: "help wanted"
167-
description: "Extra attention is needed"
168-
color: "008672"
171+
- name: 'help wanted'
172+
description: 'Extra attention is needed'
173+
color: '008672'
169174

170-
- name: "invalid"
175+
- name: 'invalid'
171176
description: "This doesn't seem right"
172-
color: "e4e669"
177+
color: 'e4e669'
173178

174-
- name: "question"
175-
description: "Further information is requested"
176-
color: "d876e3"
179+
- name: 'question'
180+
description: 'Further information is requested'
181+
color: 'd876e3'
177182

178-
- name: "wontfix"
179-
description: "This will not be worked on"
180-
color: "ffffff"
183+
- name: 'wontfix'
184+
description: 'This will not be worked on'
185+
color: 'ffffff'

‎.github/workflows/deploy.yml

Lines changed: 17 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,22 @@
1-
name: typescript-representer / deploy
1+
name: Deploy
22

33
on:
44
push:
5-
branches: [main, master]
5+
branches:
6+
- main
7+
workflow_dispatch:
68

7-
jobs:
8-
multiple-registries:
9-
runs-on: ubuntu-latest
10-
11-
env:
12-
ECR_REGISTRY: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
13-
14-
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # 2.3.4
17-
18-
- name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@154c24e1f33dbb5865a021c99f1318cfebf27b32 # 1.1.1
9+
permissions:
10+
contents: write
2011

21-
- name: Cache Docker layers
22-
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a # 2.1.3
23-
with:
24-
path: /tmp/.buildx-cache
25-
key: ${{ runner.os }}-buildx-${{ github.sha }}
26-
restore-keys: |
27-
${{ runner.os }}-buildx-
28-
29-
- name: Login to DockerHub
30-
uses: docker/login-action@f3364599c6aa293cdc2b8391b1b56d0c30e45c8a # 1.8.0
31-
with:
32-
username: ${{ secrets.DOCKERHUB_USERNAME }}
33-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
34-
35-
- name: Login to ECR
36-
uses: docker/login-action@f3364599c6aa293cdc2b8391b1b56d0c30e45c8a # 1.8.0
37-
with:
38-
registry: ${{ env.ECR_REGISTRY }}
39-
username: ${{ secrets.AWS_ECR_ACCESS_KEY_ID }}
40-
password: ${{ secrets.AWS_ECR_SECRET_ACCESS_KEY }}
41-
42-
- name: Build and push Docker image
43-
uses: docker/build-push-action@0db984c1826869dcd0740ff26ff75ff543238fd9 # 2.2.2
44-
with:
45-
context: .
46-
file: ./Dockerfile
47-
push: true
48-
tags: |
49-
${{ env.ECR_REGISTRY }}/${{ github.event.repository.name }}:production
50-
${{ env.ECR_REGISTRY }}/${{ github.event.repository.name }}:${{ github.sha }}
51-
${{ github.event.repository.full_name }}:latest
52-
${{ github.event.repository.full_name }}:${{ github.sha }}
53-
cache-from: type=local,src=/tmp/.buildx-cache
54-
cache-to: type=local,dest=/tmp/.buildx-cache
12+
jobs:
13+
build-and-push-image:
14+
if: github.repository_owner == 'exercism' # Stops this job from running on forks.
15+
uses: exercism/github-actions/.github/workflows/docker-build-push-image.yml@main
16+
secrets:
17+
AWS_ACCOUNT_ID: ${{secrets.AWS_ACCOUNT_ID}}
18+
AWS_REGION: ${{secrets.AWS_REGION}}
19+
AWS_ECR_ACCESS_KEY_ID: ${{secrets.AWS_ECR_ACCESS_KEY_ID}}
20+
AWS_ECR_SECRET_ACCESS_KEY: ${{secrets.AWS_ECR_SECRET_ACCESS_KEY}}
21+
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
22+
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}

‎.github/workflows/sync-labels.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@ name: Tools
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
67
paths:
78
- .github/labels.yml
89
- .github/workflows/sync-labels.yml
9-
schedule:
10-
- cron: 0 0 1 * *
1110
workflow_dispatch:
11+
schedule:
12+
- cron: 0 0 1 * * # First day of each month
13+
14+
permissions:
15+
issues: write
1216

1317
jobs:
1418
sync-labels:
15-
name: Sync labels
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
19-
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
uses: exercism/github-actions/.github/workflows/labels.yml@main

‎CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Exercism is a platform centered around empathetic conversation. We have a low to
66

77
## Seen or experienced something uncomfortable?
88

9-
If you see or experience abuse, harassment, discrimination, or feel unsafe or upset, please email abuse@exercism.io. We will take your report seriously.
9+
If you see or experience abuse, harassment, discrimination, or feel unsafe or upset, please email abuse@exercism.org. We will take your report seriously.
1010

1111
## Enforcement
1212

0 commit comments

Comments
 (0)