Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub Actions for notifications #6

Open
dhimmel opened this issue May 24, 2020 · 1 comment
Open

Use GitHub Actions for notifications #6

dhimmel opened this issue May 24, 2020 · 1 comment

Comments

@dhimmel
Copy link
Owner

dhimmel commented May 24, 2020

It should be possible to do everything via GitHub actions, so users don't have to run anything locally.

Instead, a user would fork dhimmel/hackjohn and edit the parameters. Then scheduled cron actions would take care of the rest.

@dhimmel
Copy link
Owner Author

dhimmel commented May 24, 2020

One option is to use a GitHub Issues thread for notifications. Some code in case someone wants to develop the idea further:

    - name: Issue Comment
      uses: actions/github-script@v1
      with:
        github-token: ${{secrets.GITHUB_TOKEN}}
        script: |
          github.search.issuesAndPullRequests({
            q: '"Hackjohn Notifications Thread" in:title'
          })
          github.issues.createComment({
            issue_number: context.issue.number,
            owner: context.repo.owner,
            repo: context.repo.repo,
            body: 'insert hackjohn output here'
          })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant