Skip to content

Commit

Permalink
Quick/repeatable agenda creation
Browse files Browse the repository at this point in the history
  • Loading branch information
lornajane committed Nov 20, 2024
1 parent 5d5927a commit 0c947c8
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/templates/agenda.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
This discussion is about a meeting of the OpenAPI Overlays group.
We meet on alternate Tuesdays at 08:00 Pacific time, and this is a public meeting.



Meeting link:



This meeting is covered by the [OpenAPI Initiative Code of Conduct](https://github.com/OAI/Arazzo-Specification/?tab=coc-ov-file#readme).



Add comments to this discussion to add items to the agenda for the meeting.

39 changes: 39 additions & 0 deletions .github/workflows/agenda.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Create meeting template

on:
workflow_dispatch: {}

jobs:
create-discussion:
permissions:
discussions: write
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Get agenda text from template
id: get-agenda
run: |
echo 'AGENDA<<EOF' >> $GITHUB_ENV
cat .github/templates/agenda.md >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Create discussion with agenda
id: create-repository-discussion
uses: octokit/graphql-action@v2.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
variables:
|
body: "${{ env.AGENDA }}"
title: "Overlays Meeting"
repositoryId: 'MDEwOlJlcG9zaXRvcnkzNTk4NjU5MDI='
categoryId: 'DIC_kwDOFXMeLs4COVB8'
query: |
mutation CreateDiscussionMutation ($title: String!, $body: String!, $repositoryId: ID!, $categoryId: ID!) {
createDiscussion(input: { title: $title, body: $body, repositoryId: $repositoryId, categoryId: $categoryId }) {
discussion {
title
}
}
}

0 comments on commit 0c947c8

Please sign in to comment.