Skip to content

Commit 6c00d51

Browse files
author
Ashishkasaudhan
committed
first try
1 parent db4f38c commit 6c00d51

40 files changed

Lines changed: 1617 additions & 58 deletions

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
blank_issues_enabled: true
3+
contact_links:
4+
- name: General MIRSG issue
5+
url: https://github.com/UCL-MIRSG/MIRSG/issues/new/choose
6+
about: >-
7+
If your issue is a general MIRSG issue rather than this repo specific.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
name: Problem
3+
description: Track anything that is broken, wrong or needs fixing
4+
labels:
5+
- problem
6+
projects:
7+
- UCL-MIRSG/3
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: >-
12+
Add any new problem - this may be a technical bug, service incident,
13+
process problem or general issue that needs to be resolved.
14+
- type: textarea
15+
id: short_description
16+
attributes:
17+
label: Short Description
18+
description: Briefly summarise the problem.
19+
placeholder: What is the problem? What is the impact?
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: evidence
24+
attributes:
25+
label: Evidence/Steps to Reproduce
26+
description: >-
27+
Can you reproduce the problem? If so, what are the steps to reproduce
28+
it? Otherwise, provide any evidence that helps to understand the
29+
problem.
30+
placeholder: e.g. List of steps, screenshots, logs, error messages, etc.
31+
validations:
32+
required: false
33+
- type: textarea
34+
id: acceptance_criteria
35+
attributes:
36+
label: Acceptance Criteria/Expected Behaviour
37+
description: >-
38+
What is the expected behaviour once the problem is resolved? How will
39+
you know when the problem is fixed?
40+
placeholder:
41+
e.g. "When the problem is resolved, the system should do x, y, z"
42+
validations:
43+
required: false
44+
- type: textarea
45+
id: details
46+
attributes:
47+
label: Details
48+
description: Provide any additional information that may be useful.
49+
placeholder:
50+
e.g. Additional context, links to documentation and diagrams, etc.
51+
- type: markdown
52+
attributes:
53+
value: |-
54+
Thank you for identifying this problem!
55+
---
56+
Fill in the below once the problem has a resolution:
57+
- type: textarea
58+
id: resolution
59+
attributes:
60+
label: Resolution
61+
description: >-
62+
What was done to resolve the problem? What was the root cause? Reference
63+
any related issues or pull requests.
64+
placeholder: "e.g. The problem was resolved by doing x, y, z in #123"
65+
validations:
66+
required: false
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: Question
3+
description: Ask a question, seek advice or ask for feedback
4+
labels:
5+
- question
6+
projects:
7+
- UCL-MIRSG/3
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: >-
12+
Ask any question, seek advice or ask for feedback on a proposed approach
13+
before starting work.
14+
- type: textarea
15+
id: short_description
16+
attributes:
17+
label: Short Description
18+
description: Briefly summarise the question.
19+
placeholder: What is the question? What are you looking for?
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: details
24+
attributes:
25+
label: Details
26+
description: Provide any additional information that may be useful.
27+
placeholder:
28+
e.g. Additional context, links to documentation and diagrams, etc.
29+
validations:
30+
required: false
31+
- type: markdown
32+
attributes:
33+
value: >-
34+
Thanks for asking this question! --- Fill in the below once the question
35+
is answered:
36+
- type: textarea
37+
id: next_steps
38+
attributes:
39+
label: Next Steps/Accepted Response
40+
description: >-
41+
What was the answer to the question? What are the next steps? Reference
42+
any related issues or pull requests.
43+
placeholder:
44+
"e.g. We decided to do x, y, z in #167 to address this question"
45+
validations:
46+
required: false

.github/ISSUE_TEMPLATE/work.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
name: Work
3+
description: Track any work to be done
4+
labels:
5+
- work
6+
projects:
7+
- UCL-MIRSG/3
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: >-
12+
Add any new work item - this may be a feature, story, requirement,
13+
service request or general task.
14+
- type: textarea
15+
id: short_description
16+
attributes:
17+
label: Short Description
18+
description: Briefly summarise the work to be done.
19+
placeholder: What needs to be done?
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: acceptance_criteria
24+
attributes:
25+
label: Acceptance Criteria
26+
description: >-
27+
What must be done for this work to be considered complete? These can be
28+
a checklist of tasks or a description of the expected outcome. If
29+
complex, consider creating new issues for each task and linking them
30+
here.
31+
placeholder: "- [ ] e.g. x is done in y way so that z can be achieved"
32+
validations:
33+
required: false
34+
- type: textarea
35+
id: dependencies
36+
attributes:
37+
label: Dependencies
38+
description: >-
39+
What other work does this depend on? Enter the github issue number in
40+
the form `- [ ] #356` or `- [ ] UCL-MIRSG/repo-name#243` to make a
41+
checklist.
42+
placeholder: "- [ ] #356"
43+
validations:
44+
required: false
45+
- type: textarea
46+
id: details
47+
attributes:
48+
label: Details
49+
description: Provide any additional information that may be useful.
50+
placeholder:
51+
e.g. Additional context, links to documentation and diagrams, etc.
52+
validations:
53+
required: false

