Skip to content

Commit ab6ac38

Browse files
committed
gh action begin
1 parent eb94574 commit ab6ac38

2 files changed

Lines changed: 67 additions & 62 deletions

File tree

.github/workflows/main.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Record event on devprogramresources
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "main" branch
8+
push:
9+
paths:
10+
- Prompts/**
11+
# branches: [ "main" ]
12+
# pull_request:
13+
# branches: [ "main" ]
14+
# issues:
15+
# types: [opened, closed]
16+
# branches: main
17+
# pull_request_target:
18+
# types: [opened, closed]
19+
# branches: main
20+
21+
# Allows you to run this workflow manually from the Actions tab
22+
workflow_dispatch:
23+
24+
jobs:
25+
deployment:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Log payload
29+
env:
30+
GITHUB_CONTEXT: ${{ toJson(github) }}
31+
run: |
32+
echo "$GITHUB_CONTEXT"
33+
- name: Contact CR
34+
id: myRequest
35+
uses: fjogeleit/http-request-action@v1.8.1
36+
with:
37+
url: ${{ format('https://{0}.service-now.com/api/x_snc_ehd_servic_0/githubpromptlibrary', secrets.SN_INSTANCE_NAME) }}
38+
method: 'POST'
39+
contentType: application/json
40+
data: ${{ toJson(github) }}
41+
username: ${{ secrets.ADMIN_USERNAME }}
42+
password: ${{ secrets.ADMIN_PASSWORD }}
43+
- name: Show Response
44+
run: echo ${{ steps.myRequest.outputs.response }}
45+
46+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
47+
# jobs:
48+
# # This workflow contains a single job called "build"
49+
# build:
50+
# # The type of runner that the job will run on
51+
# runs-on: ubuntu-latest
52+
53+
# # Steps represent a sequence of tasks that will be executed as part of the job
54+
# steps:
55+
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
56+
# - uses: actions/checkout@v3
57+
58+
# # Runs a single command using the runners shell
59+
# - name: Run a one-line script
60+
# run: echo Hello, world!
61+
62+
# # Runs a set of commands using the runners shell
63+
# - name: Run a multi-line script
64+
# run: |
65+
# echo Add other actions to build,
66+
# echo test, and deploy your project.

README.md

Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,3 @@
11
# ServiceNow-GenAi-Prompt-Library
22

3-
## tables
4-
5-
- [X] prompt table (task: comment editor)
6-
- [X] prompt
7-
- [X] the author (opened_by task)
8-
- [X] score aggregate
9-
- [X] category
10-
- [X] instructions/description (description task)
11-
- [X] to display (for category winners)
12-
- [X] vote table
13-
- [X] prompt reference
14-
- [X] user reference
15-
- [X] response table
16-
- [X] prompt reference
17-
- [X] categories/bounties table
18-
- [X] name
19-
- [X] description
20-
- [X] keywords/key phrases/important keywords
21-
- [X] favorite table
22-
- [X] prompt reference
23-
- [X] user reference
24-
25-
- [ ] LLM table?
26-
27-
## UI
28-
29-
- [ ] portal record
30-
- [ ] page
31-
- [ ] widget
32-
33-
## portal
34-
35-
### widget #1
36-
explaining wtf this is
37-
- submit button (opens modal)
38-
39-
### widget #2
40-
categories/bounties and the current chosen prompts for each
41-
keep it narrow, can be expanded if user interested
42-
- categories in a grid
43-
44-
clicked
45-
- show winners highlighted, then show others
46-
47-
### widget #3
48-
the prompt interface
49-
paginated. selecter.
50-
(top level per person)
51-
- Prompt (shortened)
52-
- exandable to show full
53-
- Category
54-
- Author
55-
- The original author (if forked)
56-
- How many contributors (if more than one)
57-
- Score
58-
- Upvote button
59-
- fork button
60-
61-
clicked
62-
- comments
63-
- history of forks with links
64-
-
3+
WIP

0 commit comments

Comments
 (0)