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

Add BioArt #566

Merged
merged 4 commits into from
Dec 2, 2024
Merged

Add BioArt #566

merged 4 commits into from
Dec 2, 2024

Conversation

mgwalker
Copy link
Member

This PR adds a new Charlie listener for bio-art, bio art, or bioart that queries the NIH BioArt API and fetches a random image. The image is then posted to Slack along with the art title and the name of the creator. For example:

image (1)

There is a new OAuth scope required: files.write. I will update Charlie's configuration and the wiki after this PR is approved and before merging it.


Checklist:

  • Code has been formatted with prettier
  • The OAuth wiki
    page has been updated if Charlie needs any new OAuth events or scopes
  • The Environment Variables
    wiki page has been updated if new environment variables were introduced
    or existing ones changed
  • The dev wiki has been updated, e.g.:
  • If appropriate, the NIST 800-218 documentation has been updated

@mgwalker mgwalker requested a review from a team as a code owner November 21, 2024 17:59
const { data } = await axios.get(config.responseUrl);
return data;
},
async () => fetch(config.responseUrl).then((r) => r.json()),

Check warning

Code scanning / CodeQL

File data in outbound network request Medium

Outbound network request depends on
file data
.
@mgwalker mgwalker changed the base branch from main to remove-axios November 21, 2024 18:11
Base automatically changed from remove-axios to main November 21, 2024 19:08
@mgwalker mgwalker merged commit 6ee2b36 into main Dec 2, 2024
7 checks passed
@mgwalker mgwalker deleted the bio-art branch December 2, 2024 19:31
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

Successfully merging this pull request may close these issues.

1 participant