.github/workflows/links.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Links
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- renovate/**
9+
pull_request:
10+
11+
jobs:
12+
links:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 2
15+
steps:
16+
- name: Checkout source
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+
19+
- uses: ./actions/links
20+
with:
21+
app-id: ${{ vars.LINKS_APP_ID }}
22+
app-pem: ${{ secrets.LINKS_PRIVATE_KEY }}
23+
lychee-args:
24+
--no-progress --verbose . --exclude
25+
https://github.com/orgs/UCL-MIRSG/projects/3

.github/workflows/linting.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Linting
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- renovate/**
9+
pull_request:
10+
11+
jobs:
12+
linting:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout source
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17+
18+
- uses: ./actions/linting
19+
with:
20+
pre-commit-config: ./.pre-commit-config.yaml
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Manage issues on the projects board
3+
4+
on:
5+
issues:
6+
types:
7+
- opened
8+
9+
jobs:
10+
add-issue-to-project:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout source
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
15+
16+
- uses: ./actions/add-to-project
17+
with:
18+
app-id: ${{ secrets.APP_ID }}
19+
app-pem: ${{ secrets.APP_PEM }}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
name: Safe Settings Sync
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
paths:
9+
- safe-settings/**
10+
- .github/workflows/safe-settings.yaml
11+
schedule:
12+
- cron: 0 */4 * * *
13+
workflow_dispatch: {}
14+
15+
concurrency:
16+
cancel-in-progress: true
17+
group: >-
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+
20+
jobs:
21+
safe-settings-sync:
22+
runs-on: ubuntu-latest
23+
env:
24+
SAFE_SETTINGS_VERSION: 2.1.14
25+
SAFE_SETTINGS_CODE_DIR: .safe-settings-code
26+
steps:
27+
- name: Checkout source
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
29+
30+
- name: Checkout GitHub Safe-Settings repository
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
32+
with:
33+
path: ${{ env.SAFE_SETTINGS_CODE_DIR }}
34+
ref: ${{ env.SAFE_SETTINGS_VERSION }}
35+
repository: github/safe-settings
36+
37+
- name: Setup Node.js
38+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
39+
with:
40+
cache-dependency-path:
41+
${{ env.SAFE_SETTINGS_CODE_DIR }}/package-lock.json
42+
cache: npm
43+
node-version-file: ${{ env.SAFE_SETTINGS_CODE_DIR }}/.nvmrc
44+
45+
- name: Install dependencies
46+
run: npm install
47+
working-directory: ${{ env.SAFE_SETTINGS_CODE_DIR }}
48+
49+
- name: Run application
50+
run: npm run full-sync
51+
working-directory: ${{ env.SAFE_SETTINGS_CODE_DIR }}
52+
env:
53+
ADMIN_REPO: .github
54+
APP_ID: ${{ vars.SAFE_SETTINGS_APP_ID }}
55+
BLOCK_REPO_RENAME_BY_HUMAN: false
56+
CONFIG_PATH: safe-settings
57+
DEPLOYMENT_CONFIG_FILE:
58+
${{ github.workspace }}/safe-settings/deployment.yaml
59+
ENABLE_PR_COMMENT: true
60+
GH_ORG: ${{ vars.SAFE_SETTINGS_GH_ORG }}
61+
GITHUB_CLIENT_ID: ${{ vars.SAFE_SETTINGS_GITHUB_CLIENT_ID }}
62+
GITHUB_CLIENT_SECRET:
63+
${{ secrets.SAFE_SETTINGS_GITHUB_CLIENT_SECRET }}
64+
LOG_LEVEL: trace
65+
PRIVATE_KEY: ${{ secrets.SAFE_SETTINGS_PRIVATE_KEY }}
66+
SETTINGS_FILE_PATH: organisation.yaml

.github/workflows/tags.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: Bump Version Tag
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- "**/*"
10+
- "!**/*.json"
11+
- "!**/*.json5"
12+
- "!**/*.md"
13+
- "!.github/**"
14+
- "!.gitignore"
15+
- "!.pre-commit-config.yaml"
16+
workflow_dispatch:
17+
18+
jobs:
19+
tags:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
steps:
24+
- name: Checkout source
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Bump version and push tag
30+
id: bump-version
31+
uses: anothrNick/github-tag-action@f278d49d30cdd8775cc3e7dd00b5ee11686ee297 # v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
WITH_V: true
35+
36+
- name: Extract major tag
37+
id: extract-major
38+
run: >-
39+
echo major_tag="$(echo ${{ steps.bump-version.outputs.new_tag }} | cut
40+
-d'.' -f1)" >> "$GITHUB_OUTPUT"
41+
42+
# this is done manually as need a non-annotated tag
43+
# TODO: replace with https://github.com/actions/publish-action
44+
- name: Update major tag
45+
run: |-
46+
git config user.name github-actions
47+
git config user.email github-actions@github.com
48+
git tag --force ${{ steps.extract-major.outputs.major_tag }} \
49+
${{ steps.bump-version.outputs.new_tag }}
50+
git push origin ${{ steps.extract-major.outputs.major_tag }} --force

0 commit comments

Comments
 (0)