Skip to content

added docs

added docs #1

Workflow file for this run

name: Go Build and PR Management
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
env:
GO_VERSION: '1.22.6'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Check out code
uses: actions/checkout@v4
- name: Build
run: go build ./...
- name: Test
run: go test ./...
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Message that will be displayed on users' first issue"
pr-message: "Message that will be displayed on users' first pull request"
welcome:
name: Welcome
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'opened'
steps:
- name: Welcome PR
uses: actions/github-script@v6
with:
script: |
const issueComment = `Hello @${{ github.actor }}, thank you for your contribution!`;
github.rest.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: issueComment
});