{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":641025603,"defaultBranch":"main","name":"dns-text-record-monitor","ownerLogin":"Aricg","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-05-15T16:08:08.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1247498?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1684166889.538294","currentOid":""},"activityList":{"items":[{"before":"a4f7ff29e605ce92a62593e3b3adf8b2bc89c1c6","after":"f6b120185d1c991358b82e17fda28a4be01845e6","ref":"refs/heads/main","pushedAt":"2023-05-15T18:19:05.894Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"feature: Update README for clarity and detailed usage\n\nEnhanced the README file to provide a more comprehensive and structured guide for using the DNS Text Record Monitor. The changes include:\n- Rewording the introduction for better clarity and context.\n- Adding sections for different usage scenarios, such as running the code locally with default or custom arguments, and running the code via Docker with default or custom variables.\n- Providing a clearer explanation for viewing a domain's text records.\n- Including example output to illustrate what the script does.","shortMessageHtmlLink":"feature: Update README for clarity and detailed usage"}},{"before":"a8e94b08acd7abde08275aa5543067526fa9d19d","after":"a4f7ff29e605ce92a62593e3b3adf8b2bc89c1c6","ref":"refs/heads/main","pushedAt":"2023-05-15T18:11:12.226Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"feat: Add instructions for running the code locally and via Docker\n\nThis commit adds instructions to the README.md file on how to run the code locally with default and custom arguments, as well as via Docker. It includes example commands and outputs for better clarity.","shortMessageHtmlLink":"feat: Add instructions for running the code locally and via Docker"}},{"before":"6d57951c65c0dadadc671a7b14e8dbc9c74f4ca6","after":"a8e94b08acd7abde08275aa5543067526fa9d19d","ref":"refs/heads/main","pushedAt":"2023-05-15T17:43:34.075Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"feat: Add unit test workflow\n\nThis commit adds a new workflow file, unit_tests.yml, which sets up and runs Python application tests. The workflow is triggered on pushes to the main branch. It includes steps to check out the repository, set up Python 3.8, install dependencies (including dnspython), and run the tests using the python -m unittest command. This addition enhances the CI/CD pipeline by automating the execution of unit tests for the Python application.","shortMessageHtmlLink":"feat: Add unit test workflow"}},{"before":"fddfdf9639654ccdff889c4d4a373c8485407a24","after":"6d57951c65c0dadadc671a7b14e8dbc9c74f4ca6","ref":"refs/heads/main","pushedAt":"2023-05-15T17:37:27.077Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"Refactor: DNS monitor and add unit tests\n\nDetails:\n\n1. Refactored the dns_monitor.py script to better structure the code and improve readability. The main function is now split into three distinct functions: fetch_txt_records, process_txt_records, and monitor_dns. This allows for easier testing and understanding of each part of the process.\n\n2. for testing to work - move the argument parsing into the if __name__ == \"__main__\": block so it's only executed when the script is run directly.\n\n3. Added a unit test (test_dns_monitor.py) for the process_txt_records function, with a mock DNS resolver response. This ensures that our key processing logic works as expected.\n\n4. Added a .gitignore file to ignore Python cache files, which are not necessary to track in version control.","shortMessageHtmlLink":"Refactor: DNS monitor and add unit tests"}},{"before":"f16b4422d1415edb42f0950b0e0663f9a7c8823a","after":"fddfdf9639654ccdff889c4d4a373c8485407a24","ref":"refs/heads/main","pushedAt":"2023-05-15T17:10:25.178Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"refactor: Use command-line arguments for DNS monitoring\n\nThis commit refactors the dns_monitor.py script to use command-line arguments instead of hard-coded values or environment variables for the hostname, substring, and delay. It introduces an argparse module to parse the command-line arguments and assigns them to the corresponding variables. This change provides more flexibility and makes it easier to customize the script's behavior without modifying the code directly.","shortMessageHtmlLink":"refactor: Use command-line arguments for DNS monitoring"}},{"before":"522d45a381244582e1b07b520ffb5b91f27699d7","after":"f16b4422d1415edb42f0950b0e0663f9a7c8823a","ref":"refs/heads/main","pushedAt":"2023-05-15T17:08:08.601Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"[Main] Only detect 'txt' records once\n\nThis change modifies the 'dns_monitor.py' script to enhance the detection of 'txt' records. The purpose is to ensure that a 'txt' record containing the specified substring ('google-site-verification') is only detected once. Subsequently, as the script iterates in the future, any 'txt' records that have already been seen will be ignored.\n\nThe script now maintains a set of keys to keep track of the 'txt' records already encountered. During each iteration, it compares the new keys with the existing set to identify any new keys. If a new key is found, it prints a message indicating the discovery of the key and the relevant 'txt' record. If no new keys are found in a loop, it outputs a message indicating the absence of new keys.\n\nThis change improves the efficiency and accuracy of the DNS monitoring process.","shortMessageHtmlLink":"[Main] Only detect 'txt' records once"}},{"before":"d44fe23470286aaaa00d426ad6d8eb2f976bff4f","after":"522d45a381244582e1b07b520ffb5b91f27699d7","ref":"refs/heads/main","pushedAt":"2023-05-15T16:57:11.612Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"Fix Docker image tagging and pushing error due to uppercase repository name\n\nThis commit addresses an error that occurred during the Docker image tagging and pushing process in the `.github/workflows/docker_build_test.yml` workflow. The error was caused by using an uppercase repository name in the reference for tagging and pushing the image to the GitHub Container Registry.\n\nThe specific error message encountered was:\n\"Error parsing reference: 'ghcr.io/Aricg/dns-text-record-monitor:latest' is not a valid repository/tag: invalid reference format: repository name must be lowercase.\"\n\nTo resolve this issue, the code has been updated to convert the repository name to lowercase using the `tr` command. The Docker image is now correctly tagged and pushed to the GitHub Container Registry using the lowercase repository name.\n\nBy making this change, the workflow can successfully tag and push the Docker image without encountering the \"invalid reference format\" error.","shortMessageHtmlLink":"Fix Docker image tagging and pushing error due to uppercase repositor…"}},{"before":"6101d94ac8b707eb3af3c4535e104f92d3df9afd","after":"d44fe23470286aaaa00d426ad6d8eb2f976bff4f","ref":"refs/heads/main","pushedAt":"2023-05-15T16:48:42.992Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"[main] Fix GitHub Container Registry authentication error\n\nThis commit addresses the authentication error encountered while logging in to the GitHub Container Registry. The previous approach using the docker login command with --password-stdin failed due to the inability to perform an interactive login from a non-TTY device.\n\nTo resolve this issue, the GitHub Actions workflow has been updated with the docker/login-action action. This action simplifies the authentication process by allowing the use of a personal access token (PAT) directly in the workflow configuration. The workflow now successfully logs in to the GitHub Container Registry using the provided PAT.\n\nAdditionally, the README.md file has been modified to include instructions for logging in to the GitHub Container Registry and pulling the Docker image using the updated login approach.\n\nThese changes ensure smooth authentication with the GitHub Container Registry and enable the successful retrieval of the desired Docker image.\n\nPlease note that and in the provided command examples should be replaced with the appropriate GitHub username and personal access token for your environment.","shortMessageHtmlLink":"[main] Fix GitHub Container Registry authentication error"}},{"before":"00a741094a87c5a869951b9ee8b12e5ae29c4aa4","after":"6101d94ac8b707eb3af3c4535e104f92d3df9afd","ref":"refs/heads/main","pushedAt":"2023-05-15T16:36:05.100Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"[main] Update GitHub Actions workflow for Docker image publishing\n\nThis commit modifies the existing GitHub Actions workflow (docker_build_test.yml) to include the necessary steps for publishing the Docker image to the GitHub Container Registry. The workflow now authenticates with the registry using the provided secret (githubdockerregistry) and pushes the tagged Docker image to the repository's container registry.\n\nThese changes enable the seamless publishing of the Docker image to the GitHub Container Registry, facilitating easier access and utilization of the image by other users or workflows.\n\nadd missing requirements.txt","shortMessageHtmlLink":"[main] Update GitHub Actions workflow for Docker image publishing"}},{"before":"c461ef67cd98fd909e70ff489555ac139b0e62c6","after":"00a741094a87c5a869951b9ee8b12e5ae29c4aa4","ref":"refs/heads/main","pushedAt":"2023-05-15T16:23:58.030Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"[main] Add GitHub Actions workflow and update dns_monitor.py\n\nThis commit introduces the following changes:\n\nAdded a new GitHub Actions workflow file (docker_build_test.yml) to automate the build and testing process of the Docker image.\nUpdated dns_monitor.py to include a shebang (#!/usr/bin/env python3) at the beginning of the file.","shortMessageHtmlLink":"[main] Add GitHub Actions workflow and update dns_monitor.py"}},{"before":"90ec8e57623c2f98488a74dae85ea839023d24a2","after":"c461ef67cd98fd909e70ff489555ac139b0e62c6","ref":"refs/heads/main","pushedAt":"2023-05-15T16:18:13.648Z","pushType":"push","commitsCount":1,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"[main] Add Dockerfile, update README, and add dns_monitor.py\n\nThis commit introduces the following changes:\n\nAdded Dockerfile for building a Docker image.\nModified README.md to provide information about site verification DNS TXT record and how to check a domain's text records.\nAdded dns_monitor.py, a script for monitoring the presence of a specific DNS TXT record on a domain.\nThe changes aim to enhance the project's functionality by allowing users to easily build a Docker image, understand site verification, and monitor DNS TXT records.","shortMessageHtmlLink":"[main] Add Dockerfile, update README, and add dns_monitor.py"}},{"before":null,"after":"90ec8e57623c2f98488a74dae85ea839023d24a2","ref":"refs/heads/main","pushedAt":"2023-05-15T16:08:09.538Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"Aricg","name":"Aric Gardner","path":"/Aricg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1247498?s=80&v=4"},"commit":{"message":"Initial commit","shortMessageHtmlLink":"Initial commit"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"Y3Vyc29yOnYyOpK7MjAyMy0wNS0xNVQxODoxOTowNS44OTQxOTBazwAAAAMtKsmw","startCursor":"Y3Vyc29yOnYyOpK7MjAyMy0wNS0xNVQxODoxOTowNS44OTQxOTBazwAAAAMtKsmw","endCursor":"Y3Vyc29yOnYyOpK7MjAyMy0wNS0xNVQxNjowODowOS41MzgyOTRazwAAAAMtFOhR"}},"title":"Activity · Aricg/dns-text-record-monitor"}